Skip to content

Instantly share code, notes, and snippets.

@romaricpascal
Created March 15, 2013 15:06
Show Gist options
  • Save romaricpascal/5170496 to your computer and use it in GitHub Desktop.
Save romaricpascal/5170496 to your computer and use it in GitHub Desktop.
# Makes sure MySQL is available on the server
class { 'mysql::server':
config_hash => {
'root_password' => 'OMG-The-r0ot-p@sSword-in-Pl@1n-T3xt'
}
}
# And creates the database
mysql::db {'awesome-project.local':
user => 'awesome-project',
password => '@we5omE-pAs5w0rD',
host => 'localhost',
grant => ['all'],
require => Class['mysql::server']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment