summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-19 13:41:46 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-19 13:41:46 -0200
commit855c3ab1df06611cb17fc9728d484233f69c5b1e (patch)
tree8b11f4c7e9638560e695aaea5a6429c795646bfb
parent2bcf643cfbce93ff0a6ee3f39695fc9cc9cb63d9 (diff)
downloadpuppet-mysql-855c3ab1df06611cb17fc9728d484233f69c5b1e.tar.gz
puppet-mysql-855c3ab1df06611cb17fc9728d484233f69c5b1e.tar.bz2
Running commands as root
-rw-r--r--manifests/init.pp2
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":