Re: [Puppet Users] realize group before user ?

2010-03-10 Thread David Schmitt
On 3/10/2010 8:54 AM, Jan-Frode Myklebust wrote: I have this user and group that I need to realize: @user { policyd: ensure = present, uid = 103, gid = 103, comment = Postfix Policy Daemon,

[Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Phillip B Oldham
We use Nginx rather than apache due to a number of useful modules, however these modules need to be compiled in and therefore we're unable to use a package manager for installation. Would it be possible with puppet to grab specific versions of the various source files, compile them, and then

Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Ohad Levy
I'm not saying its a good thing, but I've created an rpm for passenger, which compiles the apache modules in the post installation scripts. all of the required packages for building it are part of the rpm package requirements... Ohad On Wed, Mar 10, 2010 at 4:45 PM, Phillip B Oldham

Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/03/10 8:02 PM, Ohad Levy wrote: I'm not saying its a good thing, but I've created an rpm for passenger, which compiles the apache modules in the post installation scripts. all of the required packages for building it are part of the rpm

[Puppet Users] Re: Upgraded puppet-server from EPEL 24.8 to 25.1 - now seeing puppetmasterd[xxxx]: Too many connections

2010-03-10 Thread Simon Mügge
Ohad, thanks for your reply! Last night ive had it and switched to gems only and had no problems at all with too many connections using storeconfigs The debian (lenny) packages where seriously outdated and now this is what my gem list looks like: ~# gem list *** LOCAL GEMS *** actionmailer

[Puppet Users] multiple environments different manifests not working

2010-03-10 Thread Hubert Krause
Hello, I was running Puppet server in version 0.24.8 on Srerver and 0.24.4 up to 0.24.8 on client and configured multiple environments. The desired behavior is to have different sets of manifests and modules for my two environments testing and production. But it works only for my modules not

[Puppet Users] Re: realize group before user ?

2010-03-10 Thread janfrode
That worked. Great, thanks! -jf -- 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...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For

[Puppet Users] Using puppet to automate tasks (ex: mysql slave setup)

2010-03-10 Thread Doug Warner
I'm not sure if puppet can be coerced to do something like this, but I wanted to throw it out there as it's a process that seems fairly easy to automate. To create new mysql slaves my process goes something like this: 1) run innobackupex [1] on mysql master 2a) copy data from master to slave

Re: [Puppet Users] Re: Dependency cycles, please help.

2010-03-10 Thread John Arundel
On Fri, Mar 5, 2010 at 1:09 PM, Julien Cornuwel cornu...@gmail.com wrote: Could not apply complete catalog: Found dependency cycles in the following relationships: Exec[/usr/sbin/a2enmod passenger] = Exec[force-reload-apache2], Package[passenger] = Exec[passenger-install],

Re: [Puppet Users] Re: memorysize returned as string - maybe

2010-03-10 Thread Michael DeHaan
On Wed, Mar 10, 2010 at 1:24 AM, Ohad Levy ohadl...@gmail.com wrote: another option that I use is to extend the string class in ruby, that would allow you to do something like: Facter.memorysize.to_gb in order to do that add somewhere (e.g. before your custom fact) class String   def to_gb  

Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Michael DeHaan
On Wed, Mar 10, 2010 at 4:04 AM, James Turnbull ja...@lovedthanlost.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/03/10 8:02 PM, Ohad Levy wrote: I'm not saying its a good thing, but I've created an rpm for passenger, which compiles the apache modules in the post

Re: [Puppet Users] Re: memorysize returned as string - maybe

2010-03-10 Thread Ohad Levy
I fully agree - the main reason I've done this conversion is because I want to show nice graphs in foreman :) and that was not an option to change everyones facter. Ohad On Wed, Mar 10, 2010 at 11:41 PM, Michael DeHaan mich...@reductivelabs.comwrote: On Wed, Mar 10, 2010 at 1:24 AM, Ohad Levy

Re: [Puppet Users] How to efficiently manage multiple packages installing in the same directory

2010-03-10 Thread Michael DeHaan
site.pp    import classes/install_foo.pp    import classes/install_bar.pp    node 'standard.node.local' {       include install_foo       include install_bar    } --- classes/install_foo.pp:    class install_foo {       file { /:          ensure  = directory,          recurse =

Re: [Puppet Users] Re: memorysize returned as string - maybe

2010-03-10 Thread Michael DeHaan
On Wed, Mar 10, 2010 at 10:51 AM, Ohad Levy ohadl...@gmail.com wrote: I fully agree - the main reason I've done this conversion is because I want to show nice graphs in foreman :) and that was not an option to change everyones facter. Ohad I think it is actually an option.In order to

Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Nigel Kersten
I build debs for passenger based upon the brightbox PPA dsc file. I refuse to compile by hand on production. On Mar 10, 2010 7:46 AM, Michael DeHaan mich...@reductivelabs.com wrote: On Wed, Mar 10, 2010 at 4:04 AM, James Turnbull ja...@lovedthanlost.net wrote: -BEGIN PGP SI... Apache

Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Ohad Levy
yeah, I'm ashamed - thats why I started by saying that its NOT a good idea ;) On Thu, Mar 11, 2010 at 12:01 AM, Nigel Kersten nig...@google.com wrote: I build debs for passenger based upon the brightbox PPA dsc file. I refuse to compile by hand on production. On Mar 10, 2010 7:46 AM,

[Puppet Users] Failed to retrieve current state of resource a.o

2010-03-10 Thread skoesters
Hi, i am new to puppet and installed / configured it the first time. I have some trouble with 2 Error Messages where google did not help till now: -- err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: Could not retrieve information from source(s)

[Puppet Users] puppetd hangs, dies

2010-03-10 Thread Gerhard Rieger
Hi, I experienced some problems with puppetd when it cannot reach puppetmasterd. They apply to 0.25.1 on Debian; I could not find these issues in changelog or bugtrack, so here I go: 1) When puppetd starts for the first time and cannot reach puppetmasterd (due to routing or firewall problem), it

Re: [Puppet Users] DNS issues?

2010-03-10 Thread Patrick
On Mar 10, 2010, at 6:54 AM, Brian Keifer wrote: On Mar 9, 2010, at 5:50 PM, Patrick wrote: On Mar 9, 2010, at 1:59 PM, Brian Keifer wrote: On Mar 9, 2010, at 4:57 PM, Patrick wrote: On Mar 9, 2010, at 6:36 AM, Brian Keifer wrote: On Mar 9, 2010, at 12:17 AM, Dan Bode

Re: [Puppet Users] DNS issues?

2010-03-10 Thread Brian Keifer
On Mar 10, 2010, at 11:48 AM, Patrick wrote: On Mar 10, 2010, at 6:54 AM, Brian Keifer wrote: On Mar 9, 2010, at 5:50 PM, Patrick wrote: On Mar 9, 2010, at 1:59 PM, Brian Keifer wrote: On Mar 9, 2010, at 4:57 PM, Patrick wrote: On Mar 9, 2010, at 6:36 AM, Brian Keifer

Re: [Puppet Users] How to efficiently manage multiple packages installing in the same directory

2010-03-10 Thread Mathew Binkley
On Wed, Mar 10, 2010 at 9:59 AM, Michael DeHaan mich...@reductivelabs.com wrote: Yeah, I would recommend not doing this, and would want to know more about the use case around why you wanted to do it that way. Hi Michael (and Patrick and Claus). We are in heavy development of a storage app, as

[Puppet Users] Making Puppet run faster

2010-03-10 Thread Douglas Garstang
We have puppet 0.24.8 running on multiple EIGHT core 3.16Ghz servers with 32Gb of RAM, and in each case puppet is taking longer and longer to run, as we have it control more. Currently it's taking up to 20 minutes to perform a run. What approaches can I take to significantly reduce the time it

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Nigel Kersten
On Wed, Mar 10, 2010 at 9:58 AM, Douglas Garstang doug.garst...@gmail.com wrote: We have puppet 0.24.8 running on multiple EIGHT core 3.16Ghz servers with 32Gb of RAM, and in each case puppet is taking longer and longer to run, as we have it control more. Currently it's taking up to 20 minutes

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Michael DeHaan
On Wed, Mar 10, 2010 at 12:58 PM, Douglas Garstang doug.garst...@gmail.com wrote: We have puppet 0.24.8 running on multiple EIGHT core 3.16Ghz servers with 32Gb of RAM, and in each case puppet is taking longer and longer to run, as we have it control more. Currently it's taking up to 20

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Brice Figureau
On 10/03/10 18:58, Douglas Garstang wrote: We have puppet 0.24.8 running on multiple EIGHT core 3.16Ghz servers with 32Gb of RAM, and in each case puppet is taking longer and longer to run, as we have it control more. Currently it's taking up to 20 minutes to perform a run. What approaches

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Douglas Garstang
On Wed, Mar 10, 2010 at 10:06 AM, Nigel Kersten nig...@google.com wrote: On Wed, Mar 10, 2010 at 9:58 AM, Douglas Garstang doug.garst...@gmail.com wrote: We have puppet 0.24.8 running on multiple EIGHT core 3.16Ghz servers with 32Gb of RAM, and in each case puppet is taking longer and longer

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Douglas Garstang
On Wed, Mar 10, 2010 at 10:18 AM, Brice Figureau brice-pup...@daysofwonder.com wrote: On 10/03/10 18:58, Douglas Garstang wrote: We have puppet 0.24.8 running on multiple EIGHT core 3.16Ghz servers with 32Gb of RAM, and in each case puppet is taking longer and longer to run, as we have it

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Nigel Kersten
On Wed, Mar 10, 2010 at 10:19 AM, Douglas Garstang doug.garst...@gmail.com wrote: On Wed, Mar 10, 2010 at 10:06 AM, Nigel Kersten nig...@google.com wrote: On Wed, Mar 10, 2010 at 9:58 AM, Douglas Garstang doug.garst...@gmail.com wrote: We have puppet 0.24.8 running on multiple EIGHT core

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Nigel Kersten
On Wed, Mar 10, 2010 at 10:24 AM, Douglas Garstang doug.garst...@gmail.com wrote: On Wed, Mar 10, 2010 at 10:18 AM, Brice Figureau brice-pup...@daysofwonder.com wrote: On 10/03/10 18:58, Douglas Garstang wrote: We have puppet 0.24.8 running on multiple EIGHT core 3.16Ghz servers with 32Gb of

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Michael DeHaan
We aren't using storeconfigs... I think the idea of putting puppet config in a db stupid, because you lose your ability to revision control your changes. Just on a technical note, this is not what storeconfigs are about so much. It also gives you information such as the current value of facts

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Douglas Garstang
On Wed, Mar 10, 2010 at 10:25 AM, Nigel Kersten nig...@google.com wrote: On Wed, Mar 10, 2010 at 10:19 AM, Douglas Garstang doug.garst...@gmail.com wrote: On Wed, Mar 10, 2010 at 10:06 AM, Nigel Kersten nig...@google.com wrote: On Wed, Mar 10, 2010 at 9:58 AM, Douglas Garstang

RE: [Puppet Users] Using puppet to automate tasks (ex: mysql slave setup)

2010-03-10 Thread Byron Pezan
In my environment I'd probably do something like this with Func (https://fedorahosted.org/func/). It's primarily used with RedHat based systems. If that's not a problem for you, then you can write scripts on your overlord that run commands on any systems running the func daemon and reporting

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Brice Figureau
On 10/03/10 19:24, Douglas Garstang wrote: On Wed, Mar 10, 2010 at 10:18 AM, Brice Figureau brice-pup...@daysofwonder.com wrote: On 10/03/10 18:58, Douglas Garstang wrote: We have puppet 0.24.8 running on multiple EIGHT core 3.16Ghz servers with 32Gb of RAM, and in each case puppet is taking

[Puppet Users] config settings for environments

2010-03-10 Thread Rob McBroom
Hello. The documentation on using multiple environments says there are only a couple of settings that make sense per-environment (modulepath, templatedir, manifest) but it’s not clear to me whether or not those are the only ones supported. Specifically, I’m trying to set config_version. Each

Re: [Puppet Users] config settings for environments

2010-03-10 Thread Rob McBroom
On Mar 10, 2010, at 3:07 PM, Rob McBroom wrote: Hello. The documentation on using multiple environments says there are only a couple of settings that make sense per-environment (modulepath, templatedir, manifest) but it’s not clear to me whether or not those are the only ones supported.

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Douglas Garstang
On Wed, Mar 10, 2010 at 11:41 AM, Brice Figureau brice-pup...@daysofwonder.com wrote: On 10/03/10 19:24, Douglas Garstang wrote: On Wed, Mar 10, 2010 at 10:18 AM, Brice Figureau brice-pup...@daysofwonder.com wrote: On 10/03/10 18:58, Douglas Garstang wrote: We have puppet 0.24.8 running on

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Douglas Garstang
So, it became apparent to me, after emailing someone off list, that managing a lot of files in deep directory structures might be part of the cause. We are running 10 instances of JBOSS and 10 instances of tomcat on each of these servers. Don't ask me why, it's just the way it was done before I

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Brice Figureau
On 10/03/10 22:06, Douglas Garstang wrote: So, it became apparent to me, after emailing someone off list, that managing a lot of files in deep directory structures might be part of the cause. We are running 10 instances of JBOSS and 10 instances of tomcat on each of these servers. Don't ask

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Douglas Garstang
On Wed, Mar 10, 2010 at 1:17 PM, Brice Figureau brice-pup...@daysofwonder.com wrote: On 10/03/10 22:06, Douglas Garstang wrote: So, it became apparent to me, after emailing someone off list, that managing a lot of files in deep directory structures might be part of the cause. We are running

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Douglas Garstang
On Wed, Mar 10, 2010 at 1:34 PM, Douglas Garstang doug.garst...@gmail.com wrote: On Wed, Mar 10, 2010 at 1:17 PM, Brice Figureau brice-pup...@daysofwonder.com wrote: On 10/03/10 22:06, Douglas Garstang wrote: So, it became apparent to me, after emailing someone off list, that managing a lot

Re: [Puppet Users] How to efficiently manage multiple packages installing in the same directory

2010-03-10 Thread Claus Divossen
On Wed, 2010-03-10 at 12:59 -0500, Michael DeHaan wrote: It could be said that time saved now does not mean time saved later. Especially if you are adding/removing files at a furious rate, this will lead to conflicts sooner or later, and it will be highly appreciated if you can track down

Re: [Puppet Users] Is it possible for puppet to compile packages?

2010-03-10 Thread Claus Divossen
Actualy, this is not much different to what Ruby gems are doing when the have a native part or native bindings. It's a way to create platform independent packages. -- Claus On Wed, 2010-03-10 at 10:45 -0500, Michael DeHaan wrote: On 10/03/10 8:02 PM, Ohad Levy wrote: I'm not saying its a

Re: [Puppet Users] puppetd hangs, dies

2010-03-10 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I experienced some problems with puppetd when it cannot reach puppetmasterd. They apply to 0.25.1 on Debian; I could not find these issues in changelog or bugtrack, so here I go: 1) When puppetd starts for the first time and cannot reach

Re: [Puppet Users] Making Puppet run faster

2010-03-10 Thread Douglas Garstang
On Wed, Mar 10, 2010 at 1:38 PM, Douglas Garstang doug.garst...@gmail.com wrote: On Wed, Mar 10, 2010 at 1:34 PM, Douglas Garstang doug.garst...@gmail.com wrote: On Wed, Mar 10, 2010 at 1:17 PM, Brice Figureau brice-pup...@daysofwonder.com wrote: On 10/03/10 22:06, Douglas Garstang wrote:

Re: [Puppet Users] Failed to retrieve current state of resource a.o

2010-03-10 Thread Ohad Levy
On Wed, Mar 10, 2010 at 11:35 PM, skoesters skoest...@gmx.de wrote: err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet.domain.net/plugins do you have plugins in your fileserv.conf? if you do, try to

Re: [Puppet Users] Is setting a dynamic namevar bad practice?

2010-03-10 Thread Ohad Levy
hmm.. one option would be to use a virtual @exec, and realize it instead. Ohad On Thu, Mar 11, 2010 at 7:45 AM, briwood briw...@berkeley.edu wrote: An array is passed to aegir::platform_directory causing it to invoke the define aegir::platform_directory multiple times. In the define I set

[Puppet Users] London Puppet Training - Early-bird rate expires March 15th

2010-03-10 Thread scramble
Hi All - Early registration is still available for Puppet Training in London: Puppet Master Training: March 29-31st: March 16th = £1,495, March 15th = £1,595. Puppet Developer Training: April 1st 2nd: March 16th = £895, March 15th = £995. Sign up Here to reserve your seat:

[Puppet Users] Re: Failed to retrieve current state of resource a.o

2010-03-10 Thread skoesters
Hi and thanks for your answer, no, i do not have plugins in my fileserver config. my puppet.conf looks like this: --- [main] # Where Puppet stores dynamic and growing data. # The default value is '/var/puppet'. vardir = /var/lib/puppet # The Puppet log directory. # The