Re: [Puppet Users] How do I quote a percent sign in the text of a template?

2012-03-08 Thread John Warburton
On 9 March 2012 09:58, Garrett Honeycutt wrote: > On 3/8/12 4:28 PM, John Warburton wrote: > > I am turning my kickstart files into templates, but am having issues > > with percent signs in free form text. This returns a syntax error: > > %post > ERB should not have any problems with percent si

Re: [Puppet Users] Re: Need modules for cron

2012-03-08 Thread Dominik Zyla
On Thursday, 8 March 2012 at 18:19, Dan White wrote: > Would it be overkill to be worried about launching the puppet agent before > the last run has finished ? > > If so, I would use a bash script that generates a pid-file like this: > http://www.xarg.org/2009/10/write-a-pid-file-in-bash/ > >

Re: [Puppet Users] Puppet returns an error if a package is already installed

2012-03-08 Thread Nan Liu
On Thu, Mar 8, 2012 at 2:05 PM, Mike wrote: > I'm very new to Puppet, and new to this group, so I apologize if this has > already been covered. I did a quick search but didn't quickly find an > answer. > > I have a manifest that among other things installs a couple of packages. > These are not par

Re: [Puppet Users] How do I quote a percent sign in the text of a template?

2012-03-08 Thread Garrett Honeycutt
On 3/8/12 4:28 PM, John Warburton wrote: > Hi > > I am scratching my head on this not being a ruby person... > > I am turning my kickstart files into templates, but am having issues > with percent signs in free form text. This returns a syntax error: > %post > > OK, fine , let me escape it: > >

[Puppet Users] How do I quote a percent sign in the text of a template?

2012-03-08 Thread John Warburton
Hi I am scratching my head on this not being a ruby person... I am turning my kickstart files into templates, but am having issues with percent signs in free form text. This returns a syntax error: %post OK, fine , let me escape it: %%post No error, but the end result is %%post Not quite what

Re: [Puppet Users] Re: Puppet and the security on nodes, configurations, etc.

2012-03-08 Thread Dan White
I believe this can work with a team. The team should construct the master manifest/catalog to fit their requirements. Use techniques that separate the node-specifics from the general catalog -- like parameterized classes and such. This master catalog is then locked down and jealously guarded and

[Puppet Users] Re: Error at the end of a puppet agent run...

2012-03-08 Thread Raul Dusa
After experiencing the same problem I came to the conclusion that was all firewall related. Things to look at: 1. On puppetmaster server look at your puppet.conf option for reporturl; reporturl = http://puppetmaster.mydomain.com:80/reports/upload 2. Web service is running on your puppemaster

[Puppet Users] Puppet returns an error if a package is already installed

2012-03-08 Thread Mike
I'm very new to Puppet, and new to this group, so I apologize if this has already been covered. I did a quick search but didn't quickly find an answer. I have a manifest that among other things installs a couple of packages. These are not part of a repository, so I use puppet to send the rpm fi

[Puppet Users] Re: Check package version in order to proceed with installation (err: Could not update: is already installed)

2012-03-08 Thread Mike
Why does puppet return an error when a package is already installed? I use ensure => installed to make sure that a package is installed, and then have a file that is dependent on that package. When the manifest is applied and the package is already installed, it reports an error and then doesn'

[Puppet Users] Mind boggling yum provider issue...

2012-03-08 Thread Peter Berghold
Check this out: ]# yum -y list available | grep nrpe nagios-plugins-nrpe.x86_642.12-16.el6 epel nrpe.x86_64 2.12-16.el6 epel so there's a package named nrpe there.. right? so why do I see this when I run the puppet agent? err: /Stage[main]/Nagios::

Re: [Puppet Users] Re: Puppet and the security on nodes, configurations, etc.

2012-03-08 Thread Richard Clark
On 8 Mar 2012, at 19:13, Christophe L wrote: > Hello, > > Thank you very much for your answer ! > > We will look into your approach. > > I understand what you explained but I'm a bit surprised by this > approach. > Let's say you have a small team for managing the whole infrastructure, > the appro

Re: [Puppet Users] Puppet Agent on Windows - High CPU Usage

2012-03-08 Thread Matt Mencel
OK... apparently the first time I ran "ruby install.rb" for puppet I did not do it in "Run As Administrator" mode. Even though the account I'm logging in as is a local adminit seems to work only if I open the command prompt with "Run As Administrator" privileges. Deleting the folder structure

Re: [Puppet Users] Puppet Agent on Windows - High CPU Usage

2012-03-08 Thread Josh Cooper
On Thu, Mar 8, 2012 at 8:47 AM, Josh Cooper wrote: > HI Matt, > > On Thu, Mar 8, 2012 at 6:45 AM, Matt Mencel wrote: > >> Hi Josh, >> >> On Wed, Mar 7, 2012 at 6:12 PM, Josh Cooper wrote: >> >>> Hi Matt, >>> >>> On Wed, Mar 7, 2012 at 2:58 PM, Matt Mencel wrote: >>> I recently noticed tha

[Puppet Users] Re: Puppet and the security on nodes, configurations, etc.

2012-03-08 Thread Christophe L
Hello, Thank you very much for your answer ! We will look into your approach. I understand what you explained but I'm a bit surprised by this approach. Let's say you have a small team for managing the whole infrastructure, the approach you described seems to be quite relevant. In our scenario, w

Re: [Puppet Users] Puppet / Facter plugin issue

2012-03-08 Thread kish
On Thu, Mar 8, 2012 at 11:12 PM, Drew wrote: > If I externalise my Puppet module config to a directory outside of > Puppet using the modulepath / manifestdir settings: > > [main] >    pluginsync=true >    modulepath=/home/ec2-user/projects/qmg-puppet/etc/puppet/modules >    manifestdir=/home/ec2-u

[Puppet Users] Puppet / Facter plugin issue

2012-03-08 Thread Drew
If I externalise my Puppet module config to a directory outside of Puppet using the modulepath / manifestdir settings: [main] pluginsync=true modulepath=/home/ec2-user/projects/qmg-puppet/etc/puppet/modules manifestdir=/home/ec2-user/projects/qmg-puppet/etc/puppet/ manifests the agent

Re: [Puppet Users] Re: Need modules for cron

2012-03-08 Thread Dan White
Would it be overkill to be worried about launching the puppet agent before the last run has finished ? If so, I would use a bash script that generates a pid-file like this: http://www.xarg.org/2009/10/write-a-pid-file-in-bash/ That way, if the previous run is still running, you can skip doing it

Re: [Puppet Users] Re: Need modules for cron

2012-03-08 Thread Krzysztof Wilczynski
Hi, On Thursday, 8 March 2012 17:05:47 UTC, Jeeva wrote: > > Hi Peter, > > with the help of Jerrery, i got the below module and i modified it as per > our requirement. So the below module will create a crontab on root user > right ? > > # Generate the times when the cronjob will run > class

[Puppet Users] Re: Questions about virtual resources and resource chaining

2012-03-08 Thread Ramin K
On Thursday, March 8, 2012 7:48:52 AM UTC-8, jcbollinger wrote: > > > > On Mar 7, 8:02 pm, Ramin K wrote: > > I managed to trigger this behavior when I realized the readline package > in > > the ruby_devel class instead of specifying it. It appears that the > resource > > chain in the rvm cla

Re: [Puppet Users] Re: Need modules for cron

2012-03-08 Thread Peter Berghold
Munna, Here is a typical module tree: xinetd/ |-- manifests | `-- init.pp `-- templates I chose this module as my "pattern" for you to look at because it is a very simple module. In your case I'd be creating puppetcron/ `-- manifests with a single file "init.pp" with a single class: class p

Re: [Puppet Users] Re: Need modules for cron

2012-03-08 Thread Munna S
Hi Peter, with the help of Jerrery, i got the below module and i modified it as per our requirement. So the below module will create a crontab on root user right ? # Generate the times when the cronjob will run class cron_puppet { $cron_time1= generate('/usr/bin/env', 'sh', '-c', "printf $(($(e

Re: [Puppet Users] Puppet Agent on Windows - High CPU Usage

2012-03-08 Thread Josh Cooper
HI Matt, On Thu, Mar 8, 2012 at 6:45 AM, Matt Mencel wrote: > Hi Josh, > > On Wed, Mar 7, 2012 at 6:12 PM, Josh Cooper wrote: > >> Hi Matt, >> >> On Wed, Mar 7, 2012 at 2:58 PM, Matt Mencel wrote: >> >>> I recently noticed that the Windows host where I installed the Puppet >>> agent for testin

[Puppet Users] Re: Need modules for cron

2012-03-08 Thread Munna S
Hi Jeffrey, Thanks for the quick response. I need to copy the below content into init.pp file which is under my module right ? Also i created the module like this. /etc/puppet/modules/cron_puppet also should i define my class in the init.pp file. could you please help me on this. i am getting e

Re: [Puppet Users] Need modules for cron

2012-03-08 Thread Jeffrey Watts
Here's what I do. I use generate() to calculate the run times for our jobs so that each server runs twice per hour at a pseudo-random but consistent time. I use the IP address of the server, modulo 30. # Generate the times when the cronjob will run $cron_time1= generate('/usr/bin/env', 'sh',

[Puppet Users] Need modules for cron

2012-03-08 Thread Jeeva
We are planning to run the puppet client as a cron rather than running as a daemon. Could you please help me in creating a module for running the puppet client as a cron -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send

[Puppet Users] Re: Questions about virtual resources and resource chaining

2012-03-08 Thread jcbollinger
On Mar 7, 8:02 pm, Ramin K wrote: > I managed to trigger this behavior when I realized the readline package in > the ruby_devel class instead of specifying it. It appears that the resource > chain in the rvm class does not include the realized resource. Is this the > current expected behavior?

[Puppet Users] Re: Puppet and the security on nodes, configurations, etc.

2012-03-08 Thread jcbollinger
On Mar 8, 5:43 am, Christophe L wrote: > Hello, > > We are actually evaluating "Puppet Open Source Project" as the tool > for managing our hosting processes and we have a question about the > security in Puppet. > > As far as we have read, there are only two places where the security > is taken

[Puppet Users] apt-get update running before installing packages - dependency not working

2012-03-08 Thread Mr Pink
Hi, I'm having some issues with it doing an apt-get update before installing packages. In my Apt modules I have Exec["apt-update"] -> Package <| |> and in the run itself I see debug: /Stage[main]/Apt/Exec[apt-update]/before: requires Package[libmysqlclient-dev] debug: /Stage[main]/Apt/Exec[apt

Re: [Puppet Users] Re: Google Groups the best place?

2012-03-08 Thread Pablo Fernandez
It is not... You just need to register your normal email address as google account, with a password (for the google acount, not the real one). No more info is required. BR/Pablo On Thursday 08 March 2012 06:20:43 jcbollinger wrote: > On Mar 7, 10:22 am, jimbob palmer wrote: > > A colleague of

[Puppet Users] Re: Do I need a fact for this?

2012-03-08 Thread jcbollinger
On Mar 7, 10:24 am, Bob Rontomskin wrote: > Hello group, > > I have a Tomcat class which takes a java package name as a parameter. > The parameter looks like openjdk-1.2.3 or sunjava-2.3.4. The purpose of the > parameter is that it sets a configuration option in the Tomcat > configuration to tel

[Puppet Users] Re: Google Groups the best place?

2012-03-08 Thread jcbollinger
On Mar 7, 10:22 am, jimbob palmer wrote: > A colleague of mine has pointed out that to post to Google Groups, he > must give his mobile phone number to Google to send an SMS or to call > him so that he can create a Google account. > > Are there any alternatives? Thanks. I thought providing a p

Re: [Puppet Users] Mocking resources/classes in rspec-puppet

2012-03-08 Thread Tim Sharpe
As Jeff said, ideally you wouldn't have any cross-module dependencies, but everyone still does it. There's a couple of ways you can solve this issue at the moment. The first (and my preferred way) is to setup a fixtures directory as described in http://bombasticmonkey.com/2012/03/02/automati

[Puppet Users] Re: Long config retrieval on nodes

2012-03-08 Thread Andrew Stangl
We ended up upgrading the EC2 instance from a m1.small to a c1.medium .. it was bottoming out on cpu load, and increasing this to a dual core instance resolved the issue :) No more timeouts!! and a happy customer too On Tuesday, March 6, 2012 11:46:14 AM UTC, Andrew Stangl wrote: > > Hi all, h

[Puppet Users] Re: Long config retrieval on nodes

2012-03-08 Thread Andrew Stangl
We ended upgrading the EC2 instance from a m1.small to a c1.medium .. it was bottoming out on cpu load, and increasing this to a dual core instance resolved the issue :) No more timeouts!! and a happy customer too On Tuesday, March 6, 2012 11:46:14 AM UTC, Andrew Stangl wrote: > > Hi all, hopi

[Puppet Users] Different behavior for pluginsync between "puppet agent --test" and "service puppet start"

2012-03-08 Thread Jeremy Rosengren
I've got 3 custom facts configured within a couple of modules and am using pluginsync to sync them to the clients. My clients are CentOS 5.7. If I run "puppet agent --test -v", I get the following output and the custom facts get loaded and I can use those facts in my module classes: info: Loadin

[Puppet Users] Puppet and the security on nodes, configurations, etc.

2012-03-08 Thread Christophe L
Hello, We are actually evaluating "Puppet Open Source Project" as the tool for managing our hosting processes and we have a question about the security in Puppet. As far as we have read, there are only two places where the security is taken into account: - the connection between the server and th

RE: [Puppet Users] Puppet staging server

2012-03-08 Thread Steve Shipway
We do this via multiple Environments. We have a Dev, Test and Production environment, and migrate between them using subversion scripts. The only thing to be aware of, is that you need to set up the file server so that all puppet: resources include the environment; thus: puppet:///files-$environ