# HG changeset patch # User IBBoard # Date 1426361535 0 # Node ID cc7557a9cc7bc7256b3d19ff858480a98d1dc9ec # Parent 41df236f3fb032c9f136b1d8882b3cf853eadaa7 Make sure that we're creating a file to mark our one-time run in a location that'll reliably exist diff -r 41df236f3fb0 -r cc7557a9cc7b modules/website/manifests/mysql.pp --- 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,