We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e2f3b54 + ae36727 commit 3e7d7a2Copy full SHA for 3e7d7a2
manifests/config.pp
@@ -172,11 +172,12 @@
172
}
173
174
exec { 'set_mysql_rootpw':
175
- command => "mysqladmin -u root ${old_pw} password '${root_password}'",
176
- logoutput => true,
177
- unless => "mysqladmin -u root -p'${root_password}' status > /dev/null",
178
- path => '/usr/local/sbin:/usr/bin:/usr/local/bin',
179
- notify => $restart ? {
+ command => "mysqladmin -u root ${old_pw} password '${root_password}'",
+ logoutput => true,
+ environment => "HOME=${root_home}",
+ unless => "mysqladmin -u root -p'${root_password}' status > /dev/null",
+ path => '/usr/local/sbin:/usr/bin:/usr/local/bin',
180
+ notify => $restart ? {
181
true => Exec['mysqld-restart'],
182
false => undef,
183
},
0 commit comments