You should also make sure that you comb through your Puppet code to bring
it up to compliance with the language changes in Ruby 1.9+. Here are some
examples:


   - If you use Hiera with the YAML backend:
      - String interpolation in yaml cannot begin on a key, value, or array
      member unless surrounded by quotes
      - The escape symbol \ is no longer allowed in double quoted strings
      in yaml. Must use single quotes.
      - Block sequences (array members) can no longer begin on the same
      line as its parent hash.
   - Implicit conversion of strings to arrays is no longer allowed when
   using the each method
   - Need for implementing duck testing (like using the respond_to? method)
   is necessary because:
      - The to_a method can no longer implicitly convert a string into an
      array
      - The map method can no longer be used on a string
      - The each method can no longer be used on a string
      - The sort method can no longer be used on a string
    - In v1.8 *unquoted* values in extdata that contain a comma became a
   single string with the comma missing. In v1.9 becomes an array of strings
   split on the comma.


Failure to test catalog compilation on all nodes against Ruby v1.9 masters
will break the world after the master cutover.

-Alex

On Tue, Dec 2, 2014 at 1:04 PM, Riley Shott <rsh...@sfu.ca> wrote:

> The puppet_stack module will bring up a Puppet Master (additionally the
> Foreman, and/or smart-proxy) using RVM, & Gems (Puppet, Facter, Hiera,
> Passenger). We're using it for our production infrastructure, and
> everything is a lot more performant with Ruby 2.0.0.
>
> https://forge.puppetlabs.com/Ginja/puppet_stack
> https://github.com/Ginja/puppet_stack
>
> -Riley
>
> ----- Original Message -----
> | From: "Ramin K" <ramin-l...@badapple.net>
> | To: puppet-users@googlegroups.com
> | Sent: Tuesday, 2 December, 2014 10:36:57
> | Subject: Re: [Puppet Users] Need advice about upgrade puppetmaster from
> ruby 1.8.7 to ruby 1.9.3
> |
> | On 12/2/14 10:34 AM, Ramin K wrote:
> | > 3. gem install puppet, hiera, and any other gems you currently use.
> |
> | 3. gem install puppet, hiera, and any other gems you currently use into
> | the Ruby you want to use for your Puppet master.
> |
> | I knew I'd miss something.
> |
> | Ramin
> |
> | --
> | 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+unsubscr...@googlegroups.com.
> | To view this discussion on the web visit
> |
> https://groups.google.com/d/msgid/puppet-users/547E06C9.2030303%40badapple.net
> .
> | For more options, visit https://groups.google.com/d/optout.
> |
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/1000591435.3072990.1417547055207.JavaMail.zimbra%40sfu.ca
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAGWx_yY%2BGa-tqAocwj3bDrxeD9g4tv%2BxQvuCKqUnVTt8Lqhc1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to