Created
June 4, 2009 04:49
-
-
Save chef/123441 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unless hasoffers[:config][:db][:master].has_key?(:host) | |
hasoffers[:config][:db][:master][:host] = "192.168.2.128" | |
end | |
unless hasoffers[:config][:db][:master].has_key?(:port) | |
hasoffers[:config][:db][:master][:port] = "3306" | |
end | |
unless hasoffers[:config][:db][:slave].has_key?(:host) | |
hasoffers[:config][:db][:slave][:host] = "192.168.2.129" | |
end | |
unless hasoffers[:config][:db][:slave].has_key?(:port) | |
hasoffers[:config][:db][:slave][:port] = "3306" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attribute 'hasoffers/config/db/mysql/', | |
:display_name => "mysql_rousername", | |
:description => "hasoffers { config { db { mysql { ro_username } }}}", | |
:multiple_values => true, | |
:type => "string" | |
:required => true, | |
:recipes => [ 'hasoffers::hasoffers' ], | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment