James,Not yet, see http://projects.puppetlabs.com/issues/19162.My (ugly) approach for this now is a refreshonly exec with a delayed shutdown. I'd like to see a reboot => true or such for all resources that tell the agent to reboot after a run is complete when that resource is applied.
Adam
On Monday, March 11, 2013 6:55:46 AM UTC-5, jim wrote:Hi GuysI'm using puppet for my windows configuration, and was wondering when installing / configuration something windowys, it requires a reboot, how does this effect the "puppet run"e.g. join to domain ?e.g. removing old version of softwaree.g. host re-nameIs there options you can tell puppet its going to reboot and to finish that "puppet run" upon restart ????RegardsJames
--
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 puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Originally I thought I needed a facter fact to determine if a reboot pending state existed, but the problem is that the facts are determined upfront. So if a resource triggers a "state" where a reboot is needed the fact is busted.
I think we need a new embedded construct which can check the reboot state before processing every resource. It has to happen before it makes it to the provider since it should not be left to a provider author as it could apply to any resource. If this boolean goes true then every resource in that graph needs to be skipped.
A meta param can be added to say reboot => force which can force a resource to be processed _despite_ the boolean.
I also need way to stateful trigger reboot flag like a lockfile so I can do a bios upgrade.
Actually _rebooting_ with puppet I am leery of. I welcome all input on this.
On Monday, March 11, 2013, ad wrote:James,Not yet, see http://projects.puppetlabs.com/issues/19162.My (ugly) approach for this now is a refreshonly exec with a delayed shutdown. I'd like to see a reboot => true or such for all resources that tell the agent to reboot after a run is complete when that resource is applied.I did something similar, reboot resource type that is only triggered via notify/subscribe relationship from another resource. See https://github.com/joshcooper/puppetlabs-rebootAdam, I'm curious about the approach you're talking about also. If reboot was a metaparameter, I don't think it would be possible to specify the reboot message or reason code (for different resources) But perhaps that's not really important?
Adam--
On Monday, March 11, 2013 6:55:46 AM UTC-5, jim wrote:Hi GuysI'm using puppet for my windows configuration, and was wondering when installing / configuration something windowys, it requires a reboot, how does this effect the "puppet run"e.g. join to domain ?e.g. removing old version of softwaree.g. host re-nameIs there options you can tell puppet its going to reboot and to finish that "puppet run" upon restart ????RegardsJames
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 puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
My idea on reboots is different. I don't think we should have puppet do the reboot. If we go down this road, we need autologon, credentials, runonce, and a subsequent puppet agent run among other things.
Not ideal if a puppet agent service is running during business time. This is orchestration and not where puppet should not be trying to succeed.
Originally I thought I needed a facter fact to determine if a reboot pending state existed, but the problem is that the facts are determined upfront. So if a resource triggers a "state" where a reboot is needed the fact is busted.
I think we need a new embedded construct which can check the reboot state before processing every resource. It has to happen before it makes it to the provider since it should not be left to a provider author as it could apply to any resource. If this boolean goes true then every resource in that graph needs to be skipped.
A meta param can be added to say reboot => force which can force a resource to be processed _despite_ the boolean.
I also need way to stateful trigger reboot flag like a lockfile so I can do a bios upgrade.
Actually _rebooting_ with puppet I am leery of. I welcome all input on this.
--
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 puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.