[Puppet Users] Re: Problem with definition/classes

2012-01-07 Thread Ola
On 8 Jan, 00:14, Gabriel Filion wrote: > On 12-01-07 12:55 PM, Ola wrote: > > > On the puppet server i have the stuff placed at: /etc/puppet/modules/ > > snmpd/manifests > > The init.pp looks like this: > > hmm it mostly looks okay, but I don't know if it was a typing mistake > when copying or i

Re: [Puppet Users] Re: Puppet agent hangs after running a few hours, defunct sh process

2012-01-07 Thread Andreas N
On Sunday, January 8, 2012 5:26:50 AM UTC+1, Nigel Kersten wrote: > > We moderate the first post from everyone to stop spam getting through. > > This sucks, but it sucks less than the other alternatives of moderating > every post, or approving membership manually. > Nigel, good to know, thanks!

Re: [Puppet Users] Re: Puppet agent hangs after running a few hours, defunct sh process

2012-01-07 Thread Nigel Kersten
On Thu, Jan 5, 2012 at 11:06 PM, Andreas N wrote: > Wow, it took quite a while for my post to reach this group. No idea why, > is it moderated? > > We moderate the first post from everyone to stop spam getting through. This sucks, but it sucks less than the other alternatives of moderating every

[Puppet Users] Re: Puppet agent hangs after running a few hours, defunct sh process

2012-01-07 Thread Andreas N
On Friday, January 6, 2012 5:31:34 PM UTC+1, jcbollinger wrote: > > > Nothing in your log suggests that the Puppet agent is doing any work > when it fails. It appears to apply a catalog successfully, then > create a report successfully, then nothing else. That doesn't seem > like a problem in

Re: [Puppet Users] Problem with definition/classes

2012-01-07 Thread Zac Sprackett
On Sat, Jan 7, 2012 at 6:14 PM, Gabriel Filion You can check your init.pp file for syntax with the command: > > puppet --parseonly --ignoreimport > /etc/puppet/modules/snmpd/manifests/init.pp > Be advised that in recent puppet, --ignoreimport will in fact ignore the entire file and return true ev

Re: [Puppet Users] Problem with definition/classes

2012-01-07 Thread Gabriel Filion
On 12-01-07 12:55 PM, Ola wrote: > On the puppet server i have the stuff placed at: /etc/puppet/modules/ > snmpd/manifests > The init.pp looks like this: hmm it mostly looks okay, but I don't know if it was a typing mistake when copying or if you really copy-pasted from your file, but: > class sn

Re: [Puppet Users] Static Puppet Binary

2012-01-07 Thread Zac Sprackett
I don't see this as any different than pushing a script to the system to do the initial deployment or running a script that makes ssh connections to it. There's no need for a static binary. In the early days, before it was part of our base config, we used to push puppet to machines that didn't ha

[Puppet Users] Problem with definition/classes

2012-01-07 Thread Ola
Hello So i have tried to write my first custom module, its to config snmp and have different snmpd.conf depening on where the server is placed (different offices etc) I just cant get it to work all the way, i get this error: err: Could not retrieve catalog from remote server: Error 400 on SERVER:

Re: [Puppet Users] Static Puppet Binary

2012-01-07 Thread Nigel Kersten
On Sat, Jan 7, 2012 at 9:34 AM, Mister IT Guru wrote: > Good Evening > > I just wanted to ask a question here, is it possible to build a static > binary that I could sep to a client machine, and have it do it's first run > to connect to a puppet master? > > My plan is to use a static binary as a

[Puppet Users] Static Puppet Binary

2012-01-07 Thread Mister IT Guru
Good Evening I just wanted to ask a question here, is it possible to build a static binary that I could sep to a client machine, and have it do it's first run to connect to a puppet master? My plan is to use a static binary as a sort of installer for particular systems, as I don't really want

Re: [Puppet Users] Re: Database calls in puppet manifests

2012-01-07 Thread Nigel Kersten
On Fri, Jan 6, 2012 at 8:45 AM, windowsrefund wrote: > > > On Jan 6, 10:25 am, Jeff Sussna wrote: > > (How) do folks handle situations where puppet variables need to be > > populated from dynamic database queries? > > Most folks do not. However, some have spawned a framework called > hiera. By de

Re: [Puppet Users] compliance baseline

2012-01-07 Thread Nigel Kersten
On Fri, Jan 6, 2012 at 11:54 AM, gen...@allantgroup.com < andyr...@gmail.com> wrote: > I am trying to get my nodes to show how compliant they are to their > baselines. But, I cannot get even the baseline data to show up. I > have an audit class : > > class audits { >file{'/var/log/me

Re: [Puppet Users] Re: Best practice for SELinux overrides

2012-01-07 Thread Gabriel Filion
Or you could use a parametrized class to make things shorter and easier to understand: class common ( $selinux_mode = 'enforcing' ) { class { selinux: mode => $selinux_mode } } node server1 { include common } node server2 { class { common: selinux_mode => 'permissive' } } -- Gabriel Fili