comparison modules/mysql/manifests/server/account_security.pp @ 26:58d1818c2ded puppet-3.6

Update MySQL module (which adds "staging" module)
author IBBoard <dev@ibboard.co.uk>
date Mon, 09 Mar 2015 01:34:59 +0000
parents 956e484adc12
children 48d3a1948e4d
comparison
equal deleted inserted replaced
25:13adb555a7e2 26:58d1818c2ded
1 class mysql::server::account_security { 1 class mysql::server::account_security {
2 mysql_user { 2 mysql_user {
3 [ "root@${::fqdn}", 3 [ 'root@127.0.0.1',
4 'root@127.0.0.1',
5 'root@::1', 4 'root@::1',
6 "@${::fqdn}",
7 '@localhost', 5 '@localhost',
8 '@%']: 6 '@%']:
9 ensure => 'absent', 7 ensure => 'absent',
10 require => Anchor['mysql::server::end'], 8 require => Anchor['mysql::server::end'],
11 } 9 }
12 if ($::fqdn != $::hostname) { 10 if ($::fqdn != 'localhost.localdomain') {
13 mysql_user { ["root@${::hostname}", "@${::hostname}"]: 11 mysql_user {
12 [ 'root@localhost.localdomain',
13 '@localhost.localdomain']:
14 ensure => 'absent', 14 ensure => 'absent',
15 require => Anchor['mysql::server::end'], 15 require => Anchor['mysql::server::end'],
16 }
17 }
18 if ($::fqdn != 'localhost') {
19 mysql_user {
20 [ "root@${::fqdn}",
21 "@${::fqdn}"]:
22 ensure => 'absent',
23 require => Anchor['mysql::server::end'],
24 }
25 }
26 if ($::fqdn != $::hostname) {
27 if ($::hostname != 'localhost') {
28 mysql_user { ["root@${::hostname}", "@${::hostname}"]:
29 ensure => 'absent',
30 require => Anchor['mysql::server::end'],
31 }
16 } 32 }
17 } 33 }
18 mysql_database { 'test': 34 mysql_database { 'test':
19 ensure => 'absent', 35 ensure => 'absent',
20 require => Anchor['mysql::server::end'], 36 require => Anchor['mysql::server::end'],