[Puppet Users] Attempt to override an already evaluated resource

2017-08-22 Thread Martijn Grendelman
Since a recent Puppet update, my logs contain a lot of these warnings: 2017-08-21 14:03:20,146 WARN [qtp2051525912-14813] [puppetserver] Puppet > Attempt to override an already evaluated resource, defined at > /etc/puppetlabs/code/environments/production/modules/puppet/manifests/collections.pp:

[Puppet Users] Data in Modules: Fail on unsupported OS

2017-08-22 Thread plapperkfr
Good morning :) I'm currently writing a puppet module for the OpenBSD specific implementation of SNMPd, and was wondering if there is any elegant way for the module to fail on unsupported operating systems? With the params.pp-pattern, you can fail as the default of the OS-specific configurati

[Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-22 Thread John Baird
Henrik, Whether the existing YAML/JSON/HOCON backend is referenced, everything is using the context of `path` to do the lookups. The issues with this in regards to a file backend, is I am unsure as to how to access the value or file being looked up. The `path` for the other backends is static

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-22 Thread Henrik Lindberg
On 22/08/17 16:57, John Baird wrote: Henrik, Whether the existing YAML/JSON/HOCON backend is referenced, everything is using the context of `path` to do the lookups.  The issues with this in regards to a file backend, is I am unsure as to how to access the value or file being looked up.  The

Re: [Puppet Users] Data in Modules: Fail on unsupported OS

2017-08-22 Thread Henrik Lindberg
On 22/08/17 10:42, plapper...@gmail.com wrote: Good morning :) I'm currently writing a puppet module for the OpenBSD specific implementation of SNMPd, and was wondering if there is any elegant way  for the module to fail on unsupported operating systems? With the params.pp-pattern, you can

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-22 Thread John Baird
> > Henrik, I have something that appears to be at least "attempting" to find the proper files. The issue I am currently running into is that the "key" or file that I am looking for is being "chopped" at the first ".", which in this case is actually in a folder name, not the file extension.

[Puppet Users] puppet SSHD port based on hostname

2017-08-22 Thread John
I've pulled down the SAZ SSH module and implemented across my network. It works great. However, I need to implement the following change: If hostname = host1 or host2 or host3 then port = fi I just want to change the default sshd port for a few hosts. How do I do that? -- Y

[Puppet Users] Re: puppet SSHD port based on hostname

2017-08-22 Thread John Baird
It looks like you should be able to pass it as a Hash of "options"... https://github.com/saz/puppet-ssh/search?utf8=%E2%9C%93&q=port&type= On Tuesday, August 22, 2017 at 11:36:15 AM UTC-5, John wrote: > > I've pulled down the SAZ SSH module and implemented across my network. It > works great.

[Puppet Users] Re: puppet SSHD port based on hostname

2017-08-22 Thread John
So I added the following to sshd_config.erb <%- if hostname = MyHost -%> Port = <%- end -%> But it did not provide the expected results. The puppet run finished cleanly, but the sshd_config remained unchanged. Does that syntax look alright? TIA On Tuesday, August 22, 2017 at 12:36:15 PM

Re: [Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-22 Thread Henrik Lindberg
On 22/08/17 18:30, John Baird wrote: Henrik, I have something that appears to be at least "attempting" to find the proper files.  The issue I am currently running into is that the "key" or file that I am looking for is being "chopped" at the first ".", which in this case is actually in a

[Puppet Users] [join us] Virtual Puppet User Group: PDK Edition on Thursday!

2017-08-22 Thread Meg Hartley
Hi Everyone, You’re invited to join our next Virtual Puppet User Group. This meetup is online only, so you can attend from the comfort of your computer. Stay in the loop on upcoming meetings by becoming a member. Sign up for the Virtual Puppet User Group: Puppet Development Kit Edition on Th

[Puppet Users] Re: Hiera 5 + Puppet 5 File Backend

2017-08-22 Thread John Baird
Henrik, Thanks for the feedback. My concern stems, really, from being able to use this with Puppet. I would think that I should be able to specify a filename and/or filepath that contain a "." without having to escape those myself. The backend should handle that, in my opinion. You can imag

[Puppet Users] Re: puppet SSHD port based on hostname

2017-08-22 Thread John Baird
Honestly, I believe you would benefit from reading this over a bit... https://docs.puppet.com/puppet/5.0/lang_template_erb.html On Tuesday, August 22, 2017 at 4:37:35 PM UTC-5, John wrote: > > So I added the following to sshd_config.erb > > <%- if hostname = MyHost -%> > Port = > <%- end -%