Re: [Puppet Users] conditional execution of package

2010-07-09 Thread Patrick Mohr
It's probably better to make a package instead. On Jul 8, 2010, at 11:49 PM, prudhvi wrote: > Hi, > > I have been installing couchdb from source thorough " make/make > install " using puppet's exec. > The problem I am facing is when ever i run the configuration for the > second time its not reco

Re: [Puppet Users] inventory of managed resources

2010-07-09 Thread David Schmitt
On 7/7/2010 4:33 PM, Adam Winberg wrote: Hi, are there any good ways of scripting an inventory of managed resources on all nodes? I've found the inventory script by R.I.Pienaar (http://www.devco.net/archives/2010/02/26/what_does_puppet_manage_on_a_node-2.php) which does what I want but only loca

Re: [Puppet Users] [puppet-users] apt and gem package with the same name

2010-07-09 Thread David Schmitt
On 7/8/2010 4:09 AM, Peter Meier wrote: On 07/07/2010 07:10 PM, hernan wrote: I have tried this solution as well and it did not work. I may resort to an exec as Patrick suggested. it will work when we have composite primary keys for resources, I'm not sure we will get that in 2.6, but there a

Re: [Puppet Users] Variable Scoping: What do you want?

2010-07-09 Thread David Schmitt
On 7/8/2010 10:33 PM, Joe McDonagh wrote: On 07/02/2010 04:45 AM, David Schmitt wrote: On 6/30/2010 1:47 AM, Joe McDonagh wrote: Also, it would be *huge* to be able to append to vars. Right now I open fw ports via a variable in the node def like: $open_tcp_ports = "22,443" If I could always o

[Puppet Users] puppetmaster REST interface

2010-07-09 Thread Cedric Jeanneret
Hello, I'm wondering if there's some way to ask informations to the puppetmaster via the REST interface. My aim is to ask, for example "what are all the values for ". If so, is there any page about syntaxe ? Thank you! C. -- Cédric Jeanneret | System Administrator 021 619 1

Re: [Puppet Users] Recipes release management : separate test and prod

2010-07-09 Thread Dan Carley
On 6 July 2010 21:21, James Turnbull wrote: > Just so people know this is fixed in 2.6 and when we're finished > hammering the alpha into a beta - we'd love you guys to test this. > Sure, I'll try and put some time aside for testing. It sounds like 2.6 should resolve a few of the bugbears I've

[Puppet Users] Re: conditional execution of package

2010-07-09 Thread prudhvi
Hi Patrick, You're right. Actually I have a custom source which i have to install it through source is there any conditional execution like if-case to check whether the source files are already in place? On Jul 9, 12:18 pm, Patrick Mohr wrote: > It's probably better to make a package instead. >

Re: [Puppet Users] Re: conditional execution of package

2010-07-09 Thread Matthew Hyclak
Look at the onlyif parameter to exec. Matt -- Sent from my Palm Pre On Jul 9, 2010 5:33, prudhvi wrote: Hi Patrick, You're right. Actually I have a custom source which i have to install it through source is there any conditional execution like if-case to check whether

[Puppet Users] Problems with require inside a definition

2010-07-09 Thread Tim
I have a 'config-file' definition which handles config files for various modules that I've written. I'm trying to enhance it so that I can pass in a package to require because at the moment puppet is erroring trying to create config files before the relevant package has created certain directories:

Re: [Puppet Users] conditional execution of package

2010-07-09 Thread Dan Carley
On 9 July 2010 08:18, Patrick Mohr wrote: > It's probably better to make a package instead. +1, roll a package. Your life will be easier. The sun will shine. Birds will serenade you. Beer will flow from fountains. -- You received this message because you are subscribed to the Google Groups "

Re: [Puppet Users] Problems with require inside a definition

2010-07-09 Thread Alan Barrett
On Fri, 09 Jul 2010, Tim wrote: > # Generic config file > define config-file ($fullpath, $source) { > if $require { > require $require > } > file { $fullpath: > source => "puppet://puppet.hq.eso.org/modules/${source}", > backup => mainbackup,

Re: [Puppet Users] [puppet-users] apt and gem package with the same name

2010-07-09 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >>> I have tried this solution as well and it did not work. I may resort >>> to an exec as Patrick suggested. >> >> it will work when we have composite primary keys for resources, I'm not >> sure we will get that in 2.6, but there are definately plans

[Puppet Users] Fedora resource -

2010-07-09 Thread TonyR
What is the resource for example42's yum module on a Fedora release 8 (Werewolf) machine? example42 came with a CentOS5 directory under modules/yum/files; what is that? Do I need to build that for the other OS platforms I will be supporting? Can I download a prebuilt that? What is that called s

Re: [Puppet Users] puppetmaster REST interface

2010-07-09 Thread Patrick Mohr
Right now puppet mostly IS the documentation. You could watch the traffic between the puppetmaster and the client, or look at the source code, but I don't recommend it. Also, it would probably be MUCH easier to enable storeconfigs and ask the MySQL server directly. That's very easy to figure

Re: [Puppet Users] Re: conditional execution of package

2010-07-09 Thread Patrick Mohr
On Jul 9, 2010, at 2:33 AM, prudhvi wrote: > Hi Patrick, > > You're right. > Actually I have a custom source which i have to install it through > source > is there any conditional execution like if-case to check whether the > source files are already in place? Not creating a package is probably

Re: [Puppet Users] puppetmaster REST interface

2010-07-09 Thread Ohad Levy
another alternative, is to use Foreman, and then you could view (via web interface) or query (through an API) for host informations. cheers, Ohad On Fri, Jul 9, 2010 at 9:03 PM, Patrick Mohr wrote: > Right now puppet mostly IS the documentation. You could watch the traffic > between the puppet

[Puppet Users] Re: File-based Distribution, Module Function Logic and Per Setting (Augeas); Which method do you think is best for the env i help to support and why?

2010-07-09 Thread TonyR
access files in modules when using puppet instead of puppetd leave off the server name... got it. thank you. On Jul 6, 3:40 pm, Jeff McCune wrote: > On Tue, Jul 6, 2010 at 12:25 PM,TonyR wrote: > > Jeff, > > > Thanks for the response. > > My pleasure. > > > puppet:///modules/modulename/path/

[Puppet Users] LaunchDaemon Service change in OS X

2010-07-09 Thread Gary Larizza
Hey All, I have a puppetd.rb script that ultimately triggers a puppetd call back to my server. I have a LaunchDaemon that triggers this script every hour. Here's what the call looks like in my manifest: file { "/Library/LaunchDaemons/com.huronhs.puppetconfig.plist":

[Puppet Users] puppet and augeas to keep ntp.conf

2010-07-09 Thread altimon
Hi, Please help me in following: I'm trying to check ntp.conf files some of which have and some have not lines like these server ntp1.example.com server ntp2.example.com server ntp3.example.com How I should form onlyif condition with match to make it working: now I have either it is not working

[Puppet Users] Proposed changes to Puppet's IP management

2010-07-09 Thread Luke Kanies
Hi all, As discussed multiple times earlier, but most recently at [1], we're going to take the next step on managing the IP of Puppet and related projects. This is currently a proposal, so please speak up if you have any concerns about this. Basically, our plan is to stick to either GPL

[Puppet Users] ANNOUNCE: Puppet 2.6.0 - Release Candidate 1 available!

2010-07-09 Thread James Turnbull
Welcome back again to the Puppet release cycle with the long-awaited eleventy times better 2.6.0rc1 release! The 2.6.0 release is a major feature release and includes a huge variety of new features, fixes, updates and enhancements. These include the complete cut-over from XMLRPC to the REST API,