Re: [Puppet Users] Puppet 4: default value of a parameter in a module and dependency

2015-11-30 Thread Martin Alfke
Hi Francois, On 30 Nov 2015, at 05:09, Francois Lafont wrote: > Hi, > > I'm using Puppet 4 and I'm wondering if this (see below) is possible. > > I have 2 Puppet modules, moda and modb. We can imagine that theses modules > have just one class init.pp. The class ::moda has a parameter "param"

[Puppet Users] Re: how to trigger puppet run on agents remotely

2015-11-30 Thread Christian Flamm
Very simple, yet helpful: https://github.com/alcCapone/doll -- 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 th

[Puppet Users] Re: Cert generation messed up, fresh install

2015-11-30 Thread jcbollinger
On Wednesday, November 25, 2015 at 4:45:57 PM UTC-6, John Gateley wrote: > > Puppet 4.3.0 > Server Debian 7 > Client Debian 8 > > I have verified the server is running and listening on port 8140 > The client has the puppet service started, but there are no certs to > verify on the server. > This

[Puppet Users] Re: puppet calling systemctl instead of /etc/init.d/xxx even when told to use debian provider

2015-11-30 Thread jcbollinger
On Wednesday, November 25, 2015 at 9:16:16 AM UTC-6, Aqueos Aqueos wrote: > > in > /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/service/debian.rb > the lines: > > if ((os == 'debian' && majversion >= 8) || (os == 'ubuntu' && > majversion >= 15)) > # SysVInit scripts wi

[Puppet Users] rspec for facts with multiple resolutions

2015-11-30 Thread Fabien Wernli
Hi, I'm trying to write rspec tests for facts with multiple resolutions. I know I can stub facts, and thus test all resolutions by targeting them using the stubbed facts. But how do I test a given resolution if the previous fails? Or how do I test a given resolution when it was given an explicit

[Puppet Users] Re: why does the create_resource functio not contain in local scope?

2015-11-30 Thread jcbollinger
On Thursday, November 26, 2015 at 9:34:37 PM UTC-6, Haani Niyaz wrote: > As you can see in the output above server_packges will be executed again > after the execution of some_class: > Notice: Class[some_class::Service]: Would have triggered 'refresh' from 2 > events > Notice: /Stage[main]/S

[Puppet Users] Re: Passing a generated variable inside a template...how?

2015-11-30 Thread Dayton Jones
Ok... I switched tactics somewhat and have more or less what I wanted: === start ERB file === <% @interfaces.split(',').each do |int| if has_variable?("ipaddress_#{int}") -%> <%= scope["ipaddress_#{int}"] -%> <%= Resolv.getname(scope["ipaddress_#{int}"]) -%> <% end -%> <% end -%> === end ERB fil

[Puppet Users] Re: Puppet 4: default value of a parameter in a module and dependency

2015-11-30 Thread jcbollinger
On Sunday, November 29, 2015 at 10:09:20 PM UTC-6, François Lafont wrote: > > Hi, > > I'm using Puppet 4 and I'm wondering if this (see below) is possible. > > I have 2 Puppet modules, moda and modb. We can imagine that theses modules > have just one class init.pp. "init.pp" is the name of

[Puppet Users] SELinux context warnings, how-to fix ?

2015-11-30 Thread Remy
Hi, We moved from 3.1 to 3.8 and we faced some warnings regarding SELinux all of the sudden: Nov 30 14:48:22 nodename puppet-agent[9865]: Failed to set SELinux context system_u:object_r:usr_t:s0 on /usr/sap/home/username Nov 30 14:48:22 nodename puppet-agent[9865]: (/File[/usr/sap/home/usernam

Re: [Puppet Users] Re: puppet calling systemctl instead of /etc/init.d/xxx even when told to use debian provider

2015-11-30 Thread Ghislain
I understand your dissatisfaction, but I feel obligated to observe that Puppet isn't forcing you to do anything. *Because of peculiarities in Debian*, Puppet cannot properly manage services on some versions of that distro via straight sysV initscripts. This in no way forces you to instal

Re: [Puppet Users] Re: puppet calling systemctl instead of /etc/init.d/xxx even when told to use debian provider

2015-11-30 Thread jcbollinger
On Monday, November 30, 2015 at 11:16:17 AM UTC-6, Aqueos Aqueos wrote: > > > > > > I understand your dissatisfaction, but I feel obligated to observe that > Puppet isn't forcing you to do anything. *Because of peculiarities in > Debian*, Puppet cannot properly manage services on some versions

Re: [Puppet Users] Re: puppet calling systemctl instead of /etc/init.d/xxx even when told to use debian provider

2015-11-30 Thread Will Hopper
Hey Ghislain! > Right now until this particular push of new code all was working as > intended for us, but this code was added in the service sysV init provider > a check of systemD in the sysvinit part. So you can be an advocate of > systemd and there is no problem on that but sytemd can

Re: [Puppet Users] Re: puppet calling systemctl instead of /etc/init.d/xxx even when told to use debian provider

2015-11-30 Thread Will Hopper
Hey John! Thanks for the responses and analysis of the situation! You're spot on in several areas which prompted this change in the first place. Comments inline: > Please allow me to clarify that I have no particular objection to nor > animosity for Debian 8 "Jessie", or any earlier version

[Puppet Users] Re: Passing a generated variable inside a template...how?

2015-11-30 Thread Dayton Jones
Ah...nevermind, figured this out! Sorting (well, reverse sorting so lo0 gets put first): <% @interfaces.split(',').sort!{|x, y| y <=> x}.each do |int| if has_variable?("ipaddress_#{int}") -%> Splitting: <% fqdn = Resolv.getname(scope["ipaddress_#{int}"]) -%> <% name = (fqdn.split('.')) -%> <%=

Re: [Puppet Users] powershell detect then install nonexistent or replace existing custom service

2015-11-30 Thread Rob Reynolds
On Wed, Nov 4, 2015 at 2:11 PM, Aaron wrote: > blech - nevermind. still throws horrible errors when the service has not > been installed yet and puppet runs (such as on a new VM). > > Is there any way to have it see that there is an error during the > uninstall and then run an ELSE and move onto

Re: [Puppet Users] Re: Forge ACL Module 1.1.1 on Windows 7 x64 SP1

2015-11-30 Thread Rob Reynolds
On Tue, Nov 10, 2015 at 7:22 AM, jmp242 wrote: > Ok, well, it was on one test computer. On others it's giving the same > error, but I think the parameter issue is actually specific to the existing > file / permissions. I moved the file and re-ran puppet, which as part of > the manifest re-created

[Puppet Users] Announce: puppet-agent 1.3.1 available.

2015-11-30 Thread Eric Sorenson
Puppet Agent 1.3.1 is now available. This is a bugfix release of the all-in-one agent, which bundles up Ruby, Puppet, Facter, and other components into a single package. This release includes the following updates: * Facter 3.1.3 fixes a regression where the `puppetversion` fact was not repo

[Puppet Users] Hiera Interpolation

2015-11-30 Thread Matthew Ceroni
I have been using variable interpolation within my Hiera data files for sometime. For instance I have Citrix NetScaler LB rules defined as such: apache: name: "%{::cluster}-apache" ensure: 'present' service_type: 'HTTP' state: true lb_method: 'LEASTCONNECTION' And b