[Puppet Users] Including a defined resource in a class

2011-11-29 Thread beamin melbin
I've read the documentation over at: http://docs.puppetlabs.com/guides/language_guide.html I cannot figure out how to include a defined resource. I've tired: include User::Admin['beamin'] I get: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `downcase

[Puppet Users] How do I require a resource in a definition based on an array parameter?

2011-11-29 Thread beamin melbin
I have a define that looks like this: define user::sys_user($fullname, $uid, $groups, $shell='/bin/bash', $authkey, $authkey_type=rsa) { $username = "sys_${name}" group { $username: gid => $uid, } user { $username: require => Group[

[Puppet Users] Re: Using firewall module, how do I clear iptables before rules are applied?

2011-11-28 Thread beamin melbin
That is exactly what I wanted. Thank you Steve! On Nov 28, 12:18 pm, Steve Traylen wrote: > On Mon, Nov 28, 2011 at 6:02 AM, beamin melbin wrote: > > I am currently using Puppet's firewall module: > > >http://forge.puppetlabs.com/puppetlabs/firewall > > >

[Puppet Users] Using firewall module, how do I clear iptables before rules are applied?

2011-11-28 Thread beamin melbin
I am currently using Puppet's firewall module: http://forge.puppetlabs.com/puppetlabs/firewall I am trying to have Puppet flush iptables before it applies firewall rules. I tried the following: exec { 'clear-firewall': command => '/sbin/iptables -F', refreshonly => true, } Firew