[Puppet Users] Re: excluding modules from filebucketing

2010-04-08 Thread chakkerz
No, that is exactly what i wanted :) Thanks for that! Christian On Apr 9, 4:32 pm, Patrick wrote: > On Apr 8, 2010, at 11:11 PM, chakkerz wrote: > > > > > G'day all > > > I've got the following two lines in my site.pp: > > > # Define the bucket > >        filebucket { main: server => puppet } >

Re: [Puppet Users] excluding modules from filebucketing

2010-04-08 Thread Patrick
On Apr 8, 2010, at 11:11 PM, chakkerz wrote: > G'day all > > I've got the following two lines in my site.pp: > > # Define the bucket >filebucket { main: server => puppet } > > # Specify it as the default target >File { backup => main } > > Which I added based on something in t

Re: [Puppet Users] Re: Strange order dependency

2010-04-08 Thread Patrick
On Apr 8, 2010, at 11:03 PM, chakkerz wrote: > I think i had a similar problem some time ago. The best way around it > (whoa that's a loaded statement : ) ) is to: > > Move your recursive etc pushout into a module, and tell anything that > also wants to write into /etc to do so with a > require

[Puppet Users] excluding modules from filebucketing

2010-04-08 Thread chakkerz
G'day all I've got the following two lines in my site.pp: # Define the bucket filebucket { main: server => puppet } # Specify it as the default target File { backup => main } Which I added based on something in the best practices page. Thing is, I've got a couple of servers that

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Ohad Levy
On Fri, Apr 9, 2010 at 12:32 AM, Patrick wrote: > > +1 to this. Almost all the computers I manage have pretty simple > configurations, but it's nice to know that with 4 commands I can wipe > everything and bring it back to a known state. I use a > tftpinstall+preseeding for ubuntu. Then puppet

[Puppet Users] Re: Strange order dependency

2010-04-08 Thread chakkerz
I think i had a similar problem some time ago. The best way around it (whoa that's a loaded statement : ) ) is to: Move your recursive etc pushout into a module, and tell anything that also wants to write into /etc to do so with a require => File["/etc"], That way your /etc/ from your preferred s

Re: [Puppet Users] Re: Possible options to transfer information from nodes to master?

2010-04-08 Thread Daniel Pittman
Tore writes: > Thanks again for the answers. I've haven't got to much time to play with > puppet, but I always seems to forget that puppet compiles the code at the > master, and sends this code to the nodes. The only thing that is transferred > from the nodes regarding information, is facter info

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Daniel Pittman
Patrick writes: > On Apr 8, 2010, at 7:24 AM, Evan Hisey wrote: > >>> Regardless of if puppet is intended to manage multiple similar hosts, it is >>> still useful when you have a smaller number of unique hosts. >>> >>> If every host is completely unique then you get one some benefits of puppet: >

Re: [Puppet Users] File Size

2010-04-08 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hmm...perhaps both modes could be supported. Have one way to schedule and another to run inline. That would be quite useful. Trevor On 04/08/2010 01:45 PM, Thomas Bellman wrote: > Dan Bode wrote: > >> I would prefer if puppet ran the sync. It woul

[Puppet Users] Strange order dependency

2010-04-08 Thread Jesús M. Navarro
Hi, list: I'm a rookie on his first tests with Puppet and I found something that it's probably obvious but that still don't understand. I have some modules that manage some files under /etc/ (say, /etc/resolv.conf, /etc/ntp.conf, etc.) and then, since I "inherited" quite a lot of files managed

Re: [Puppet Users] dependencies

2010-04-08 Thread James Turnbull
On 9 April 2010 08:35, Christopher Johnston wrote: > What is the best way to map out all my depencies (is there a way to chart > them somehow?)  I am finding no matter how many places I put notifies, > requires, etc.  I still end up having to two 2-3 runs of puppet.  Very > frustrating. > >From t

Re: [Puppet Users] dependencies

2010-04-08 Thread Christopher Johnston
What is the best way to map out all my depencies (is there a way to chart them somehow?) I am finding no matter how many places I put notifies, requires, etc. I still end up having to two 2-3 runs of puppet. Very frustrating. On Thu, Mar 18, 2010 at 11:57 AM, Nigel Kersten wrote: > On Thu, Ma

[Puppet Users] Re: Puppet commands giving nothing but a stack trace

2010-04-08 Thread Ken
I don't suppose its your stack size? Whats the output of 'ulimit -a' on your box (as the user you were trying to run those command as of course). Mine is 8192 kb. Can you try it with a later version of Ruby from RHEL 5.4? On Apr 8, 9:50 pm, Rob McBroom wrote: > I suspect this has more to do with

[Puppet Users] Puppet commands giving nothing but a stack trace

2010-04-08 Thread Rob McBroom
I suspect this has more to do with Ruby than Puppet, but I know little about Ruby and Google has failed me, so I'm asking here. I'm finally getting some of our older systems brought into Puppet. I installed it on several this morning without incident, but there are two (more or less identical R

Re: [Puppet Users] File Size

2010-04-08 Thread Thomas Bellman
Patrick wrote: On Apr 8, 2010, at 2:15 AM, Thomas Bellman wrote: This does two things: when run the first time, it actually does an rsync of a directory tree. And then it creates a cron job for keeping the tree synchronized with the source. You use the 'creates' parameter to indicate a file

Re: [Puppet Users] File Size

2010-04-08 Thread Nigel Kersten
On Thu, Apr 8, 2010 at 10:50 AM, Paul Lathrop wrote: > On Thu, Apr 8, 2010 at 10:45 AM, Thomas Bellman > wrote: > > Dan Bode wrote: > > > >> I would prefer if puppet ran the sync. It would be nice to receive > puppet > >> events for any changes made via rsync (essentially reports of which > files

Re: [Puppet Users] File Size

2010-04-08 Thread Paul Lathrop
On Thu, Apr 8, 2010 at 10:45 AM, Thomas Bellman wrote: > Dan Bode wrote: > >> I would prefer if puppet ran the sync. It would be nice to receive puppet >> events for any changes made via rsync (essentially reports of which files >> change, this would require that it is implemented in ruby). >> >>

Re: [Puppet Users] File Size

2010-04-08 Thread Thomas Bellman
Dan Bode wrote: I would prefer if puppet ran the sync. It would be nice to receive puppet events for any changes made via rsync (essentially reports of which files change, this would require that it is implemented in ruby). I can see from reading the man page that there is a --dryrun call tha

Re: [Puppet Users] erb syntaxe IF OR

2010-04-08 Thread smain kahlouch
2010/4/8 Peter Meier > I would like to specify a condition, what is the wright syntax for >> <% if hostname == 'some' or 'someother' then %> >> > > erb is plain ruby, so have a look at the ruby language, how the right > syntax would be. I assume you would like to do something like: > > <% if (hos

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Patrick
On Apr 8, 2010, at 7:24 AM, Evan Hisey wrote: >> Regardless of if puppet is intended to manage multiple similar hosts, it is >> still useful when you have a smaller number of unique hosts. >> >> If every host is completely unique then you get one some benefits of puppet: >> * you have a single

Re: [Puppet Users] File Size

2010-04-08 Thread Patrick
On Apr 8, 2010, at 2:15 AM, Thomas Bellman wrote: > Trevor Vaughan wrote: > >> Mainly sugar around the call with the ability to twiddle all of the >> useful rsync flags in a platform-agnostic manner where possible. >> That would be truly awesome. > > I have such a define in my module "nsc-puppe

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Nigel Kersten
On Thu, Apr 8, 2010 at 12:15 AM, Dmitry V'yal wrote: > Bruce Richardson wrote: > >> On Wed, Apr 07, 2010 at 12:10:07PM -0700, Dmitry V'yal wrote: >> >>> Hello, >>> >>> I'm currently administering a vps running a dozen of php-sites. I use >>> several scripts for deploying new sites, updating them,

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Eric Gerlach
On Wed, Apr 07, 2010 at 12:10:07PM -0700, Dmitry V'yal wrote: > Hello, > > I'm currently administering a vps running a dozen of php-sites. I use > several scripts for deploying new sites, updating them, taking the > backups and so on. All the system is quite fragile and error-prone. > I'm thinking

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Evan Hisey
> > Hmm, you're right, I didn't thought about it, but each member of our team > has a desktop machine he uses for development and testing. And as it comes > to web related things, the setup is intentionally almost the same as on the > server. > > Also, currently we're planning to change the geograp

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Evan Hisey
> Regardless of if puppet is intended to manage multiple similar hosts, it is > still useful when you have a smaller number of unique hosts. > > If every host is completely unique then you get one some benefits of puppet: >  * you have a single place to review your configuration >  * you can make c

Re: [Puppet Users] erb syntaxe IF OR

2010-04-08 Thread Peter Meier
I would like to specify a condition, what is the wright syntax for <% if hostname == 'some' or 'someother' then %> erb is plain ruby, so have a look at the ruby language, how the right syntax would be. I assume you would like to do something like: <% if (hostname == 'some') || (hostname == '

[Puppet Users] erb syntaxe IF OR

2010-04-08 Thread smain kahlouch
Hi all, I would like to specify a condition, what is the wright syntax for <% if hostname == 'some' or 'someother' then %> Thanks again, Grifith -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@

Re: [Puppet Users] File Size

2010-04-08 Thread Trevor Vaughan
That's definitely reasonable and probably worthwhile. And having this be an internal puppet type that could parse the output of rsync and report errors, etc... would be ideal. Trevor On Thu, Apr 8, 2010 at 6:22 AM, Dan Bode wrote: > > > On Thu, Apr 8, 2010 at 2:15 AM, Thomas Bellman wrote: >>

Re: [Puppet Users] How to set variables for groups of computers

2010-04-08 Thread Ohad Levy
Hi, http://theforeman.org/projects/foreman/wiki/External_Nodes#Host-Groups Hopefully this helps :) Ohad On Thu, Apr 8, 2010 at 7:48 PM, Kenneth Holter wrote: > Hi. > > > I'm in need of setting a few variables for groups of nodes/computers, and > could use some advice on how to set this up. I'm

Re: [Puppet Users] How to set variables for groups of computers

2010-04-08 Thread Dan Bode
On Thu, Apr 8, 2010 at 4:48 AM, Kenneth Holter wrote: > Hi. > > > I'm in need of setting a few variables for groups of nodes/computers, and > could use some advice on how to set this up. I'm just about to start using a > extlookup.rb setup, which in the default setup enables me to set variables >

[Puppet Users] How to set variables for groups of computers

2010-04-08 Thread Kenneth Holter
Hi. I'm in need of setting a few variables for groups of nodes/computers, and could use some advice on how to set this up. I'm just about to start using a extlookup.rb setup, which in the default setup enables me to set variables based on facter information (plus the "common" default file). I nee

[Puppet Users] Re: Possible options to transfer information from nodes to master?

2010-04-08 Thread Tore
Hi, Thanks again for the answers. I've haven't got to much time to play with puppet, but I always seems to forget that puppet compiles the code at the master, and sends this code to the nodes. The only thing that is transferred from the nodes regarding information, is facter information. Hence the

Re: [Puppet Users] File Size

2010-04-08 Thread Dan Bode
On Thu, Apr 8, 2010 at 2:15 AM, Thomas Bellman wrote: > Trevor Vaughan wrote: > > Mainly sugar around the call with the ability to twiddle all of the >> useful rsync flags in a platform-agnostic manner where possible. >> >> That would be truly awesome. >> > > I have such a define in my module "n

Re: [Puppet Users] File Size

2010-04-08 Thread Thomas Bellman
Trevor Vaughan wrote: Mainly sugar around the call with the ability to twiddle all of the useful rsync flags in a platform-agnostic manner where possible. That would be truly awesome. I have such a define in my module "nsc-puppet-utils" (available at http://www.nsc.liu.se/~bellman/nsc-puppet-

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Bruce Richardson
On Thu, Apr 08, 2010 at 11:31:18AM +0400, Dmitry V'yal wrote: > Also, currently we're planning to change the geographic location of vps > and to move from gentoo to ubuntu. Looks like a perfect time for big > changes. There's never a perfect time for big changes. Change one thing at a time wh

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Dmitry V'yal
Daniel Pittman wrote: "Dmitry V'yal" writes: I'm currently administering a vps running a dozen of php-sites. I use several scripts for deploying new sites, updating them, taking the backups and so on. All the system is quite fragile and error-prone. I'm thinking about some more integrated sol

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Dmitry V'yal
Bruce Richardson wrote: On Wed, Apr 07, 2010 at 12:10:07PM -0700, Dmitry V'yal wrote: Hello, I'm currently administering a vps running a dozen of php-sites. I use several scripts for deploying new sites, updating them, taking the backups and so on. All the system is quite fragile and error-pron

Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Dmitry V'yal
Nigel Kersten wrote: On Wed, Apr 7, 2010 at 12:10 PM, Dmitry V'yal > wrote: Hello, I'm currently administering a vps running a dozen of php-sites. I use several scripts for deploying new sites, updating them, taking the backups and so on. All the sys