Mercurial > repos > other > Puppet
diff modules/mysql/manifests/server/account_security.pp @ 0:956e484adc12
Initial public release of Puppet configs
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 16 Aug 2014 19:47:38 +0000 |
parents | |
children | 58d1818c2ded |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/mysql/manifests/server/account_security.pp Sat Aug 16 19:47:38 2014 +0000 @@ -0,0 +1,22 @@ +class mysql::server::account_security { + mysql_user { + [ "root@${::fqdn}", + 'root@127.0.0.1', + 'root@::1', + "@${::fqdn}", + '@localhost', + '@%']: + ensure => 'absent', + require => Anchor['mysql::server::end'], + } + if ($::fqdn != $::hostname) { + mysql_user { ["root@${::hostname}", "@${::hostname}"]: + ensure => 'absent', + require => Anchor['mysql::server::end'], + } + } + mysql_database { 'test': + ensure => 'absent', + require => Anchor['mysql::server::end'], + } +}