We regularly rebooting R&D Linux and Windows servers for server patching and other additional maintenance. Lots of different services and development environments are hosted on the servers and need to be stop/start before and after rebooting the servers.
Puppet can be used to start the services, and ensure the services run in work time (as daemon). Could we use Puppet to stop the services before rebooting the server? I am thinking about write manifest for starting and stopping separately, disable starting manifest, and then apply the stopping manifest manually.
However, if the starting services manifest are not disabled and the resources that 'rebooting' depends on are trying to stop the services, while the daemon agents are ensuring to keep the services started. I am wondering what will happen then.
Any idea?