Re: [Puppet Users] Re: New user: How to deploy new version of a custom RPM package?

2010-05-03 Thread Patrick
On May 3, 2010, at 11:10 PM, JRendell wrote: > Answering one of my own questions: > >> >> Question: will puppet handle downgrades? ie use 'rpm -f' to force the >> installation? >> Or will it only work for upgrades? >> > > From looking at puppet/provider/package/rpm.rb: > Specifying 'latest'

[Puppet Users] Re: New user: How to deploy new version of a custom RPM package?

2010-05-03 Thread JRendell
Answering one of my own questions: > > Question: will puppet handle downgrades?  ie use 'rpm -f' to force the > installation? > Or will it only work for upgrades? > >From looking at puppet/provider/package/rpm.rb: Specifying 'latest' for the rpm provider will cause the puppet client to do an rpm

[Puppet Users] Re: New user: How to deploy new version of a custom RPM package?

2010-05-03 Thread JRendell
Thanks for the info re the service command- makes life easier ;-) Also http://serverfault.com/questions/40156/puppet-force-service-restart-after-configuration-file-was-modified was useful-- how to use 'subscribe' with 'service' to ensure a service is restarted when a change to a configuration file

Re: [Puppet Users] Class constructors?

2010-05-03 Thread Douglas Garstang
On Mon, May 3, 2010 at 9:31 PM, James Turnbull wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 4/05/10 10:15 AM, Douglas Garstang wrote: >> I find myself using definitions more and more, and classes less even >> when a class will do. >> >> One of the reasons is that you can pass ar

Re: [Puppet Users] Class constructors?

2010-05-03 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/05/10 10:15 AM, Douglas Garstang wrote: > I find myself using definitions more and more, and classes less even > when a class will do. > > One of the reasons is that you can pass arguments to definitions, > whereas with a class you have to set a

Re: [Puppet Users] Re: Puppet training in Australia

2010-05-03 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/05/10 10:11 AM, mattimust...@gmail.com wrote: > Another for sydney here plus I could possibly get a few people > interested from $WORK. What will it cost? > That's a TBC whenw get some idea of numbers. Regards James Turnbull - -- Author of:

Re: [Puppet Users] New user: How to deploy new version of a custom RPM package?

2010-05-03 Thread Daniel Pittman
JRendell writes: > sorry if this is an obvious question, but I'm trying to evaluate > puppet on paper before we commit to an experimental deployment. > Aside: We're using Centos 5.4, so this is RPM/yum specific. > > How are updated RPMs in a manifest detected on the puppetmaster side? They are n

[Puppet Users] New user: How to deploy new version of a custom RPM package?

2010-05-03 Thread JRendell
Hi there- sorry if this is an obvious question, but I'm trying to evaluate puppet on paper before we commit to an experimental deployment. Aside: We're using Centos 5.4, so this is RPM/yum specific. How are updated RPMs in a manifest detected on the puppetmaster side? What we are trying to achiev

Re: [Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet 0.25.5 - Release Candidate 2 available!

2010-05-03 Thread Todd Zullinger
I wrote: > For thoae using Fedora or RHEL/CentOS, I've updated the yum repos at: > > http://tmz.fedorapeople.org/repo/puppet/ > > Packages for EL-4, EL-5 and Fedora 11 - 13 are available for testing. > Add the puppet.repo file from either the epel or fedora directories to > /etc/yum.repos.d to

[Puppet Users] Class constructors?

2010-05-03 Thread Douglas Garstang
I find myself using definitions more and more, and classes less even when a class will do. One of the reasons is that you can pass arguments to definitions, whereas with a class you have to set a global variable. Are there any plans to allow classes in puppet to take a constructor, or something li

[Puppet Users] Re: Puppet training in Australia

2010-05-03 Thread mattimust...@gmail.com
Another for sydney here plus I could possibly get a few people interested from $WORK. What will it cost? Matthew On May 4, 8:18 am, James Turnbull wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I was at DevOps Down Under last weekend and there was some > discussion of a Puppet trai

Re: [Puppet Users] status of cpan provider?

2010-05-03 Thread Daniel Pittman
Alan McKay writes: > On Sat, May 1, 2010 at 10:52 PM, Michael Stahnke wrote: > >> know that I have put over 25 packages into EPEL simply because I >> needed them at my day job, and decided if I had to maintain the >> package once, I may as well do that for everyone else. > > Yes, this is a very g

Re: [Puppet Users] best way to disable a class

2010-05-03 Thread dan trainor
On Mon, May 3, 2010 at 4:05 PM, Christopher Johnston wrote: > > I figured it out I think by inheriting package::stable and then using the > Package resource (note cap P) to override it. > Thx! > > On Mon, May 3, 2010 at 7:04 PM, Russ Allbery wrote: >> >> Christopher Johnston writes: >> >> > Say

Re: [Puppet Users] best way to disable a class

2010-05-03 Thread Christopher Johnston
I figured it out I think by inheriting package::stable and then using the Package resource (note cap P) to override it. Thx! On Mon, May 3, 2010 at 7:04 PM, Russ Allbery wrote: > Christopher Johnston writes: > > > Say I have two classes: > > > package::stable -- installs a specific version of

Re: [Puppet Users] best way to disable a class

2010-05-03 Thread Russ Allbery
Christopher Johnston writes: > Say I have two classes: > package::stable -- installs a specific version of a pkg > package::devel -- installs the latest version in the repo > The class package::stable would be specific for 90% of my machines in my > environment, but on occasion we have to ov

[Puppet Users] Re: Puppet training in Australia

2010-05-03 Thread Nat
On May 4, 8:18 am, James Turnbull wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I was at DevOps Down Under last weekend and there was some > discussion of a Puppet training in Australia.  I am trying to gauge > further interest and see what the numbers are like. > > A show of hand

[Puppet Users] Puppet training in Australia

2010-05-03 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was at DevOps Down Under last weekend and there was some discussion of a Puppet training in Australia. I am trying to gauge further interest and see what the numbers are like. A show of hands? Sydney/Melbourne? Thanks James Turnbull - -- Author

Re: [Puppet Users] Puppet 2.5.4 and Ruby 1.9.1

2010-05-03 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/05/10 1:32 AM, velvetpixel wrote: > First time Puppet user so please bear with me :) > > Is Puppet 2.5.4 compatible with Ruby 1.9.1 and RubyGems 1.3.6? > > I did a test install on CentOS 5.4 and got some errors when trying to > run puppetmasterd

[Puppet Users] best way to disable a class

2010-05-03 Thread Christopher Johnston
Say I have two classes: package::stable -- installs a specific version of a pkg package::devel -- installs the latest version in the repo The class package::stable would be specific for 90% of my machines in my environment, but on occasion we have to override the package version we want to ins

[Puppet Users] Re: clients stopped retrieving catalog - error 403 forbidden request - possible corruption?

2010-05-03 Thread Jason Amato
...and the answer is... http://groups.google.com/group/puppet-dev/msg/b15e1c93bbc70fdb This reverts commit c702f76b271515e9c42dcb923d379fbfac4c83cd and turns it into a documentation only fix. As it turns out, ENV should have never been used at all, as the Rack docs say nothing about it *and* Pa

RE: [Puppet Users] Re: SSL issues when testing - This is how to fix

2010-05-03 Thread Gabriel - IP Guys
-Original Message- From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Brian Granger Sent: Monday, May 03, 2010 6:38 PM To: Trevor Vaughan Cc: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Re: SSL issues when testing - This is how to fix J

[Puppet Users] custom facts run three times?

2010-05-03 Thread Marcus, Allan B
I put a puts "running my fact" into a custom fact. Then I run puppetd from a client in debug mode. I see the "running my fact" three times. Does this mean that the custome fact code is executing three times on the client every time? --- Thanks, Allan Marcus 505-667-5666 smime.p7s Descr

Re: [Puppet Users] Managing producton & backup datacenter

2010-05-03 Thread Eric Heydrick
On Sun, 2 May 2010, linuxdatacenter wrote: > Hi, > > Just want to know how you use puppet to cover a scenario where you > have a production and backup datacenter. Both environments should be > similar but not identical (just a dumb example - your ntp setup is > probably different in each). I thin

[Puppet Users] Issue with naginator and elusive nagios cfg file corruption (#3712)

2010-05-03 Thread Joe McDonagh
Hello, I have run into a data corruption problem with naginator that is fairly difficult for me to track down. Hand-written configurations do not suffer from this fate. This was present in .24.8, and still present in .25.4. I'd love to complete this automatic nagios project, if anyone has some

[Puppet Users] Re: Demand for Puppet Class in Ottawa, Canada?

2010-05-03 Thread scramble
Hi Alan - We haven't seen a ton of demand for a class in Ottawa, but we'll track it closely and if we get more interest we can certainly schedule one there. In these cases (outside of the Bay Area, NY, London and a few others such as DC) it is ideal for us to have one larger group commit to a clas

Re: [Puppet Users] Puppet URI

2010-05-03 Thread Patrick
I'm using Passenger, but I've heard that Mongrel works well too. I don't know anything about it though. On May 3, 2010, at 11:33 AM, Roshan Punnoose wrote: > Oh ok, is there a doc on how to run on another webserver? (Is this the > Mongrel doc?) > > Roshan > > On Mon, May 3, 2010 at 2:28 PM,

Re: [Puppet Users] Puppet URI

2010-05-03 Thread Nigel Kersten
On Mon, May 3, 2010 at 11:33 AM, Roshan Punnoose wrote: > Oh ok, is there a doc on how to run on another webserver? (Is this the > Mongrel doc?) I simply set up ssldump to log all this. Then it doesn't matter how you're running the server, and you see all the extra header stuff puppet clients d

Re: [Puppet Users] Puppet URI

2010-05-03 Thread Roshan Punnoose
Oh ok, is there a doc on how to run on another webserver? (Is this the Mongrel doc?) Roshan On Mon, May 3, 2010 at 2:28 PM, Patrick wrote: > > On May 3, 2010, at 11:22 AM, Roshan Punnoose wrote: > > After doing some Google digging, I saw that there were a couple urls like > this: > > http://pup

Re: [Puppet Users] Puppet URI

2010-05-03 Thread Patrick
On May 3, 2010, at 11:22 AM, Roshan Punnoose wrote: > After doing some Google digging, I saw that there were a couple urls like > this: > > http://puppet:8140/production/status/default > > Now this doesn't work on mine, but I think it is because the url format is > not correct. If I wanted to

Re: [Puppet Users] Puppet URI

2010-05-03 Thread Roshan Punnoose
After doing some Google digging, I saw that there were a couple urls like this: http://puppet:8140/production/status/default Now this doesn't work on mine, but I think it is because the url format is not correct. If I wanted to get a file from puppet:file, what would I have to do? Roshan On

Re: [Puppet Users] Re: SSL issues when testing - This is how to fix

2010-05-03 Thread Brian Granger
Just in case others run into this problem... The issue in my case was that I ran puppet and *then* changed somethings in /etc/hosts. But, the first time I ran puppetd on the client, it created a $HOME/.puppet/ssl directory that had the old host/domain info. Simply deleting it solved the issue.

[Puppet Users] adding users help.

2010-05-03 Thread merritt
I want to be able to add additional resources to my virtual users, such as force a file or directory to exist if I realize that user, if someone could point me in the right direction, I’m guessing i need to use a definition I’m just not sure on the best way to do it. This is what I have currently:

Re: [Puppet Users] Checking for files on the client?

2010-05-03 Thread Matthew Macdonald-Wallace
On Mon, 2010-05-03 at 07:23 +0100, Matthew Macdonald-Wallace wrote: > Hi all, > > I'm looking for a way to run an exec statement if a file does not exist > on the server is this possible? I've been thinking about this some more as I've been developing this module for easy install of RPM repos. W

Re: [Puppet Users] Simple issue with templates.

2010-05-03 Thread Nigel Kersten
On Mon, May 3, 2010 at 9:14 AM, Matthew Macdonald-Wallace < li...@truthisfreedom.org.uk> wrote: > Hi all, > > My brain is now officially dead! > > I have a series of modules that have a tree layout as documented in the > "best practice" guide. > > One of the directories I have is "templates" and i

Re: [Puppet Users] Easy display of catalog content?

2010-05-03 Thread Aurelien Degremont
Hello Nice script, very near what we need. We will see how we can adapt this to our needs. In the comments, people spoke about putting this upstream, I think it could be very interesting to integrate such feature in standard puppet (by example to manage all types of catalogs). Are there any ne

[Puppet Users] Simple issue with templates.

2010-05-03 Thread Matthew Macdonald-Wallace
Hi all, My brain is now officially dead! I have a series of modules that have a tree layout as documented in the "best practice" guide. One of the directories I have is "templates" and in this directory I have placed a template.erb file, however no matter how I refer to the path in my init.pp, I

Re: [Puppet Users] Easy display of catalog content?

2010-05-03 Thread R.I.Pienaar
hey, - "Aurelien Degremont" wrote: > Hello > > I'm looking for a way to display in a simple and clear manner the > content of a catalog, on a node. > By that, I mean, how to know, simply what is the full configuration > that is applied by puppet on this node (if I can > pass optionally ano

[Puppet Users] Easy display of catalog content?

2010-05-03 Thread Aurelien Degremont
Hello I'm looking for a way to display in a simple and clear manner the content of a catalog, on a node. By that, I mean, how to know, simply what is the full configuration that is applied by puppet on this node (if I can pass optionally another catalog file path, it is even better :p)? Is th

Re: [Puppet Users] Re: Puppetmaster filing up /var/log/messages

2010-05-03 Thread Peter Meier
However, if I open it in debug mode, it says: [r...@server /usr/local/etc/rc.d]# puppetmasterd --no-daemonize -- debug --verbose /usr/local/etc/puppet/puppet.conf shouldn't you use: # puppetmasterd --no-daemonize --debug --verbose --config /usr/local/etc/puppet/puppet.conf ? cheers pete

Re: [Puppet Users] SSL issues when testing - This is how to fix

2010-05-03 Thread Mr Gabriel
mount the same config files? That's a great idea, a readonly mount would aid speeding testing across a cluster On 03/05/2010, Charles Johnson wrote: > Gabriel, I use puppet to maintain files and services across a linux cluster > with some 850 boxes. From time to time a box goes down and has to be

[Puppet Users] Puppet 2.5.4 and Ruby 1.9.1

2010-05-03 Thread velvetpixel
First time Puppet user so please bear with me :) Is Puppet 2.5.4 compatible with Ruby 1.9.1 and RubyGems 1.3.6? I did a test install on CentOS 5.4 and got some errors when trying to run puppetmasterd. # puppetmasterd Could not autoload file: constant Puppet::Type::File not defined Could not auto

Re: [Puppet Users] Puppet URI

2010-05-03 Thread Roshan Punnoose
Is there a quick doc on the package providers I can start at? Also, I'm willing to read ruby code if need be, and I like the REST API. Where in the code is this implemented? (At least where the REST urls are exposed) I'll look through the code. Roshan On Mon, May 3, 2010 at 11:19 AM, Luke Kanies

Re: [Puppet Users] puppet arrays, and selectors...

2010-05-03 Thread Luke Kanies
On May 3, 2010, at 7:22 AM, Daniel Pittman wrote: G'day. I have a problem. Mostly a theoretical problem, granted, but a problem: We have machines with a variety of hardware RAID controllers, and some that don't have one at all. We want these monitored, which usually involves some ven

Re: [Puppet Users] Puppet URI

2010-05-03 Thread Luke Kanies
On May 3, 2010, at 7:47 AM, Roshan wrote: Hi, I would like to write a Java module to interact with the Puppet URI. Is this possible? My goal is to be able to install Java modules in OSGi through puppet. I'm not sure that Puppet's URI is necessary for this - you should just be able to create

[Puppet Users] Puppet URI

2010-05-03 Thread Roshan
Hi, I would like to write a Java module to interact with the Puppet URI. Is this possible? My goal is to be able to install Java modules in OSGi through puppet. Thanks Roshan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this grou

Re: [Puppet Users] Puppetmaster filing up /var/log/messages

2010-05-03 Thread Nigel Kersten
On Fri, Apr 30, 2010 at 9:47 AM, JoE wrote: > Puppetmaster is filling up /var/log/messages even though logdir is set > to /var/puppet/log/ and masterlog = /var/puppet/log/puppetmaster.log. > There is however no file /var/puppet/log/puppetmaster.log > What is logdest set to? It sounds like logdes

[Puppet Users] Re: Puppetmaster filing up /var/log/messages

2010-05-03 Thread JoE
I can't find anywhere where the configs are overridden. I was able to fix the issue by starting puppetmaster with the command: puppetmasterd -l /var/puppet/log/puppetmaster.log but it still concerns me that the config file is not read, even if I point to it directly, by starting it with: puppetmas

[Puppet Users] puppet arrays, and selectors...

2010-05-03 Thread Daniel Pittman
G'day. I have a problem. Mostly a theoretical problem, granted, but a problem: We have machines with a variety of hardware RAID controllers, and some that don't have one at all. We want these monitored, which usually involves some vendor-specific binary blob, plus support code, installed and ru

Re: [Puppet Users] Re: Managing producton & backup datacenter

2010-05-03 Thread Daniel Pittman
linuxdatacenter writes: > Yeah - ntpd was just a dumb example - of course you can do it this way ;-). > > But for more sophisticated puppet setups - what are your ways to determine > which environment you are in. I wrote a custom fact, location, that embeds all the logic in a tiny bit of custom

Re: [Puppet Users] status of cpan provider?

2010-05-03 Thread Alan McKay
On Sat, May 1, 2010 at 10:52 PM, Michael Stahnke wrote: > know that I have put over 25 packages into EPEL simply because I > needed them at my day job, and decided if I had to maintain the > package once, I may as well do that for everyone else. Yes, this is a very good point Michael and I'd be u

[Puppet Users] RE: Using classes from extnode to define config files?

2010-05-03 Thread Bollinger, John C
Hi All, I hope this ends up in the right place, as I haven’t tried posting to the list in this way before. In any case, Michael DeHaan recently proffered this advice: > > Does anyone know how to achieve the above in a "prettier" fashion? > > Thinking about it some more... > > Create a baseclass

Re: [Puppet Users] Re: Managing producton & backup datacenter

2010-05-03 Thread R.I.Pienaar
hello, - "linuxdatacenter" wrote: > Yeah - ntpd was just a dumb example - of course you can do it this > way ;-). > > But for more sophisticated puppet setups - what are your ways to > determine which environment you are in. I know puppet can manage > different environments at one time (eac

AW: [Puppet Users] Some advice on using hashes in ERB templates needed

2010-05-03 Thread Bernd Adamowicz
Following your advice, the server reports this error: err: Failed to parse template templates_eval/worker.properties.erb: (eval):17:in `[]'cannot convert String into Integer at /etc/puppet/modules/templates_eval/manifests/init.pp:68 on node mynode.net This is the code I've used: 16 <% wor

Re: [Puppet Users] Puppet Dashboard packages updated for V1.0 release

2010-05-03 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/05/10 8:19 PM, Kenneth Holter wrote: > Hi. > > > I downloaded the "puppet-dashboard-1.0.0-2.noarch.rpm" and installed > it, and found that the init script got placed in the wrong directory > ("/etc/rc.d/init.d}"). I believe this might be the cau

Re: [Puppet Users] Puppet Dashboard packages updated for V1.0 release

2010-05-03 Thread Kenneth Holter
Hi. I downloaded the "puppet-dashboard-1.0.0-2.noarch.rpm" and installed it, and found that the init script got placed in the wrong directory ("/etc/rc.d/init.d}"). I believe this might be the cause for it: -- [r...@puppetmaster ~]# rpm -qpl puppet-dashboard-1.0.0-2.noarch.rpm|grep init.d /etc/r

[Puppet Users] Re: Managing producton & backup datacenter

2010-05-03 Thread linuxdatacenter
Yeah - ntpd was just a dumb example - of course you can do it this way ;-). But for more sophisticated puppet setups - what are your ways to determine which environment you are in. I know puppet can manage different environments at one time (each with its own set of modules and files - you configu

[Puppet Users] Puppet Dashboard packages updated for V1.0 release

2010-05-03 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I've updated the RPM and DEB packages for the Puppet Dashboard 1.0 release. These aren't perfect yet and we're working on building a full build environment. These are available via APT and Yum repositories hosted by Puppet Labs. Overall inst

Re: [Puppet Users] Managing producton & backup datacenter

2010-05-03 Thread Patrick
On May 2, 2010, at 9:38 PM, linuxdatacenter wrote: > Hi, > > Just want to know how you use puppet to cover a scenario where you > have a production and backup datacenter. Both environments should be > similar but not identical (just a dumb example - your ntp setup is > probably different in eac