Using puppet to manage puppet upgrades to the agent has been an interesting dilemma that sometimes has issues. OpenTable came out with this module: https://forge.puppetlabs.com/opentable/puppetversion to help handle upgrades. On Windows they set a scheduled task to manage the upgrade just after the run is complete.
On Tue, May 20, 2014 at 6:30 AM, cko <[email protected]> wrote: > Any idea? > > > On Saturday, May 10, 2014 12:22:46 PM UTC+2, cko wrote: >> >> After the puppet run the agent service is basically stopped. >> >> Although when i run "sc queryex puppet" the output is "STOP_PENDING" (not >> stopped but not running either). >> >> So i have to run "taskkill /f /pid 1234" and then start the service again. >> >> >> >> On Friday, May 9, 2014 9:45:35 PM UTC+2, Rob Reynolds wrote: >>> >>> This error is somewhat of a misnomer: "The requested service has already >>> been started." >>> >>> When you say it gets stuck, what do you mean exactly? >>> >>> >>> On Fri, May 9, 2014 at 8:08 AM, cko <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> I'm using puppet to manage the puppet agent (package, config, service) >>>> in my Windows Server 2003 boxes. >>>> >>>> Whenever I update the package, the puppet agent service gets stuck >>>> (STOP PENDING). >>>> >>>> The report returns: >>>> >>>> *Fri May 09 12:13:51 +0200 2014 >>>> /Stage[main]/puppet_agent::Windows::Service/Service[puppet] (err): Failed >>>> to call refresh: Cannot start puppet, error was: Execution of >>>> 'C:/WINDOWS/system32/net.exe start puppet' returned 2: The requested >>>> service has already been started.* >>>> *More help is available by typing NET HELPMSG 2182.* >>>> *Fri May 09 12:13:51 +0200 2014 >>>> /Stage[main]/puppet_agent::Windows::Service/Service[puppet] (err): Cannot >>>> start puppet, error was: Execution of 'C:/WINDOWS/system32/net.exe start >>>> puppet' returned 2: The requested service has already been started.* >>>> *More help is available by typing NET HELPMSG 2182.* >>>> >>>> I use the same manifest for Windows Server 2008 nodes without runnning >>>> into this problem. >>>> >>>> My manifest looks like this: >>>> >>>> >>>> *package { 'Puppet':* >>>> * ensure => "3.5.1",* >>>> * source => >>>> "\\\\share\\puppet_agent\\windows\\puppet-3.5.1.msi",* >>>> * provider => windows,* >>>> * install_options => { 'INSTALLDIR' => 'C:\puppet' } * >>>> *}* >>>> >>>> *file { 'C:\Documents and Settings\All Users\Application >>>> Data\PuppetLabs\puppet\etc\puppet.conf':* >>>> * content => >>>> template("base_puppet_agent/windows/puppet_windows.erb"), >>>> * >>>> * notify => Service['puppet'],* >>>> * require => Package ['Puppet'],* >>>> *}* >>>> >>>> *service { 'puppet':* >>>> * ensure => running,* >>>> * enable => true,* >>>> * require => Package['Puppet'],* >>>> *}* >>>> >>>> >>>> -- >>>> 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/0a9a5b19-b44f-47b2-9749-5bfc38c8404e% >>>> 40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/0a9a5b19-b44f-47b2-9749-5bfc38c8404e%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Rob Reynolds >>> Developer, Puppet Labs >>> >>> *Join us at **PuppetConf 2014 <http://puppetconf.com>**, September >>> 23-24 in San Francisco* >>> *Register by May 30th to take advantage of the Early Adopter discount >>> <http://links.puppetlabs.com/puppetconf-early-adopter> **--**save $349!* >>> >> -- > 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/0e98161c-af86-46d7-b89d-efac6d4a8ea0%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/0e98161c-af86-46d7-b89d-efac6d4a8ea0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Rob Reynolds Developer, Puppet Labs *Join us at **PuppetConf 2014 <http://puppetconf.com>**, September 23-24 in San Francisco* *Register by May 30th to take advantage of the Early Adopter discount <http://links.puppetlabs.com/puppetconf-early-adopter> **--**save $349!* -- 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/CAMJiBK6QsQGyGd1%2Bq%2BZKJiWFJ2%3DHw2iBKGzfLxaZ9H_tmrECHQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
