Re: [Puppet Users] node based regex entries

2013-03-12 Thread Iain Sutton
rubular.com suggests that the regex should be ^sbx-.*-\d\d$ On 13 March 2013 12:16, Mike Reed wrote: > Hello all, > > I've been trying to configure node-based regex entries and puppet seems to > be giving me a hard time with this one. > > Our system naming convention is this: > > sbx--. > > For

Re: [Puppet Users] (New To Puppet)Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class sudo for pupclient on node pupclient

2013-01-20 Thread Iain Sutton
It looks like a syntax issue (at a minimum): *package { "sudo-ldap":* *ensure => present,* *require => Package["sudo],* *}* *}* * * There isn't a trailing doublequote for the "sudo" line. On 20 January 2013 16:38, Fusebox wrote: > Hello Folks! > > I am trying to learn pu

Re: [Puppet Users] Trying to get tagmail to work

2012-06-14 Thread Iain Sutton
Legacy perhaps, but we have: confdir = /etc/puppet tagmap = $confdir/tagmail.conf in puppet.conf's [master] section and our tagmails work. Cheers, Iain On 13 June 2012 05:59, Jason Knudsen wrote: > Yeah -- checked that already, sorry forgot to mention that. Setup with > postfix and a r

Re: [Puppet Users] puppet-dashboard with SELinux enforced - anyone frpm PuppetLab care to comment?

2012-05-27 Thread Iain Sutton
If you're running puppet as a daemon with selinux in enforcing mode, I think you may need to run: setsebool puppetmaster_use_db on In the current state and presuming that the audit daemon is running, /var/log/audit/audit.log should be reporting which aspect of selinux is preventing the access req

Re: [Puppet Users] Installing PE2.0 on open source Citrix XenServer

2012-03-22 Thread Iain Sutton
Hi Ben, I would try installing vixie-cron which offers the same capabilities under EL5 as cronie under EL6: CentOS5 machine: $ cat /etc/redhat-release ; rpm -q --whatprovides vixie-cron CentOS release 5.8 (Final) vixie-cron-4.1-81.el5 CentOS6 machine: $ cat /etc/redhat-release ; rpm -q --whatpro

Re: [Puppet Users] Re: Distributing file over puppet client

2012-03-07 Thread Iain Sutton
Is the source file readable by the puppet user? On 7 March 2012 23:06, Bernd Adamowicz wrote: > Niraj, > > I'll give you an example that works for me. But it uses modules. If you > don't so far, you really should start. > > Given this structure below an environment below '/etc/puppet' on my Pupp

Re: [Puppet Users] Re: Multiple nodes.pp files

2011-11-23 Thread Iain Sutton
Aside: do you perhaps mean source => file("/home/$::realuser/puppet/files/smb.conf"), instead of content => file("/home/$::realuser/puppet/files/smb.conf"), ? Do you have any lines like: notice("the value of realuser is ${realuser} and ::realuser is ${::realuser} ") in your manifest to confi

Re: [Puppet Users] Knowing if a file is managed by puppet

2011-11-15 Thread Iain Sutton
+1 for tangled strings On 16 November 2011 04:03, Ken Barber wrote: > Depends on why you want this info ... but its available in the catalog > on the box for 'grepping' (more or less). > > Something I recommend to some people: > > http://www.tenshu.net/2010/08/adventures-in-puppet-tangled-string

Re: [Puppet Users] Puppet client dying without errors

2011-09-22 Thread Iain Sutton
This looks much like the error we had, which was: ruby: ../../../libraries/libldap/result.c:113: ldap_result: Assertion `ld != ((void *)0)' failed. Under CentOS/RHEL, you need to upgrade the version of nss_ldap to 253-37.el5_6.1 (or later) Bug details: https://bugzilla.redhat.com/show_bug.cgi?id=

Re: [Puppet Users] Starting httpd with Passenger on CentOS6 throws SSLCertificateFile does not exist or is empty error

2011-09-04 Thread Iain Sutton
SSLCertificateFile: file '/var/lib/puppet/ssl/certs/puppet.tst.mydomain.pem' [root@brllx097 ~]# ls -la /var/lib/puppet/ssl/certs/puppet.tst.mydomain.com.pem -rw-r-. 1 puppet root 912 Sep 2 11:40 /var/lib/puppet/ssl/certs/puppet.tst.mydomain.com.pem Possibly a copy/paste/redact error (or I mi

Re: [Puppet Users] Re: Managing sudo via puppet using #includedir

2011-08-02 Thread Iain Sutton
To add a newline, put the closing double quote on a new line. content => "zabbix ALL=NOPASSWD: /var/lib/zabbix/bin/start_puppet", becomes content => "zabbix ALL=NOPASSWD: /var/lib/zabbix/bin/start_puppet ", On 2 August 2011 09:59, treydock wrote: > Ok , so this was actually two problems... > >

Re: [Puppet Users] Puppet Crashing, libldap error?

2011-05-26 Thread Iain Sutton
Belated update on this one from another 'victim'... Our CentOS and RHEL hosts don't have ruby-ldap, but we had the same problem, with ldap-related assertion failures, including a couple of times outside of a puppet run where ssh sessions would be terminated. The fix: upgrade the version of nss_ld

Re: [Puppet Users] Re: Disabling optional services

2011-05-12 Thread Iain Sutton
For syslog-ng, we used the following and it seems to work: case defined(Package["syslog-ng"]) { false: { service { "syslog": enable => false } } } package { "syslog-ng": ensure => installed, provider => yum }

Re: [Puppet Users] Re: Who uses the rrd graphing support?

2011-05-12 Thread Iain Sutton
+1 from us too On 12/05/2011, at 7:40 PM, "joel.merr...@gmail.com" wrote: > On Thu, May 12, 2011 at 4:02 AM, Nigel Kersten wrote: >> I'd much prefer it if we could concentrate on Puppet providing awesome >> data sets for tools to graph rather than supporting something like the >> rrdgraph func

Re: [Puppet Users] Re: auth.conf & namespaceauth.conf : which files belong on the master , and c

2011-02-24 Thread Iain Sutton
Yep, your experience matches what we see in our setup: The puppetmaster has neither an auth.conf nor a namespaceauth.conf and operates with just one error: we can't run puppetd on the puppetmaster because namespaceauth.conf is missing... On 23/02/2011, at 2:56 PM, Jed wrote: > so even more wi

Re: [Puppet Users] Re: puppetrun :: "HTTP-Error: 500 Internal Server Error" (w/ Passenger)

2011-02-13 Thread Iain Sutton
We use passenger and puppet 0.25.5 too. Since I've never figured out the right contents for namespaceauth.conf on the puppetmaster to avoid these 500 errors when performing puppetruns, we perform the following steps: 1. delete the namespaceauth.conf file on the puppetmaster 2. ensure that the the

Re: [Puppet Users] Re: New Employee Announcement -- Daniel Pittman joins Puppet Labs.

2010-12-23 Thread Iain Sutton
What, no other Aussies? "Aussie, Aussie, Aussie, Oi, Oi OI". :-D On 17 December 2010 12:11, Nan Liu wrote: > On Thu, Dec 16, 2010 at 5:22 PM, Teyo Tyree wrote: > > Happy to announce that Daniel Pittman has joined Puppet Labs as a member > of > > the development team. He will be working remote

Re: [Puppet Users] Re: filebucket questions

2010-12-23 Thread Iain Sutton
Here's a script we use for this purpose: #!/bin/bash # # Adapted from http://markmail.org/message/nybqh3be7bcge33h # if [ -z $1 ] then echo "This script is used to retrieve backups of files that were" echo "updated by puppet but which you might want to retrieve or" echo "reinstate. Remember th

Re: [Puppet Users] Re: File not found during puppet fileserving

2010-12-14 Thread Iain Sutton
We have just stumbled across this having moved to external nodes using Foreman. Our dev environment is where we make quick changes to manifests (and nominally only affect dev nodes), but sometimes those changes are only relevant to production nodes. In those scenarios, on production nodes we used

Re: [Puppet Users] Re: error running puppetrun

2010-12-10 Thread Iain Sutton
Hi, > > The cpu is hardly busy. I'm not clear on the network part though cause > DNS resolutions and n/w connectivity everything's fine. It's just that > out of the blue had this problem. > > regards, > > On Wed, Dec 8, 2010 at 6:58 AM, Iain Sutton wrote: > >

Re: [Puppet Users] Re: error running puppetrun

2010-12-07 Thread Iain Sutton
We experience this problem too. Our puppetmaster is overloaded (was fine until we enabled storeconfigs against a mysql server on the same host, now it's CPU bound, but we're okay with this for the short term). Do you have something chewing CPU on your systems? On 8 December 2010 00:07, James Loui

Re: [Puppet Users] Re: (RHEL) RHN banning && require package

2010-11-04 Thread Iain Sutton
Also for the record. We've experienced the banning - but only for RHEL4 hosts (which use up2date) and not RHEL5 (which use yum). Our solution while we still have RHEL4 hosts and haven't implemented RedHat Satellite or Spacewalk was to push the runinterval out to 14400 for these hosts. This matche

Re: [Puppet Users] Re: Port 8139 needs to be open between machine running puppetrun and a client puppetd machine, correct?

2010-02-11 Thread Iain Sutton
Hi, We are able to successfully invoke puppetrun from the puppetmaster. The two main differences between our configuration and what is posted below are: a) the line 'server=puppet.mydomain.com' is in the [puppetd] section on the client, not in the [main] section b) we don't have a namespaceauth.c