summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-06-05 19:12:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-06-05 19:12:46 -0300
commita133ae87f3074729d0895b997dde87f48000826d (patch)
treefa8b35fa42b3bff4d7bd218b88efcb9843af050f
parent3be799287f7bb8945f8e1578de257c08a12ac20f (diff)
downloadpuppet-mysql-a133ae87f3074729d0895b997dde87f48000826d.tar.gz
puppet-mysql-a133ae87f3074729d0895b997dde87f48000826d.tar.bz2
Adds my::cnf in a separate file
-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'],
+ }
+}