diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-19 13:41:46 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-19 13:41:46 -0200 |
commit | 855c3ab1df06611cb17fc9728d484233f69c5b1e (patch) | |
tree | 8b11f4c7e9638560e695aaea5a6429c795646bfb | |
parent | 2bcf643cfbce93ff0a6ee3f39695fc9cc9cb63d9 (diff) | |
download | puppet-mysql-855c3ab1df06611cb17fc9728d484233f69c5b1e.tar.gz puppet-mysql-855c3ab1df06611cb17fc9728d484233f69c5b1e.tar.bz2 |
Running commands as root
-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": |