Skip to content

Instantly share code, notes, and snippets.

@chef
Created June 4, 2009 04:49
Show Gist options
  • Save chef/123441 to your computer and use it in GitHub Desktop.
Save chef/123441 to your computer and use it in GitHub Desktop.
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
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