diff options
-rw-r--r-- | manifests/init.pp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 2f0fffd..8143a80 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -36,12 +36,14 @@ class mysql::server inherits mysql { command => "/usr/local/sbin/setmysqlpass.sh", unless => "mysqladmin -uroot status > /dev/null", require => [ File['/usr/local/sbin/setmysqlpass.sh'], Package[mysql-server] ], + user => root, } exec{'change_mysql_rootpw': command => "/usr/local/sbin/setmysqlpass.sh", require => [ File['/usr/local/sbin/setmysqlpass.sh'], Package[mysql-server] ], refreshonly => true, + user => root, } mysql::cnf { "root": |