From a133ae87f3074729d0895b997dde87f48000826d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 5 Jun 2017 19:12:46 -0300 Subject: Adds my::cnf in a separate file --- manifests/cnf.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 manifests/cnf.pp 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'], + } +} -- cgit v1.2.3