summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/cnf.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/cnf.pp b/manifests/cnf.pp
new file mode 100644
index 0000000..3f786f4
--- /dev/null
+++ b/manifests/cnf.pp
@@ -0,0 +1,10 @@
+define mysql::cnf($home, $passwd) {
+ file { "$home/.my.cnf":
+ content => template('mysql/my.cnf.erb'),
+ require => Service['mysql'],
+ owner => root,
+ group => root,
+ mode => '0400',
+ notify => Exec['set_mysql_rootpw'],
+ }
+}