From 855c3ab1df06611cb17fc9728d484233f69c5b1e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 19 Jan 2010 13:41:46 -0200 Subject: Running commands as root --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) 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": -- cgit v1.2.3