fuel-library/deployment/puppet/mysql/tests/server.pp
Bogdan Dobrelya fa9b437f6a Remove vendor/downstream specific code
Also fix broken dependency of Package['pacemaker']
onto undef File, which was present in the code but
did nothing in fact (A-> undef -> B -> C == B -> C)

TODO figure out what to do with
./deployment/puppet/nailgun/files/Release-auxiliary

Change-Id: Ic8f495871ee4a1a9e7889c2b487cfd8d8b560139
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-11-24 13:51:11 +00:00

48 lines
1008 B
Puppet

class { 'mysql::server':
config_hash => {
'root_password' => 'password',
}
}
class { 'mysql::server::account_security': }
database{ ['redmine_db', 'other_db']:
ensure => present,
charset => 'utf8',
}
database{ 'old_db':
ensure => present,
charset => 'latin1',
}
database_grant{'redmine@localhost/redmine_db':
privileges => ['all'],
}
database_grant{'dan@localhost/other_db':
privileges => ['all'],
}
database_user{ 'redmine@localhost':
ensure => present,
password_hash => mysql_password('redmine'),
require => Class['mysql::server'],
}
database_user{ 'dan@localhost':
ensure => present,
password_hash => mysql_password('blah'),
require => Class['mysql::server'],
}
database_user{ 'dan@%':
ensure => present,
password_hash => mysql_password('blah'),
require => Class['mysql::server'],
}
Class['mysql::server'] -> Database <| |>
Class['mysql::server'] -> Database_grant <| |>
Class['mysql::server'] -> Database_user <| |>