]> gitweb.fluxo.info Git - puppet-mysql.git/commitdiff
Changes for puppet 4 compatibility
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 5 Jun 2017 22:06:46 +0000 (19:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 5 Jun 2017 22:06:46 +0000 (19:06 -0300)
manifests/server.pp

index ef59cb3393007f051b9d4673ee60c6526fd41769..788654f6f164bb8a218c5588e252197bbb8260fa 100644 (file)
@@ -24,7 +24,7 @@ class mysql::server(
     require => [ Service['mysql'], Mysql::Cnf['root'] ],
     owner   => root,
     group   => root,
-    mode    => 0500,
+    mode    => '0500',
     notify  => Exec['set_mysql_rootpw'],
   } 
 
@@ -39,15 +39,4 @@ class mysql::server(
     home   => "/root",
     passwd => $rootpw,
   }
-
-  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'],
-    }
-  }
 }