Procedure itself was straight forward. Depends of course if you are overriding the default attributes from the ora_quickstart role or just using the default attributes.
1. Changed the attributes/default.rb.
default[:oracle][:rdbms][:latest_patch][:url] = 'https://secure.server.localdomain/path/to/p16619892_112030_Linux-x86-64.zip'
default[:oracle][:rdbms][:latest_patch][:dirname] = '16619892'
2. Changed the ora_quickstart.rb role.
name "ora_quickstart"description "Role applied to Oracle quickstart test machines."run_list 'recipe[echa-oracle]', 'recipe[echa-oracle::logrotate_alert_log]', 'recipe[echa-oracle::logrotate_listener]', 'recipe[echa-oracle::createdb]'override_attributes :oracle => {:rdbms => {:latest_patch => {:url => 'https://secure.server.localdomain/path/to/p16619892_112030_Linux-x86-64.zip'}, :opatch_update_url => 'https://secure.server.localdomain/path/to/p6880880_112000_Linux-x86-64.zip', :install_files => ['https://secure.server.localdomain/path/to/p10404530_112030_Linux-x86-64_1of7.zip', 'https://secure.server.localdomain/path/to/p10404530_112030_Linux-x86-64_2of7.zip']}}
knife role from file roles/ora_quickstart.rb
4. After changing metadata.rb, CHANGELOG.md and README.md, committed & pushed to GitHub.
5. Uploaded the new cookbook v1.0.4 to Hosted Chef.
knife cookbook upload echa-oracle --freeze
6. Ran a test on EC2, which proved to be successful. (Old post, but still using the same procedure for testing - CHEF: echa-oracle v1.0.0 cookbook tests on EC2)
For further details about the cookbook check from Opscode community site at http://community.opscode.com/cookbooks/oracle.
For further details about the cookbook check from Opscode community site at http://community.opscode.com/cookbooks/oracle.
No comments:
Post a Comment