]> gitweb.fluxo.info Git - puppet-mysql.git/commitdiff
Adds my::cnf in a separate file
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 5 Jun 2017 22:12:46 +0000 (19:12 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 5 Jun 2017 22:12:46 +0000 (19:12 -0300)
manifests/cnf.pp [new file with mode: 0644]

diff --git a/manifests/cnf.pp b/manifests/cnf.pp
new file mode 100644 (file)
index 0000000..3f786f4
--- /dev/null
@@ -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'],
+  }
+}