Skip to content

Instantly share code, notes, and snippets.

@kerin
Created March 12, 2013 11:57
Show Gist options
  • Save kerin/5142336 to your computer and use it in GitHub Desktop.
Save kerin/5142336 to your computer and use it in GitHub Desktop.
include "apt-update"
class ostsite_db($root_password, $user_name, $user_password){
class { 'mysql::server':
config_hash => {
'root_password' => $root_password,
'bind_address' => '0.0.0.0'
}
}
mysql::db { 'ostsite':
user => $user_name,
password => $user_password,
host => '%',
grant => ['all'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment