Re: [Puppet Users] Going to publish custom modules : Request for comments

2011-05-16 Thread Chris Phillips
On 15 May 2011 20:27, Matthias Saou th...@spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net wrote: Dan Bode d...@puppetlabs.com wrote: I have an implementation question: 1. Why are you doing the chkconfig exec: exec { chkconfig ${title} on: notify =

[Puppet Users] Stopping two services at once

2011-05-16 Thread Jonathan Gazeley
Is there a way to stop and disable two services in one declaration? Currently I have this: # Stop sendmail service { sendmail: ensure = stopped, enable = false, } # Stop exim service { exim: ensure = stopped, enable = false, } Is it possible to format that like

[Puppet Users] Re: Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/

2011-05-16 Thread jcbollinger
On May 14, 8:52 am, Simon J Mudd sjm...@pobox.com wrote: sjm...@pobox.com (Simon J Mudd) writes: john.bollin...@stjude.org (jcbollinger) writes: In fact, Puppet Labs's own recently updated style guide recommends against using extlookup(), though that position is controversial. I

Re: [Puppet Users] Stopping two services at once

2011-05-16 Thread Adam Heinz
On Mon, May 16, 2011 at 7:16 AM, Jonathan Gazeley jonathan.gaze...@bristol.ac.uk wrote: Is it possible to format that like this?: service { disabledemail:        name = ['sendmail', 'exim'],        ensure = stopped,        enable = false, } I think you mean service {[ 'sendmail', 'exim']:

Re: [Puppet Users] Stopping two services at once

2011-05-16 Thread Bruce Richardson
On Mon, May 16, 2011 at 12:16:53PM +0100, Jonathan Gazeley wrote: Is there a way to stop and disable two services in one declaration? Currently I have this: # Stop sendmail service { sendmail: ensure = stopped, enable = false, } # Stop exim service { exim: ensure =

Re: [Puppet Users] Should puppet manage its own client configs?

2011-05-16 Thread Jonathan Gazeley
Hi Chris, We have configured puppet to manage its own puppet.conf on clients, and to ensure that puppetd is running on all hosts. However it does not manage puppet.conf on the puppetmaster, so if we accidentally mess up the config, we won't break the puppetmaster. The hostname of the

Re: [Puppet Users] Should puppet manage its own client configs?

2011-05-16 Thread Adam Heinz
On Mon, May 16, 2011 at 3:14 PM, Jonathan Gazeley jonathan.gaze...@bristol.ac.uk wrote: The hostname of the puppetmaster is hard-coded, in our case. Can anyone think of a better way of identifying the puppetmaster, so our manifests will run anywhere, if we decide to make a different machine the

[Puppet Users] Uninstalling the puppet source?

2011-05-16 Thread Robin Lee Powell
I'm installing puppet from git per instructions in another thread. The instructions given at http://docs.puppetlabs.com/guides/installation.html for installing puppet from source lead to it dumping things all over my Ruby, which I really wasn't expecting and doesn't work well with our

Re: [Puppet Users] Uninstalling the puppet source?

2011-05-16 Thread Robin Lee Powell
On Mon, May 16, 2011 at 12:35:10PM -0700, Robin Lee Powell wrote: I'm installing puppet from git per instructions in another thread. The instructions given at http://docs.puppetlabs.com/guides/installation.html for installing puppet from source lead to it dumping things all over my Ruby,

Re: [Puppet Users] Uninstalling the puppet source?

2011-05-16 Thread Daniel Pittman
On Mon, May 16, 2011 at 12:50, Robin Lee Powell rlpow...@digitalkingdom.org wrote: On Mon, May 16, 2011 at 12:35:10PM -0700, Robin Lee Powell wrote: I'm installing puppet from git per instructions in another thread. The instructions given at

Re: [Puppet Users] Should puppet manage its own client configs?

2011-05-16 Thread Chris Phillips
On 16 May 2011 20:14, Jonathan Gazeley jonathan.gaze...@bristol.ac.ukwrote: Hi Chris, We have configured puppet to manage its own puppet.conf on clients, and to ensure that puppetd is running on all hosts. However it does not manage puppet.conf on the puppetmaster, so if we accidentally mess

Re: [Puppet Users] Uninstalling the puppet source?

2011-05-16 Thread Robin Lee Powell
On Mon, May 16, 2011 at 12:54:02PM -0700, Daniel Pittman wrote: On Mon, May 16, 2011 at 12:50, Robin Lee Powell rlpow...@digitalkingdom.org wrote: On Mon, May 16, 2011 at 12:35:10PM -0700, Robin Lee Powell wrote: (2) How do I turn the git source into a gem? Figured (2) out; still

[Puppet Users] Puppet fails first run

2011-05-16 Thread Greg Etling
Hey all...new to puppet, but desperately pushing it on everyone I see around me :)... I'm running into a relatively minor issue that keeps puppet from properly completing its first run. Subsequent runs do not have these issues, and I'm confused why. It appears to be looking for a different repo's

[Puppet Users] apt-pinning puppet package management

2011-05-16 Thread CoolCold
Hello! I have question about Debian package management with puppet. I'm wondering is there sane way to make puppet respects packages pinning? i.e., if I have several repos for one package, let's say it is nginx which can be found in lenny lenny-backports repos. I've created pinning file like:

Re: [Puppet Users] Re: Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/

2011-05-16 Thread Simon J Mudd
john.bollin...@stjude.org (jcbollinger) writes: On May 14, 8:52 am, Simon J Mudd sjm...@pobox.com wrote: However, from the discussion a few things strike me: 1. the use of parameterised classes is recommended heavily. I've just found out about this new feature inspite of using puppet

Re: [Puppet Users] Re: Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/

2011-05-16 Thread R.I.Pienaar
- Original Message - john.bollin...@stjude.org (jcbollinger) writes: Perhaps. To some extend my non-parameterised classes are _very_ similar in many ways except for various parameters (creation of logical volumes and filesystems, version of mysql to use, creation of certain cron

Re: [Puppet Users] Should puppet manage its own client configs?

2011-05-16 Thread Adam Heinz
On Mon, May 16, 2011 at 4:08 PM, Chris Phillips ch...@untrepid.com wrote: Why the distinction between the two? What's wrong with using a LAN IP on the puppetmaster machine as well? To me that's much clearer that misusing loopback. I seem to recall doing that to allow a newly provisioned

Re: [Puppet Users] Re: Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/

2011-05-16 Thread Simon J Mudd
Hi John, john.bollin...@stjude.org (jcbollinger) writes: ... Let's not cast things in terms of correctness, except insomuch as whether they reliably produce the desired effect on clients. Indeed. As always there is more than one way to solve a problem. Depending on what you're trying to do

Re: [Puppet Users] Re: Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/

2011-05-16 Thread Simon J Mudd
r...@devco.net (R.I.Pienaar) writes: - Original Message - john.bollin...@stjude.org (jcbollinger) writes: Perhaps. To some extend my non-parameterised classes are _very_ similar in many ways except for various parameters (creation of logical volumes and filesystems, version of

Re: [Puppet Users] Re: Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/

2011-05-16 Thread R.I.Pienaar
- Original Message - r...@devco.net (R.I.Pienaar) writes: - Original Message - john.bollin...@stjude.org (jcbollinger) writes: Perhaps. To some extend my non-parameterised classes are _very_ similar in many ways except for various parameters (creation of

[Puppet Users] Plugins don't work the way I think they do?

2011-05-16 Thread Aaron Grewell
Hi all, I'm trying to configure a set of network interfaces, so I downloaded the puppet-network module from the module forge. I enabled plugin sync per http://docs.puppetlabs.com/guides/plugins_in_modules.htm and added the module to my module path, but I'm getting an 'invalid resource type' error

Re: [Puppet Users] Fun with hashes and ERB

2011-05-16 Thread yzhk...@gmail.com
multipaths { % devices.each do |key,value| -% multipath { wwid%= value % alias %= key % } % end -% } On Tue, May 17, 2011 at 2:29 AM, Aaron Grewell aaron.grew...@gmail.comwrote: Hi all, I'm trying to figure out the intersection of hashes and ERB. I don't

[Puppet Users] Abstracting filebucket source?

2011-05-16 Thread Nathan Clemons
I have two puppet configurations, one for the office and one for production. We have some directories in common (both for files and for classes) using SVN externals. So the format is like: puppet-common * files * classes puppet-prod * files * files/common - puppet-common/files *