[Puppet Users] Re: ensure version ?

2010-06-30 Thread CraftyTech
Gotcha.. Thanks On Jun 30, 7:21 pm, "R.I.Pienaar" wrote: > - "CraftyTech" wrote: > > Hello, > > >      This was supposed to be an easy one, but it's giving me a bit of > > a hard time.  I know that specify a version for a package, I'd say: > > ensure => "version-123", but how do I also add a

[Puppet Users] Package requires....

2010-06-30 Thread Douglas Garstang
If I have a package { "foo": ensure => installed; require => something } in a module, AND I also have a Package { require => Class['yum::client']} in site.pp, what happens in the module? Does the package in the module require both 'something' and the yum::client class, or does the fact I specified

Re: [Puppet Users] ensure version ?

2010-06-30 Thread R.I.Pienaar
- "CraftyTech" wrote: > Hello, > > This was supposed to be an easy one, but it's giving me a bit of > a hard time. I know that specify a version for a package, I'd say: > ensure => "version-123", but how do I also add a second command for > the same variable; for instance, how do it I

Re: [Puppet Users] which is more efficient?

2010-06-30 Thread Marcus, Allan B
we are running at about 10-15% processor usage now, so it ain't even close to make or break. We run MySQL and apache on the same box too, so we can split them off if we need to. I was just wondering if one way was significantly more efficient than the other. --- Thanks, Allan Marcus 505-667-56

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

2010-06-30 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 FYI, it's this bug: http://projects.reductivelabs.com/issues/3490 That's definitely going to need to get fixed before the module forge is really going to take off. Trevor On 06/30/2010 10:05 AM, R.I.Pienaar wrote: > 'lo > > - "Trevor Vaughan"

[Puppet Users] ensure version ?

2010-06-30 Thread CraftyTech
Hello, This was supposed to be an easy one, but it's giving me a bit of a hard time. I know that specify a version for a package, I'd say: ensure => "version-123", but how do I also add a second command for the same variable; for instance, how do it I tell it to ensure => installed and also

Re: [Puppet Users] which is more efficient?

2010-06-30 Thread Patrick Mohr
I'd say that "this way lies madness". Just do whatever gives you maintainability. The way that you source a file isn't going to make or break your server. (Unless you start embedding huge files in your manifest.) If small changes like this will break your server, your server will die the fir

Re: [Puppet Users] which is more efficient?

2010-06-30 Thread Marcus, Allan B
With over two thousand client hitting one server, and plans to grow to about 5000, efficiency is important. --- Thanks, Allan Marcus 505-667-5666 "A carrot may work better than a stick, but only if the carrot is big enough and it doesn't break when you hit people with it." On Jun 30, 2010, a

[Puppet Users] Re: ERB / Tagging...

2010-06-30 Thread CraftyTech
Interesting.. Thanks for the feedback. I think that a custom fact is the way to go then...I'll do some experimenting, and I'll post the results in case someone else can benefit from topic... Cheers, Henry On Jun 30, 1:59 pm, Dan Carley wrote: > On 30 June 2010 18:40, CraftyTech wrote: > > > H

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

2010-06-30 Thread Patrick Mohr
On Jun 30, 2010, at 8:33 AM, R.I.Pienaar wrote: > hey > > - "Patrick Mohr" wrote: > >> On Jun 30, 2010, at 3:09 AM, R.I.Pienaar wrote: >> >>> >>> - "Trevor Vaughan" wrote: >>> Also, I'm not entirely convinced that variables can't be >> overridden. I understand that the fi

[Puppet Users] which is more efficient?

2010-06-30 Thread Steven VanDevender
Marcus, Allan B writes: > We need to put a script into /usr/local/bin. Which is more efficient, > put the text into a variable and use content =>, or put the file on > the puppetmaster server and use source => Why do you care about the efficiency of this? It's more important to make things eas

Re: [Puppet Users] which is more efficient?

2010-06-30 Thread Brice Figureau
On 30/06/10 20:48, Marcus, Allan B wrote: > We need to put a script into /usr/local/bin. Which is more efficient, put the > text into a variable and use content =>, or put the file on the puppetmaster > server and use source => Definitely source. Because most of the time the script won't be do

[Puppet Users] which is more efficient?

2010-06-30 Thread Marcus, Allan B
We need to put a script into /usr/local/bin. Which is more efficient, put the text into a variable and use content =>, or put the file on the puppetmaster server and use source => --- Thanks, Allan Marcus 505-667-5666 "A carrot may work better than a stick, but only if the carrot is big enough

Re: [Puppet Users] Re: augeas and sudo woes

2010-06-30 Thread Rob McBroom
On Jun 30, 2010, at 1:52 PM, Jeff wrote: > When I removed that line, I got a new entry each time puppet ran... I know. I wasn’t referring to the “onlyif” line alone, but the whole thing. See my original post, starting where I said “Also note that your example as written will add this entry to t

Re: [Puppet Users] ERB / Tagging...

2010-06-30 Thread Dan Carley
On 30 June 2010 18:40, CraftyTech wrote: > Hello All, > > Can someone point me in the right direction here. I'm trying to > create an erb template for my /etc/hosts file, so that when executed, > it populates the /etc/hosts file only with entries that are tag > relevant. For instance, if a

[Puppet Users] Re: augeas and sudo woes

2010-06-30 Thread Jeff
On Jun 30, 1:25 pm, Rob McBroom wrote: > On Jun 30, 2010, at 1:14 PM, Jeff wrote: > > >      onlyif => "match *[user = '${name}'] size == 0”, > > I originally had that exact thing, but like I said, it will only add the > entry. If you ever change the command, tag, etc. Puppet won’t do anything >

[Puppet Users] ERB / Tagging...

2010-06-30 Thread CraftyTech
Hello All, Can someone point me in the right direction here. I'm trying to create an erb template for my /etc/hosts file, so that when executed, it populates the /etc/hosts file only with entries that are tag relevant. For instance, if a server is tagged apache, only the apache tagged entri

Re: [Puppet Users] Re: augeas and sudo woes

2010-06-30 Thread Rob McBroom
On Jun 30, 2010, at 1:14 PM, Jeff wrote: > onlyif => "match *[user = '${name}'] size == 0”, I originally had that exact thing, but like I said, it will only add the entry. If you ever change the command, tag, etc. Puppet won’t do anything because the user already has an entry. Maybe you’re

Re: [Puppet Users] Re: Bind Module

2010-06-30 Thread Eric Eisenhart
I added what we're using up at http://forge.puppetlabs.com/freiheit/bindserver -- Not originally designed to be a general-purpose module for all sites, so there's probably more places to edit than you'd really want there to be. On Jun 29, 2010, at 1:46 PM, Garrett Honeycutt wrote: On J

[Puppet Users] Re: augeas and sudo woes

2010-06-30 Thread Jeff
Rob, Thanks for the reply. I took a step back and starting googling Augeas instead of puppet and Augeas. Here's how I was able to solve this problem: define sudoer() { augeas { "sudo${name}": context => "/files/etc/sudoers", changes => [ "set spec[last() + 1]/user ${name}"

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

2010-06-30 Thread R.I.Pienaar
hey - "Patrick Mohr" wrote: > On Jun 30, 2010, at 3:09 AM, R.I.Pienaar wrote: > > > > > - "Trevor Vaughan" wrote: > > > >> Also, I'm not entirely convinced that variables can't be > overridden. > >> I understand that the final compilation is order independent, but > I > >> believe th

Re: [Puppet Users] LDAP node search stopped working after Puppetmaster upgrade

2010-06-30 Thread mohit chawla
Do you get any kind of error/notice ? What does the ldap/slapd log say ? Also, did you mention the admnistrative (or whatever user) DN (and the password) in the puppetmasterd (or main) sections in puppet.conf ? And then again, how does your nodes.pp look like ? Does it have any entries ? -- Y

[Puppet Users] announcement: kiwi2puppet

2010-06-30 Thread Martin Vidner
Hi, I have started working on kiwi2puppet, a tool to convert KIWI image descriptions to Puppet manifests. The goal is to recycle the data that went into the *building* of an image and use it for *managing* a deployed appliance. So far it is a prototype that can write these resources * package

Re: [Puppet Users] custom types not used by puppet

2010-06-30 Thread Dan Bode
On Wed, Jun 30, 2010 at 12:21 AM, bowlby wrote: > Hi, > New to puppet so this could be noob-problem. > I'm using the module I found here: > http://github.com/camptocamp/puppet-mysql > to manage my mysql. The module does install mysq-server and creates a > root-user, but it does not create the dat

Re: [Puppet Users] puppetd logs not getting flushed

2010-06-30 Thread Dan Bode
Hi Eric, On Wed, Jun 30, 2010 at 12:41 AM, Eric Sorenson wrote: > This happens if you have a file logdest. There is a config parameter > 'autoflush' which is supposed to do flush-on-write but in my brief testing I > found this not to work as advertised. Switching to a syslog destination, > howev

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

2010-06-30 Thread Patrick Mohr
On Jun 30, 2010, at 3:09 AM, R.I.Pienaar wrote: > > - "Trevor Vaughan" wrote: > >> Also, I'm not entirely convinced that variables can't be overridden. >> I understand that the final compilation is order independent, but I >> believe that the initial run is file order dependent. I.e. if yo

Re: [Puppet Users] augeas and sudo woes

2010-06-30 Thread Rob McBroom
On Jun 30, 2010, at 10:36 AM, Rob McBroom wrote: > In any case, I would try this: > >"set spec[last()]/host_group/command 'NOPASSWD: ALL’”, And of course replace the fancy quotes my mail client inserted. -- Rob McBroom -- You received this message because you ar

Re: [Puppet Users] augeas and sudo woes

2010-06-30 Thread Rob McBroom
On Jun 30, 2010, at 9:12 AM, Jeff wrote: > In that example, the command line looked like this: > > "set spec[last()]/host_group/command ALL", > > I added NOPASSWD: and it barfs with this message: > > err: //user::unixadmins/User::Virtual::Sudoer[joe]/Augeas[sudojoe]/ > returns: change from need

Re: [Puppet Users] LDAP node search stopped working after Puppetmaster upgrade

2010-06-30 Thread Rob McBroom
On Jun 4, 2010, at 12:41 AM, jc.listmail wrote: > I recently upgrade from 0.24 to 0.25. In my 0.24 config, I had LDAP > working such that Puppet was matching nodes in my directory to > determine what classes to apply. I upgraded to 0.25 and this stopped > working. I do not even see attempts fro

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

2010-06-30 Thread R.I.Pienaar
'lo - "Trevor Vaughan" wrote: > Did you note that defined() should not blow up if you don't have the > class on your system at all? hehe never seen this behavior but did just test, I'd say that another bug worth filing separately > > Sorry, running in text only mode today :-/. > > Thank

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

2010-06-30 Thread Trevor Vaughan
Fair enough. If it is a bug, then consider that suggestion null and void. Did you note that defined() should not blow up if you don't have the class on your system at all? Sorry, running in text only mode today :-/. Thanks, Trevor On 6/30/10, R.I.Pienaar wrote: > > - "Trevor Vaughan" wr

[Puppet Users] augeas and sudo woes

2010-06-30 Thread Jeff
The following function is based on code I found here in an earlier thread. define sudoer() { augeas { "sudo${name}": context => "/files/etc/sudoers", changes => [ "set spec[last() + 1]/user ${name}", "set spec[last()]/host_group/host ALL", "set spec[last()]/host_group/command NOP

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

2010-06-30 Thread R.I.Pienaar
- "Trevor Vaughan" wrote: > Also, I'm not entirely convinced that variables can't be overridden. > I understand that the final compilation is order independent, but I > believe that the initial run is file order dependent. I.e. if you > don't declare an 'include' before an 'if' statement che

Re: [Puppet Users] Re: Problem with exec tar

2010-06-30 Thread Alex Howells
On 30 June 2010 09:08, Christian Casar wrote: > I guess in the future I will always put root's $PATH into any exec > path... Not every configuration directive needs to be specified either, IMHO - there are only a few systems where I specify a path and that's usually to add important stuff in /usr

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

2010-06-30 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If possible, I would like to see a special variables derivative of class that allow for multiple inheritance so that you could pull variables from multiple top-level classes and override them at a single point. This would prevent the multiple tree to t

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

2010-06-30 Thread R.I.Pienaar
- "Luke Kanies" wrote: > Hi all, > > Given the number of threads on variable scoping recently, it's pretty > clear we need to change how it works. Markus has a lot of this redone > in his futures branch, and I'm asking him to fully describe what the > results will be when that's merged,

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

2010-06-30 Thread Matt
On 29 June 2010 17:22, Luke Kanies wrote: > Hi all, > > Given the number of threads on variable scoping recently, it's pretty clear > we need to change how it works.  Markus has a lot of this redone in his > futures branch, and I'm asking him to fully describe what the results will > be when that'

[Puppet Users] Re: Problem with exec tar

2010-06-30 Thread Christian Casar
Thanks for all your help! > Since you're unzipping a bzipped tarball, tar probably needs to run > the `bzip2' command. But, at least on my system, that's > in /usr/bin, not /bin. Find out where the bzip2 command is located > and make sure that's also in path. That's what finally solved my probl

Re: [Puppet Users] puppetd logs not getting flushed

2010-06-30 Thread Eric Sorenson
This happens if you have a file logdest. There is a config parameter 'autoflush' which is supposed to do flush-on-write but in my brief testing I found this not to work as advertised. Switching to a syslog destination, however, does. On Jun 29, 2010, at 11:34 AM, Steven L. Seed wrote: > Has

[Puppet Users] puppetd logs not getting flushed

2010-06-30 Thread Steven L. Seed
Has anyone noticed that the puppetd logs on the client don't get flushed on a regular bases. I'm often looking at the logs and don't see updates for many hours and then later on I'll see messages logged for hours that have past. It's as if there is a buffer that is not getting flushed to disk o

[Puppet Users] custom types not used by puppet

2010-06-30 Thread bowlby
Hi, New to puppet so this could be noob-problem. I'm using the module I found here: http://github.com/camptocamp/puppet-mysql to manage my mysql. The module does install mysq-server and creates a root-user, but it does not create the database and user I specify. My guess is that the custom types (f

[Puppet Users] Problem using the logadm pattern

2010-06-30 Thread John Warburton
Hi All I am trying to deploy the Solaris logadm pattern from http://projects.reductivelabs.com/projects/puppet/wiki/Logadm_Patterns. I dropped it in .../lib/puppet/type/logadm.rb However, I am getting an error message: err: Could not run Puppet configuration client: Munging failed for value "pup