Hi,
How would one gracefully solve a problem like this, we are facing time to time,
mostly in the development cycle
Lets say somebody wrote code like this (for simplicity):
user { 'tools':
ensure => present,
}
service { 'tools':
ensure => 'running',
require => User['tools'],
}
It ran, created user, started service. Then somebody realized, hey, I didn't
set home for the user, and update the code
user { 'tools':
ensure => present,
home => '/apps/tools',
}
Problem here, puppet can't apply this code anymore, since 'user' resource will
call usermod command and it refuses update user's home if a process running.
Service needs to be stopped, user modified and then service started. One could
create an exec, to stop the service, but how to 'notify' this exec, I can't
figure out.
Thanks,
Vadym
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/F3D433F0-238D-448F-8B82-1703DFA2974F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.