On 21 February 2016 at 03:26, Jo Rhett <jrh...@netconsonance.com> wrote: > Puppet 4 is only supported with the all-in-one packaged Ruby. You don’t > choose your own. >
Just to clarify, Puppet 4 will happily run from a gem on a ruby outside the AIO package. This is actually very common in the case of unit testing modules on Travis of Jenkins for instance. The language from the documentation states "the Ruby version bundled with puppet-agent is the recommended version. Other versions are not recommended and we make no guarantees about their performance with Puppet." Given that, using the combinations from the puppet-agent package is a useful guide in cases where you really can't use the AIO for some reason: https://docs.puppetlabs.com/puppet/4.3/reference/about_agent.html. ie. if you're using Puppet 4.3.2 then you can have some level of confidence that Ruby 2.1.8 is a good choice (mainly because that's what is getting lots of testing as per the table on https://docs.puppetlabs.com/guides/platforms.html. Gareth > On Feb 20, 2016, at 6:10 PM, Corey Osman <co...@logicminds.biz> wrote: > > The gem requires puppet 3.8+. So whatever version of ruby puppet runs on is > supported by puppet-repl. > > If you want to run ruby 2.3 I would suggest using puppet 4.3+. But I am > not even sure puppet 4.3 runs on ruby 2.3 yet. > > On Friday, February 19, 2016 at 3:04:39 PM UTC-8, Corey Osman wrote: >> >> Hi, >> >> I created a REPL for the puppet language this week. This is something that >> has been lacking for quite some time. >> >> >> https://github.com/nwops/puppet-repl >> >> Install: gem install puppet-repl >> bash$ prepl >> >> >> It is currently at version 0.0.1 but is still very functional. >> >> >> MacBook-Pro-2~ % prepl >> Puppet Version: 4.2.2 >> Puppet Repl Version: 0.0.1 >> Created by: NWOps <co...@nwops.io> >> Type "exit", "functions", "types", "reset", "help" for more information. >> >> >> $hostname = 'node123.company.com' >> => node123.company.com >> >> $hostname =~ /node/ >> => true >> >> split($hostname, 'node') >> => ["", "123.company.com"] >> >> ['/tmp/test1', '/tmp/test2'].each |String $file_path| { >> >> file{$file_path: ensure => present}} >> => ["/tmp/test1", "/tmp/test2"] >> >> ['/tmp/test1', '/tmp/test2'].each |String $file_path| { >> >> file{$file_path: ensure => present}} >> => Evaluation Error: Error while evaluating a Resource Statement, >> Duplicate declaration: File[/tmp/test1] is already declared in file :1; >> cannot redeclare at line 1 at line 1:57 >> >> >> >> >> >> Corey >> >> >> > > -- > 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/a0f8f102-10db-4eec-9862-6d162b718ed5%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > -- > Jo Rhett > Net Consonance : net philanthropy to improve open source and internet > projects. > > -- > 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/FBE71E5F-0EF8-479E-957F-B7845573AE9D%40netconsonance.com. > > For more options, visit https://groups.google.com/d/optout. -- Gareth Rushgrove @garethr devopsweekly.com morethanseven.net garethrushgrove.com -- 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/CAFi_6yLY46Q9upe5fNbdpmNTV16ztk5HV%2BQzp0YRp9sMFZ1KMA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.