[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 * ma

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 wrote: > Hi all, > I'm trying to figure out the intersection of hashes and ERB. I don't know > Ruby,

[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] 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 paramete

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

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 t

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 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 puppetmaster to bootst

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 cro

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 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 for a

[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: P

[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

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 > 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 wondering about the o

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

2011-05-16 Thread Chris Phillips
On 16 May 2011 20:26, Adam Heinz wrote: I just refer to the puppetmaster as 'puppet' everywhere and drop an > entry in /etc/hosts for it. Then if I wanted to migrate off a server, > I would just hardcode away $servername and $serverip on the old > puppetmaster to point to the new one, and copy t

[Puppet Users] buglet in ec2 facts in facter 1.5.9rc6

2011-05-16 Thread Christopher McCrory
Hello... I ran into a buglet in facter 1.5.9rc6 (from tmz repo). In normal AWS instances it works great. In VPC instances if doesn't work. This seems to be because VPC instances don't use the fe:ff:ff:... MAC addresses. /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 02:67:4E:E1:26:30

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

2011-05-16 Thread Chris Phillips
On 16 May 2011 20:14, Jonathan Gazeley wrote: > 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

Re: [Puppet Users] Uninstalling the puppet source?

2011-05-16 Thread Daniel Pittman
On Mon, May 16, 2011 at 12:50, Robin Lee Powell 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 >> http://docs.puppetlabs.com/guides/installation.html for installing

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 Ru

[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 environment

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 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 puppetmaster? I just refer

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 puppetm

[Puppet Users] Fun with hashes and ERB

2011-05-16 Thread Aaron Grewell
Hi all, I'm trying to figure out the intersection of hashes and ERB. I don't know Ruby, so I put this together from examples available online and predictably it generates an ERB syntax error. Can you point me in the right direction? ### Call: class {'multipath': devices => { oradata0

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

2011-05-16 Thread Chris Phillips
Hi, Is there a general feel on whether puppet should look after its own client configuration files and service status? I'd not foresee problems about a "service ensure enabled" for puppetd and a file object for the puppet.conf but clearly wouldn't want to risk locking ourselves out of the clients

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

2011-05-16 Thread jcbollinger
Hi Simon, On May 14, 2:55 am, Simon J Mudd wrote: > Hi John, > > While you obviously disagree with me, thanks for taking the time to > reply. I may be looking at the problem the wrong way which is why > I'm trying to figure out if that's the case and why. Fair enough. > john.bollin...@stjude.

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":

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 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']: ensure => stoppe

[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 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 found

[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 th

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 wrote: > > > I have an implementation question: > > > > 1. Why are you doing the chkconfig exec: > > > > exec { "chkconfig ${title} on": > > notify => S