Am 11.12.2015 um 13:27 schrieb Vadym Chepkov:
> 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.
Huh? Thought things like this to be a Windows-only problem. And this is
how I solve it there (for example: update the config file for a service
which locks that config file while running):
file {'config_file_tmp':
...
}
->
exec {'kill_service':
...
}
->
file {'config_file':
source => 'config_file_tmp',
...
}
->
service {'the_service':
ensure => running,
...
}
Guess you could do something similar in your case.
HTH...
Dirk
--
*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 (Ansage) 1149
*Email*: [email protected] <mailto:[email protected]>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>
--
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/5672A4FE.5040303%40recommind.com.
For more options, visit https://groups.google.com/d/optout.