[Puppet Users] scope.compiler.classlist.include not working as expected?

2013-03-02 Thread Dave Alden
Hi, I've been trying to clean up my nodes.pp file, and I broke my puppet installation. :) What I have is a tcpwrappers module that has the following in the hosts.allow template: <% if scope.compiler.classlist.include?("tftp") then %>in.tftpd: ALL<% end %> The following works as I would

Re: [SPAM] [Puppet Users] In CentOS 6, puppet Unresponsive

2011-12-30 Thread Dave Alden
Hi, On Dec 30, 2011, at 3:50 AM, Juan-Francisco Diez wrote: > The problem we have is that the puppet client become unresponsive after a few > minutes. All we can see through the logs of the client is that the puppet is > running but never end. We see the process through a "ps" command but it nev

Re: [SPAM] Re: [Puppet Users] how to restrict an exec?

2011-12-01 Thread Dave Alden
On Nov 30, 2011, at 8:04 PM, Nan Liu wrote: > On Wed, Nov 30, 2011 at 7:41 PM, Dave Alden wrote: >> Is there some way to have an exec run only if you pass a tag on the command >> line? For example: >> >> class fubar { >> exec { 'reboot-system'

[Puppet Users] how to restrict an exec?

2011-11-30 Thread Dave Alden
Hi, Is there some way to have an exec run only if you pass a tag on the command line? For example: class fubar { exec { 'reboot-system': refreshonly => true, command => '/usr/bin/reboot', subscribe => Class["dummy"] } } As I would expect, this throws an error the it can't f

Re: [SPAM] Re: [Puppet Users] help with the firewall puppet forge module

2011-10-26 Thread Dave Alden
Hi, On Oct 26, 2011, at 11:50 AM, Ken Barber wrote: > Odd that you get no results. > > I'm curious. What is the output of 'iptables-save' on your box? > > Also ... can you do a: > > puppet resource firewall > > And does it return anything? Try inserting a rule and testing it as > well (rule ne

Re: [SPAM] Re: [Puppet Users] help with the firewall puppet forge module

2011-10-26 Thread Dave Alden
Hi, On Oct 26, 2011, at 10:55 AM, Ken Barber wrote: > Is the class getting included properly? You should be getting: > > err: Could not run Puppet configuration client: Parameter name failed: > Invalid value "allow-snmp". I believe it is. I was not getting the error, but I've gone ahead and add

Re: [Puppet Users] help with the firewall puppet forge module

2011-10-26 Thread Dave Alden
Hi, So now I'm not getting any errors when I put the following in one of my classes: firewall { "allow-snmp": proto => 'all', dport => '161', action => 'accept', } But I'm also not seeing any change in my iptables firewall (nor am I seeing anything about th