On Fri, Jul 17, 2015 at 4:38 PM, Rob Reynolds <[email protected]> wrote:

>
>
> On Fri, Jul 17, 2015 at 8:34 AM, Byron Miller <[email protected]> wrote:
>
>> My windows team mentioned the same issue of not being able to upgrade the
>> agent because of a ruby issue.. I haven't had much time yet to go jump in
>> and help them, but this sounds exactly like what they reported.
>>
>> Bummer..  I think i'll move them to the PC1 agent and Puppet 4.2 since
>> they're  more greenfield and see if that saves them from re-deploying just
>> to get to 3.8.1..
>>
>> On Friday, July 17, 2015 at 8:08:52 AM UTC-5, cko wrote:
>>>
>>> By the way: ruby.exe is missing from *C:\puppet\sys\ruby\bin*
>>>
>>> Is this intended?
>>>
>>
>
> This is most assuredly not intended. I can say that we don't really
> support using puppet to upgrade puppet - because file locking on Windows.
> It appears you have run into this. We have an upcoming epic for this in
> MODULES-2040[1], which will be similar to how Puppetlabs-Puppet_Agent will
> handle upgrades for WIndows agents[2][3].
>
> I would highly suggest that you follow suit on those ideas until something
> is in place or upgrade out of band e.g. use something besides Puppet to
> upgrade Puppet on Windows. You can also try using the puppetversion
> module[4].
>
>
> [1] https://tickets.puppetlabs.com/browse/MODULES-2040
> [2]
> https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/manifests/windows/install.pp#L38-L48
> [3]
> https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/templates/install_puppet.bat.erb
> [4] https://forge.puppetlabs.com/opentable/puppetversion
>


Also, anyone interested in looking at the MODULES-2040 approach should
definitely read my comment[1] on known issues migrating the puppet_agent
code over to a more generalized approach.

[1]
https://tickets.puppetlabs.com/browse/MODULES-2040?focusedCommentId=190065&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-190065


>
>
>>
>>>
>>> On Friday, July 17, 2015 at 2:59:34 PM UTC+2, cko wrote:
>>>>
>>>> Hi all,
>>>>
>>>> updating Puppet from 3.7.5 to 3.8.1 fails on all my Windows Server
>>>> 2008R2 nodes.
>>>>
>>>> I'm using the following code (puppet.pp):
>>>>
>>>> *package { 'Puppet':*
>>>> *  ensure          => "3.8.1",*
>>>> *  source          =>
>>>> "\\\\puppet\\puppetsamba\\puppet_agent\\windows\\puppet-3.8.1.msi",*
>>>> *  provider        => windows,*
>>>> *  install_options => { 'INSTALLDIR' => 'C:\puppet' }*
>>>> * }*
>>>>
>>>> This completes without any problem:
>>>>
>>>> *C:\Scripts>puppet apply puppet.pp*
>>>> *Notice: Compiled catalog for server.local.domain in environment
>>>> production in 1.33 seconds*
>>>> *Notice: /Stage[main]/Main/Package[Puppet]/ensure: ensure changed
>>>> '3.7.5' to '3.8.1'*
>>>> *Notice: Finished catalog run in 84.66 seconds*
>>>>
>>>> But after the installation I am unable to use Puppet:
>>>>
>>>> *C:\Scripts>puppet agent -t*
>>>> *'ruby' is not recognized as an internal or external command, operable
>>>> program or batch file.*
>>>>
>>>>
>>>> Any ideas?
>>>>
>>>  --
>> 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/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com
>> <https://groups.google.com/d/msgid/puppet-users/ab190044-e33f-45bd-8948-6160c251243d%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Rob Reynolds
> Developer, Puppet Labs
>
> *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland,
> Oregon! Join us October 5-9.*
> *Register now to take advantage of the Early Bird discount
> <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird>
>  *
> *—**save $249!*
>



-- 
Rob Reynolds
Developer, Puppet Labs

*PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Early Bird discount
<https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird>
*
*—**save $249!*

-- 
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/CAMJiBK6iDvVv8dpDsL_Oa3bRBef5VyF%2BPNc%3DYnxnSo9uBEWoSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to