summaryrefslogtreecommitdiff
path: root/manifests/server/account_security.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-02-25 17:27:19 +0100
committermh <mh@immerda.ch>2011-02-25 17:27:19 +0100
commitd31940e3f0422fe17037354dbe9407a018427585 (patch)
tree804ca761df15a2b481c5a85d294364aaacac6e7e /manifests/server/account_security.pp
parent995a291afa0aee63affb68172a3f5824468727df (diff)
Remove other default accounts due to security reasons
Diffstat (limited to 'manifests/server/account_security.pp')
-rw-r--r--manifests/server/account_security.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/server/account_security.pp b/manifests/server/account_security.pp
new file mode 100644
index 0000000..23d1cb7
--- /dev/null
+++ b/manifests/server/account_security.pp
@@ -0,0 +1,8 @@
+class mysql::server::account_security {
+ # some installations have some default users which are not required.
+ # We remove them here. You can subclass this class to overwrite this behavior.
+ mysql_user{ [ "root@${fqdn}", "root@127.0.0.1", "@${fqdn}", "@localhost", "@%" ]:
+ ensure => 'absent',
+ require => Service['mysql'],
+ }
+}