Mercurial > repos > other > Puppet
changeset 31:cc7557a9cc7b puppet-3.6
Make sure that we're creating a file to mark our one-time run in a location that'll reliably exist
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 14 Mar 2015 19:32:15 +0000 |
parents | 41df236f3fb0 |
children | 6bbc86f6cee5 |
files | modules/website/manifests/mysql.pp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/website/manifests/mysql.pp Sat Mar 14 15:49:40 2015 +0000 +++ b/modules/website/manifests/mysql.pp Sat Mar 14 19:32:15 2015 +0000 @@ -29,7 +29,7 @@ } $username = strip($mysqluser) $password = strip($mysqlpassword) - $configured_marker = '/etc/mysql/.is-configured' + $configured_marker = "/etc/.${mysqlprefix}.is-configured" exec { 'Rename root MySQL user for security': command => "mysql -uroot -e 'UPDATE mysql.user SET User = \"$username\", Password = PASSWORD(\"$password\") WHERE User = \"root\"; DELETE FROM mysql.user WHERE User = \"\"; FLUSH PRIVILEGES;' && touch $configured_marker", provider => shell,