Yes, puppetserver 1 was included with later versions of puppet Enterprise 3.x; puppetserver 2 is included with open source and enterprise editions of puppet 4. I think puppetserver 2.7.2 would align with Puppet 4.7.2 but you'd want to double check that for the exact minor version.
On Mon, Jan 2, 2017 at 2:52 PM Joe <[email protected]> wrote: > Yes I am also an RPM man and only chose this route because I thought the > correct path was puppet with passenger, but reading the docs now I see that > puppet-passenger is not the path going forward and puppetserver is the way > now. I installed puppetserver 2.7.2-1puppetlabs1. Is this "puppet 4"? > > I am a few days into puppet and so I am a bit confused. > > > Thanks again > > On Saturday, December 31, 2016 at 10:05:49 PM UTC-7, Joe wrote: > > Hi All > > Puppet v3.8.7 community on Ubuntu 14 LTS > > I have been attempting to write a class to use the "file_line" type > reference from the stdlib library to add multiple lines to a file if these > lines are not present. > I was attempting to do this with iteration using the each function and > tried with static and Hiera arrays. After a few hours of failure I came > across the docs for Puppet Enterprise that say this iteration capability > was introduced in Puppet 4. > > It looks like this, testdefs is an array in Hiera defined in the nodes > yaml config > > each($testdefs) |$hline| { > file_line { 'Append a line to /etc/testfile': > ensure => present, > line => "$hline", > path => '/etc/testfile', > } > } > > To be clear I am trying to.. > iterate through a Hiera array > pass each array member to the file_line type > append this member to a file if it does not exist. > > Is there a way to do this with Puppet 3.x or should I just make a static > class with multiple file_line types? > > Thanks > > > > > > > > > > > -- > > > 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/ed595ac4-36f0-46e3-8b9c-dd2e0043168f%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/ed595ac4-36f0-46e3-8b9c-dd2e0043168f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > For more options, visit https://groups.google.com/d/optout. > > > -- Rob Nelson -- 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/CAC76iT9kVKB7YkjzWA6RY3SNR1c%2B2X_cgK_0EFE-%3DMai-eXbMQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
