summaryrefslogtreecommitdiff
path: root/manifests/cnf.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/cnf.pp')
-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'],
+ }
+}