Re: [Puppet Users] duplicate definition error

2011-12-19 Thread Daniel Piddock
On 19/12/11 16:36, Chris Blumentritt wrote: > I have an error that I do not understand. I get a duplicate > definition and I am not sure why: http://pastie.org/3041278 > > if I change line 27 in that paste from class { 'passenger': } to > include passenger, there is not an error but the passenger

Re: [Puppet Users] mount type is constantly remounting

2011-09-15 Thread Daniel Piddock
On 15/09/11 07:59, slune wrote: > Hi, > > I have defined mount resource like this: > > mount { "/mnt/test/": > device => "//test/test", > fstype => cifs, > ensure => mounted, > options=> "defaults,acl,soft,uid=test,gid=test=x"," > remounts => true, > } > > Fo

Re: [Puppet Users] list of puppet-agents

2011-08-10 Thread Daniel Piddock
On 10/08/11 11:16, Sans wrote: > Dear all, > > Is there any why to get the list of the nodes are currently being > managed by puppet? I know that I can do that looking in the "$vardir/ > ssl/ca/signed" directory but i was wondering if puppet master itself > provides some mechanism. I'm running v2.6

Re: [Puppet Users] Facter 1.6.0 and CentOS 6.0

2011-08-01 Thread Daniel Piddock
On 30/07/11 05:26, Derek J. Balling wrote: > We just started testing CentOS 6.0 here, and I'm using Facter 1.6.0 > > If I run this command from my CentOS 5.x test machine: > > [root@puppetclient.nj1:~]# facter --version > 1.6.0 > [root@puppetclient.nj1:~]# facter | grep lsb > lsbdistcodename => Fin

Re: [Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Daniel Piddock
On 29/06/11 16:34, Craig White wrote: > This seems to work but it does seem perilous and ugly. A meta description of > what I am trying to do is: > - install firebird sql server > - replace the 'security' file with a known file > - restart the firebird service > > I'm not going to include firebird

Re: [Puppet Users] confused about file ensure/require

2011-06-21 Thread Daniel Piddock
On 21/06/11 17:03, Craig White wrote: > On Jun 20, 2011, at 3:54 PM, Ken Barber wrote: > >> It does seem like its not being included :-) ... >> >> What does: >> >> echo "# foo" >> /etc/ntp.conf >> puppet apply -d -e 'include ntp' >> >> Do? > > seems so basic - output at bottom > > I have gone

Re: [Puppet Users] postfix module problems

2011-03-04 Thread Daniel Piddock
On 03/03/11 21:14, Tim Dunphy wrote: > hello list!! > > I am having some trouble with a postfix module I am attempting to > implement. as always, your input is extremely valuable and would be > appreciated > > > here's what's going on: > > ## errors > > err: //postfix/Package[postfix-pflogsum.x86_6

Re: [Puppet Users] lsbdistcodename and Debian Squeeze

2011-03-03 Thread Daniel Piddock
On 03/03/11 11:55, FRLinux wrote: > Hello all, > > I use puppetmaster on a Debian Squeeze server (packaged from Debian 2.6.2-4) > > I am using a template for Debian Servers which works great for Lenny > in order to update my sources.list automagically, here goes: > > deb http://ftp.ie.debian.org/de

Re: [Puppet Users] overriding packages in subclasses

2011-03-02 Thread Daniel Piddock
On 02/03/11 04:31, russell.fulton wrote: > I am having a fight with a postgressql nodule: > > It defines: > > class postgresql::base { > > > package {"postgresql": > ensure => present, > notify => undef, > } > ... > > and later we have a class that inherits the base class: > > class

Re: [Puppet Users] Re: fileserver and distributing many files

2011-02-28 Thread Daniel Piddock
till really slow, run "puppet agent --test" or "puppet apply" in strace to see what's taking so long. Search for known file names. Dan > Thomas > > On Feb 28, 11:28 am, Daniel Piddock wrote: >> On 28/02/11 10:19, Thomas Rasmussen wrote: >> >>> Hi &g

Re: [Puppet Users] Re: fileserver and distributing many files

2011-02-28 Thread Daniel Piddock
On 28/02/11 10:19, Thomas Rasmussen wrote: > Hi > > My network is 100Mbit (approximately, but through a VPN so not that > fast) with latency around 2ms (right now our test-setup is running on > servers right beside each other :-)) > > I have tried to switch to passenger and this does not seem that

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Daniel Piddock
On 17/02/11 14:05, Daniel Piddock wrote: > On 17/02/11 12:09, Daniel Piddock wrote: >> I managed to solve the problem by installing the openssh-server package >> manually so the init script was present. I have other modules with a >> very similar structure and they weren'

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Daniel Piddock
On 17/02/11 12:09, Daniel Piddock wrote: > I managed to solve the problem by installing the openssh-server package > manually so the init script was present. I have other modules with a > very similar structure and they weren't throwing up these errors. Odd > glitch. Frustratin

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Daniel Piddock
On 17/02/11 11:45, Felix Frank wrote: >> e.g.: file { 'something': require => Class['ssh'] } >> class ssh gets processed but ssh::install and ssh::config might not be, >> unless I put a depend on something deeper within it. Which defeats the >> idea of organising into classes a bit. > Where have yo

Re: [Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-17 Thread Daniel Piddock
On 17/02/11 08:52, Felix Frank wrote: > Hi, > > On 02/16/2011 05:35 PM, Daniel Piddock wrote: >> Hey all, >> >> I was installing puppet on a freshly installed node and the catalog >> fails to apply. It immediately bails out with: >> err: Could not run Pupp

[Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-16 Thread Daniel Piddock
Hey all, I was installing puppet on a freshly installed node and the catalog fails to apply. It immediately bails out with: err: Could not run Puppet configuration client: Could not find init script for 'ssh' This is annoying and odd. ssh service is run by a module in main stage, there is a stage

Re: [Puppet Users] Wierd debian package issue...

2011-01-28 Thread Daniel Piddock
On 28/01/11 16:52, Peter Berghold wrote: > This one has me scratching my head. Simply enough I have the > following in one of my manifests: > > package { postgresq1: ensure => latest } I'm not sure if this is a special typo for the mailing list but that looks like a One at the end of postgresql

Re: [Puppet Users] Mirror folder with large files

2011-01-25 Thread Daniel Piddock
On 25/01/11 12:45, Brice Figureau wrote: > On Mon, 2011-01-24 at 17:14 +0000, Daniel Piddock wrote: >> Dear list, >> >> I'm attempting to mirror a folder containing a few large files from an >> NFS location to the local drive. Subsequent runs take a lot longer than

Re: [Puppet Users] Mirror folder with large files

2011-01-25 Thread Daniel Piddock
On 24/01/11 20:57, Patrick wrote: > On Jan 24, 2011, at 9:14 AM, Daniel Piddock wrote: > >> Dear list, >> >> I'm attempting to mirror a folder containing a few large files from an >> NFS location to the local drive. Subsequent runs take a lot longer than >&g

[Puppet Users] Mirror folder with large files

2011-01-24 Thread Daniel Piddock
Dear list, I'm attempting to mirror a folder containing a few large files from an NFS location to the local drive. Subsequent runs take a lot longer than I'd have expected, after the first run. Using the following block a puppet apply run is currently taking 30 seconds: file { '/usr/share/target'

Re: [Puppet Users] Namespacing, includes and module lookup. Bug?

2010-12-24 Thread Daniel Piddock
On 24/12/10 12:10, Dan Carley wrote: > On 24 December 2010 11:11, Daniel Piddock <mailto:dgp-g...@corefiling.co.uk>> wrote: > > Hey all, > > I'm not sure if I've made a fundamental misunderstanding of Puppet > namespacing and includ

Re: [Puppet Users] Namespacing, includes and module lookup. Bug?

2010-12-24 Thread Daniel Piddock
On 24/12/10 11:11, Daniel Piddock wrote: > Hey all, > > I'm not sure if I've made a fundamental misunderstanding of Puppet > namespacing and include resolution or whether there's a bug. > > Background: > I have a modules, called kerberos, that configures a

[Puppet Users] Namespacing, includes and module lookup. Bug?

2010-12-24 Thread Daniel Piddock
Hey all, I'm not sure if I've made a fundamental misunderstanding of Puppet namespacing and include resolution or whether there's a bug. Background: I have a modules, called kerberos, that configures a client for working on my kerberos domain. I then have a module called ssh that sets up a basic

Re: [Puppet Users] Re: lsbmajdistrelease fact

2010-12-21 Thread Daniel Piddock
On 21/12/10 17:48, Arnau Bria wrote: > On Tue, 21 Dec 2010 17:02:20 +0100 > Arnau Bria wrote: > >> Hi all, >> >> I've noticed that facter version superior from epel do not >> display lsbmajdistrelease fact: > Sorry for the noise, that's not true. > > it works in some systems and it doesn't in other

Re: [Puppet Users] Could not find class

2010-12-16 Thread Daniel Piddock
On 16/12/10 01:48, Dmytro Bablinyuk wrote: > Hi Everybody, > > I am sure that I am missing something very obvious, > > I have installed rsync package > > git clone https://github.com/camptocamp/puppet-rsyncd.git rsync > > The path > > r...@puppet-master:/etc/puppet/modules/rsync/manifests/classes#

Re: [Puppet Users] Best practices for different hosts with different configs

2010-12-13 Thread Daniel Piddock
On 13/12/10 04:00, Josh wrote: > Greetings, > I'm just getting started with setting up Puppet in an environment of > about ~15 servers, a mixture of Mac OS X servers and Ubuntu servers - > each with different roles and obviously different versions of configs. > > Before I get too carried away, I wa

Re: [Puppet Users] apt-get -t lenny-backports

2010-12-09 Thread Daniel Piddock
On 08/12/10 10:54, Adrian wrote: > Hello everybody, > > > Is there a way when installing a package like this : > > package { "rubygems": > ensure => installed, > } > > to pass -t parameter to apt-get in order to use a specific apt > source ? EG : apt-get install -t lenny-backports

Re: [Puppet Users] Depending on a class from a class?

2010-12-01 Thread Daniel Piddock
On 01/12/10 15:03, Nigel Kersten wrote: > On Wed, Dec 1, 2010 at 4:18 AM, Daniel Piddock > wrote: >> On 01/12/10 09:57, Daniel Piddock wrote: >>> On 30/11/10 18:07, Eric Sorenson wrote: >>>> Minimally in your current code change 'include repositories::d

Re: [Puppet Users] Depending on a class from a class?

2010-12-01 Thread Daniel Piddock
On 01/12/10 09:57, Daniel Piddock wrote: > On 30/11/10 18:07, Eric Sorenson wrote: >> Minimally in your current code change 'include repositories::debian' to >> 'require("repositories::debian")' - this is a built-in function that does an >>

Re: [Puppet Users] Depending on a class from a class?

2010-12-01 Thread Daniel Piddock
On 30/11/10 18:07, Eric Sorenson wrote: > On Nov 30, 2010, at 7:03 AM, Daniel Piddock wrote: > >> Is there any way for a class to depend on another class or for the >> include statement to act more like a require? > > Two things here: > > If you're on 2.6.3 pu

[Puppet Users] Depending on a class from a class?

2010-11-30 Thread Daniel Piddock
Hello, I fear that I have done something stupid in my manifests that requires a redesign. To take an example: I have the global statement: Package { ensure => latest, require => Class['repositories'], } I then have a repositories module with init.pp containing: class repositories { case $