From: Silvio Rhatto Date: Mon, 5 Jun 2017 22:12:46 +0000 (-0300) Subject: Adds my::cnf in a separate file X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a133ae87f3074729d0895b997dde87f48000826d;p=puppet-mysql.git Adds my::cnf in a separate file --- 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'], + } +}