Re: [Puppet Users] Users with different passwords on each host

2012-01-17 Thread Christopher Wood
Maybe something like this? class users { user { 'cwood': password => $fqdn ? { 'host1' => 'password1', 'host2' => 'password2', }, } } include users If you use a scripted generator to pop out the manif

[Puppet Users] ignoring a service that doesn't exist

2012-01-17 Thread Christopher Wood
I definitely need some assistance in conceptualizing something. If I want to configure syslog-ng instead of rsyslog, or configure rsyslog instead of sysklogd, the previous syslog daemon has to be stopped (and disabled) before the new one starts. De-configuring the previous one works just fine w

Re: [Puppet Users] apache/passenger/puppet/dashboard integration

2012-01-25 Thread Christopher Wood
On Wed, Jan 25, 2012 at 05:14:51PM +0200, Walter Heck wrote: > Go with Debian or an Ubuntu LTS version instead of the latest Ubuntu, > you'll have much longer support: > http://en.wikipedia.org/wiki/Ubuntu_(operating_system)#Releases > http://en.wikipedia.org/wiki/Debian#Releases I concur with the

Re: [Puppet Users] apache/passenger/puppet/dashboard integration

2012-01-25 Thread Christopher Wood
inline On Wed, Jan 25, 2012 at 09:48:27AM -0500, Peter Berghold wrote: >Hi folks, > >Over the last week or so I've been banging my head against the wall trying >to get dashboard working and trying to figure out why "end of file" >reports are happening during some of my puppet runs

Re: [Puppet Users] courier imap/pop not refreshing

2012-01-25 Thread Christopher Wood
:08 PM, Christopher Wood wrote: > > The courier-imap (and courier-pop) services on my lab VMs don't actually > > get refreshed after puppet drops in the config files. I suspect it's > > something about the lack of /etc/init.d/courier-pop status, coupled with > >

Re: [Puppet Users] constraint checking

2012-01-25 Thread Christopher Wood
On Wed, Jan 25, 2012 at 08:53:15AM -0800, Jo Rhett wrote: > On Jan 25, 2012, at 8:30 AM, Nick wrote: > > But then I have to anticipate every possible value of $shell and define > > resources for them. Anything which is not defined like this is not usable > > within the scheme, because there will b

Re: [Puppet Users] courier imap/pop not refreshing

2012-01-26 Thread Christopher Wood
(My apologies for the attachment, I'm sleepy and did -a not -i in mutt.) This electronic message contains information from Primus Telecommunications Canada Inc. ("PRIMUS") , which may be legally privileged and confidential. The information is intended to be fo

Re: [Puppet Users] Managing SSH host private keys

2012-01-26 Thread Christopher Wood
On Thu, Jan 26, 2012 at 06:32:49PM +, Dan White wrote: > I am relatively new to both Puppet and ssh-keys, > but is it possible for the PuppetMaster to generate all the keys rather that > each client creating their own ? This might be one of the places where erb (templates) being evaluated on

Re: [Puppet Users] Puppet agents stop reporting after master runs out of disk space...

2012-01-27 Thread Christopher Wood
While you're logging into every host to install mcollective, there are some other things to think about (that are easily puppetizeable): -remote syslogging, so that lots of logs don't cause application hosts to clot -file system monitoring for your hosts, so you get an alert before things fill u

Re: [Puppet Users] Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Christopher Wood
This sounds like you want a define rather than a class. http://docs.puppetlabs.com/guides/language_guide.html#defined-resource-types I end up with something like this (gross, horrible, works, nfs client installation not shown): define mail::mount ($mountpoint, $source) { include nfs::client

Re: [Puppet Users] Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Christopher Wood
On Tue, Jan 31, 2012 at 04:52:31PM +0100, Felix Frank wrote: > On 01/31/2012 04:46 PM, Christopher Wood wrote: > > This sounds like you want a define rather than a class. > > Possibly, but not yet determined ;-) > > > gross, horrible > > How so? It's not a b

Re: [Puppet Users] Re: Error 400 on SERVER: Duplicate definition

2012-01-31 Thread Christopher Wood
I can't completely answer your question unless you point to the section you're asking about. (Possibly reply to my earlier post, quoting what I posted, and insert your question right after the puzzling part.) I'll try anyway. "mail::mount" is a define specified in the "mail" module. See: http:/

Re: [Puppet Users] neatest way to determine a major version of centos/linux?

2012-02-03 Thread Christopher Wood
This sort of thing works satisfactorily if cumbersomely for me: case $::operatingsystemrelease { /^5/: { } /^6/: { } } On Fri, Feb 03, 2012 at 04:57:34PM +, Dick Davies wrote: > Just started a rollout of centos 6.x across our Puppet deployment > (100-odd servers). > > what fact would peopl

Re: [Puppet Users] Augeas fstab question

2012-02-10 Thread Christopher Wood
Try the mount type? http://docs.puppetlabs.com/references/stable/type.html#mount (Any particular reason for using augeas?) On Fri, Feb 10, 2012 at 12:10:56PM -0800, Joe wrote: > I'm trying to add a mount option using puppet/augeas. Something like: > > class acl { > augeas { "var_fs_acl"

Re: [Puppet Users] Relative Symlinks

2012-03-21 Thread Christopher Wood
$ cat /tmp/symlink.pp file { '/tmp/link_to_zz': ensure => link, target => 'zz', } $ puppet /tmp/symlink.pp notice: /Stage[main]//File[/tmp/link_to_zz]/ensure: created $ ls -l /tmp/link_to_zz lrwxrwxrwx 1 cwood cwood 2 Mar 21 13:03 /tmp/link_to_zz -> zz (ln target linkname) On Wed, Mar 21,

Re: [Puppet Users] newly added ruby function executes on the server instead of the node

2012-04-05 Thread Christopher Wood
On Thu, Apr 05, 2012 at 07:14:10PM +, Nan Liu wrote: > On Thu, Apr 5, 2012 at 7:06 PM, vicki wrote: > > Hi, > > 1) I added this test function tom my > > /etc/puppet/modules/write_line_to_file/lib/puppet/parser/functions/write_line_to_file.rb > > : > > > > module Puppet::Parser::Functions newfu

Re: [Puppet Users] Getting started

2012-04-05 Thread Christopher Wood
In your position I would "apt-get install puppet" and then try out some manifests before running my own puppetmaster. Then I would "apt-get install puppetmaster" or something similar. Personally I have never installed from gems and I've been just fine. (Or pkg_add -r puppet or yum install puppe

[Puppet Users] freebsd provider keeps reinstalling packages?

2012-04-06 Thread Christopher Wood
Question: how do I get puppet 2.7.6 on FreeBSD 9.0-RELEASE to stop downloading packages with every puppet run? Obviously I'd be puppetizing the config files so this wouldn't be a huge big deal, but a daemon restart after every puppet run due to notify/subscribe involving the config file isn't o

Re: [Puppet Users] Puppet and Passenger

2012-04-07 Thread Christopher Wood
http://apt.puppetlabs.com/ Use that and then "apt-get install puppetmaster-passenger". (There's a yum repository too.) Then you can crib from those configs. On Fri, Apr 06, 2012 at 05:45:39PM -0700, Jax01 wrote: > Hi Everyone; > > I am new to puppet and would SO appreciate any help you might be

Re: [Puppet Users] Re: Customizing a hostname facts

2012-04-08 Thread Christopher Wood
/usr/lib/ruby/1.8/facter/manufacturer.rb has it on my system. On Sun, Apr 08, 2012 at 06:02:09PM +0530, Mukul Malhotra wrote: >Hi, > >I get the serialnumber from my system through "facter | grep serialnumber" > >Also this is possible whether puppet picks the serialnumber fact instead

Re: [Puppet Users] Re: Customizing a hostname facts

2012-04-09 Thread Christopher Wood
Thanks > >On Sun, Apr 8, 2012 at 6:28 PM, Christopher Wood ><[1]christopher_w...@pobox.com> wrote: > > /usr/lib/ruby/1.8/facter/manufacturer.rb has it on my system. > On Sun, Apr 08, 2012 at 06:02:09PM +0530, Mukul Malhotra wrote: > >    Hi, >

Re: [Puppet Users] Puppet Server 2.6.9 and Puppet Client 2.7.6 (Mac)

2012-04-10 Thread Christopher Wood
For me, the server upgrade was as easy as using apt.puppetlabs.com (or yum.puppetlabs.com) and doing 'apt-get install puppetmaster-passenger; apt-get remove puppetmaster'. That gave me the Puppet Labs passenger install instead of the Debian-packaged puppetmaster. (Albeit that I did these steps u

Re: [Puppet Users] freebsd provider keeps reinstalling packages?

2012-04-10 Thread Christopher Wood
output? >Also check the return status of the pkg_info command, make sure it returns >0. >On Apr 6, 2012, at 7:58 AM, Christopher Wood wrote: > > Question: how do I get puppet 2.7.6 on FreeBSD 9.0-RELEASE to stop > downloading packages with every puppet ru

Re: [Puppet Users] FreeBSD Port

2012-04-11 Thread Christopher Wood
(I'm just starting with FreeBSD, albeit with some months of puppet experience.) The puppet agent implies a daemon, but try something like this for a single run in the foreground: puppet agent --no-daemonize --onetime On Wed, Apr 11, 2012 at 07:31:14AM -0400, JA wrote: > I have installed puppet

Re: [Puppet Users] FreeBSD Port

2012-04-11 Thread Christopher Wood
, if I do the same thing using the FreeBSD port, it > does attempt to start the daemon. > > Obviously, I am missing something here... > > Thanks! > Jackie > > On Wed, Apr 11, 2012 at 10:02 AM, Christopher Wood > wrote: > > (I'm just starting with Free

Re: [Puppet Users] Cron job isn't running

2012-04-19 Thread Christopher Wood
Usually cron problems like this are because of the way cron shrinks your $PATH environment variable. Read "man 5 crontab" and "man 8 cron", or find them on the web. Or use the full path to your puppet executable. Why don't you have puppet set up the cron job for you? That way puppet will instal

Re: [Puppet Users] Re: Cron job isn't running

2012-04-21 Thread Christopher Wood
What does the custom facter variable contain? On Sat, Apr 21, 2012 at 08:03:32AM -0700, thinkwell wrote: >Ahah, I made a custom FACTER variable in my .bashrc file and that bash >environment variable isn't run by cron.  So that's my problem... I'll need >to research how to pass a custom

Re: [Puppet Users] Testing a single module

2012-04-23 Thread Christopher Wood
In your situation I would set up a virtual machine on my laptop where I would merrily munge mail service at will. (Or a VM anywhere else for similar fun.) If you break something you can roll back to your known good snapshot and try again. On Mon, Apr 23, 2012 at 06:10:59AM -0700, James Patterson

Re: [Puppet Users] Puppet and FreeBSD

2012-04-23 Thread Christopher Wood
Breaking in late... I use some defaults to ensure I get binary packages out of my local mirror. (I'm not terribly fussed about binary-only packages, possibly because I come from a Linux background.) case $::operatingsystem { freebsd: { # For this we still have to specify freebsd'ish names.

Re: [Puppet Users] Puppet and FreeBSD

2012-04-23 Thread Christopher Wood
(inline) On Mon, Apr 23, 2012 at 03:22:37PM +, Darryl Wisneski wrote: > On Mon, Apr 23, 2012 at 10:42:53AM -0400, Christopher Wood wrote: > > Breaking in late... I use some defaults to ensure I get binary packages out > > of my local mirror. (I'm not terribly fuss

Re: [Puppet Users] Analysing some puppetmaster logs to find out what's happening on an agent

2012-04-23 Thread Christopher Wood
I admit I've never read puppetmaster logs like that so what I'm about to say may be very bad advice. Since resources removed from your manifests become unmanaged rather than deleted, why not swap the node's current manifest for one which only re-enables ssh root login? Once you have access you

Re: [Puppet Users] Re: centos 6.2 - puppet 2.7.13 - SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert protocol version

2012-04-24 Thread Christopher Wood
err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 I've seen that when the clocks on the two hosts were out of sync. Even when I brought the clocks back into sync I found that I had to regenerate the certs to get it working. master: puppet cert --clean (restar

Re: [Puppet Users] A simple solution to the "deep directory tree" problem

2012-04-26 Thread Christopher Wood
I hope you have more moments of despair because that's nifty and I'll use it. You could possibly use ruby's dirname and basename (http://ruby-doc.org/core-1.8.7/File.html) inside an inline template to do the directory/file split for you in a single resource. The parameters for permissions and o

Re: [Puppet Users] White list of packages

2012-05-01 Thread Christopher Wood
You can install and remove specific packages, but not specify a whitelist. (Unless you wanted to do creative things with facts, templates, and puppetized scripts. I'm assuming you think it's better to hose your server due to a typo than run with a single unpermitted package. And then how are you

Re: [Puppet Users] Import username/password list to hash

2012-05-02 Thread Christopher Wood
My experience managing only home directories (and even fewer than yours) is that tossing hundreds of i/o-sensitive resources (nfs mounts, directories) at a puppet agent guarantees slow agent runs. You're also not going to scale way up with local users across a growing number of servers. My way

Re: [Puppet Users] automatic load of node definition file

2012-05-02 Thread Christopher Wood
At the bottom of my site.pp I have: import "nodes/*" I haven't heard of this autoload thing, but then I'm newish. On Wed, May 02, 2012 at 11:06:17AM -0700, Philip Brown wrote: >I vaguely recall some kind of reference mentioning that as a fallback, >puppet master would attempt to load  ho

Re: [Puppet Users] transitioning a file resource

2012-05-02 Thread Christopher Wood
I've done this sort of thing (upgrading puppetmasters in my case) by having one class (thing::mainclass) manage all the resources of the new one and depend on another class (otherthing:removeclass) which restored/defaulted/removed everything that shouldn't be there. You might need to be more ca

Re: [Puppet Users] puppet kick without LDAP

2012-05-06 Thread Christopher Wood
I'd write a cheap wrapper script, substituting paths as required. I'm also not fussy about kicking sequentially. $ echo host1 >>/tmp/mail; echo host2 >>/tmp/mail $ cat /tmp/mail host1 host2 $ cat /tmp/km #!/bin/bash dir=/tmp for

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-07 Thread Christopher Wood
On Mon, May 07, 2012 at 12:26:32PM -0400, Derek J. Balling wrote: > > On May 7, 2012, at 11:54 AM, Nigel Kersten wrote: > > Yes. If you're not planning to externalize data at all, the only difference > > you'll see is that you'll now have Hiera installed on your system when you > > install Puppe

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-08 Thread Christopher Wood
On Tue, May 08, 2012 at 06:00:07AM -0400, Derek J. Balling wrote: > > On May 7, 2012, at 12:47 PM, Christopher Wood wrote: > > Wrapper script (similar concept for anywhere with a yaml reader): > > Still have to *write* the YAML files. I don't think I've ever actua

[Puppet Users] odd behaviour on file ensure => absent

2012-05-15 Thread Christopher Wood
Here's my test (done on Debian Stable with puppet 2.7.13 from the puppetlabs apt repository): $ cat /tmp/t1.pp file { '/tmp/xx/yy/zz/1': ensure => absent, } $ ls /tmp/xx ls: cannot access /tmp/xx: No such file or directory $ puppet apply /tmp/t1.pp notice: Finished catalog run in 0.02 second

Re: [Puppet Users] Mailing list etiquette

2012-05-15 Thread Christopher Wood
I wrote my "odd behaviour on file ensure => absent" in an hurried, off-the-cuff manner and I apologize if it was off. (I noticed you posted this right after my post.) On Tue, May 15, 2012 at 10:44:59AM -0700, Michael Stahnke wrote: > I wanted to quickly make a reminder on mailing list etiquette:

Re: [Puppet Users] Master Timeout

2012-05-16 Thread Christopher Wood
On Wed, May 16, 2012 at 06:53:08AM -0700, de wrote: > Howdy, > > our puppet master is hosting nagios at the same time. it happens that > the compilation of the catalog for the master during a puppet run > produces a timeout: > > === > err: Could not retrieve catalog from remote server: execution

Re: [Puppet Users] Re: Newbie question: what to start from?

2012-05-18 Thread Christopher Wood
http://forge.puppetlabs.com/ That's sort of like a cookbook. On Fri, May 18, 2012 at 11:01:51AM -0700, Anatoliy Lisovskiy wrote: >Thanks anyway. ;) > >When we started using cfengine long time ago cookbooks _with_examples_ >were available, it was very convenient. > >Anatoliy > >

Re: [Puppet Users] odd behaviour on file ensure => absent

2012-05-20 Thread Christopher Wood
On Sat, May 19, 2012 at 08:40:27PM +0200, Stefan Schulte wrote: (SNIP) > can you raise a ticket for that on redmine as it is clearly a bug? https://projects.puppetlabs.com/issues/14599 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post t

Re: [Puppet Users] Puppet caching user/uids

2012-05-28 Thread Christopher Wood
inline On Mon, May 28, 2012 at 05:17:25PM +0100, Luke Bigum wrote: > Hi all, > > Does anyone have an all-in-one-run work around for this issue: > > http://projects.puppetlabs.com/issues/791 > > Where Puppet / Ruby / libc is not rereading the naming service > settings if Puppet itself changes th

Re: [Puppet Users] Managing Puppet modules as RPMs

2012-05-28 Thread Christopher Wood
inline On Mon, May 28, 2012 at 04:32:03PM -0700, Anthony Shortland wrote: >Very interesting that you should say that you created a Puppet master for >each environment ... it's the obvious way to accommodate the limits of RPM >packaging while retaining the ability to use Puppet in full

Re: [Puppet Users] Thoughts on job listings?

2012-05-30 Thread Christopher Wood
On Wed, May 30, 2012 at 01:49:44PM -0700, Michael Stahnke wrote: > How do folks feel about getting Puppet job listings on this list? > I've rejected a few that we quite spammy, but when the subject matter > really is a system admin with puppet experience, the decision becomes > a bit different. >

Re: [Puppet Users] run stages and users

2012-06-14 Thread Christopher Wood
I organize the root user in the first stage (before apt-get update!) and then everything else in a subsequent stage. Later I found out that puppet will write files as root:root, 0644 in the default configuration. That meant I could remove many owner, group, mode attributes from my file declarat

Re: [Puppet Users] run stages and users

2012-06-14 Thread Christopher Wood
My quick take is that declaring this: user { 'root': } Means that suddenly every file resource which says this... owner => root ...now implicitly depends on that user resource. So unless you use require => User['root'] in your owner=>root file resources, things will break as some resources wi

Re: [Puppet Users] Puppet 2.7.16 standalone under FreeBSD 9.0 password nightmare

2012-06-17 Thread Christopher Wood
On Sun, Jun 17, 2012 at 01:28:53PM -0700, Francisco Cabrita wrote: >Hi, >I've created a standalone recipe to configure my FreeBSD servers. >Everything is fine except the password I set for a specific user. >"... >$username = "admin" >$fullname = "bofh" >$password = "chan

Re: [Puppet Users] add an rpm to a host

2012-06-22 Thread Christopher Wood
On Fri, Jun 22, 2012 at 08:50:59AM -0700, Christian DeKonink wrote: >Hi� >I am new to puppet. I have an existing puppet 2.6 config and I have about >400 hosts that I would like to install a package on. the specific package >is >foo_bar_1.0.rpm Save your sanity: set up a local y

[Puppet Users] puppetized networking and nfs

2012-06-22 Thread Christopher Wood
Short version: How do you (the multitudes) handle puppetized networking with nfs volumes? Details: I'm tweaking work's puppetized networking for debian/ubuntu hosts. As part of this, I'd like better handling of networking changes when I have nfs mounts present on the server. Right now on all

Re: [Puppet Users] Using generate() to mine a shadow file hash

2012-06-22 Thread Christopher Wood
inline On Fri, Jun 22, 2012 at 02:42:54PM -0700, Rob B. wrote: >Hey all, >  >My objective is to set the root password on the puppet master and then >have root module mine the hash from the shadow file. It seems like it >should work, but I get the error "Parameter password faile

Re: [Puppet Users] Augeas fails to set BONDING_OPTS with return code false

2012-06-23 Thread Christopher Wood
netmark? On Sat, Jun 23, 2012 at 02:37:04PM -0700, treydock wrote: >      "set NETMARK ${netmask}", -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from thi

Re: [Puppet Users] Execute a shell script residing in puppet master

2012-06-28 Thread Christopher Wood
As far as technique, assuming your myscript module (so in init.pp), you install the file using puppet and then run it: class myscript { $filesource = "puppet:///modules/myscript" $script1 = '/usr/local/bin/myscript.sh' $script1source = "$filesource/myscript.sh" file { $script1: sourc

Re: [Puppet Users] Automated deployment with puppet

2012-07-05 Thread Christopher Wood
Use the file resource to put your jar somewhere useful, and then have the file resource notify the tomcat daemon's service resource to restart/reload the daemon. http://docs.puppetlabs.com/references/stable/type.html#file http://docs.puppetlabs.com/references/stable/type.html#service http://docs

Re: [Puppet Users] Double quotes within an exec statement

2012-07-05 Thread Christopher Wood
On Thu, Jul 05, 2012 at 01:23:47PM -0700, Mike Reed wrote: >Hello all, > >I've been trying to run this exec statement (which to my peril was >initially thought to be something simple): > >exec { "/opt/pbis/bin/config UserDomainPrefix "" " :  } Escape the inside double quotes: $

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-02 Thread Christopher Wood
On Thu, Sep 01, 2011 at 09:07:37PM +0200, Reinoud van Leeuwen wrote: > On Thu, Sep 01, 2011 at 11:58:04AM -0700, Russell Van Tassell wrote: > > I'm currently in the same position, and the solution I've proposed (and am > > currently working on) involves using a central repository (likely git). The

Re: [Puppet Users] Reboot required?

2011-09-02 Thread Christopher Wood
On Fri, Sep 02, 2011 at 03:14:51AM -0700, Ryohei Suzuki wrote: > Hi > > I have one question. > I changed the manifest of a Puppet. > Then, if you do not restart the Puppetmasterd, manifest did not run. > What's the functional movements are correct? If I recall correctly, you should touch /etc/pup

Re: [Puppet Users] Puppet client dying without errors

2011-09-02 Thread Christopher Wood
On Thu, Sep 01, 2011 at 08:31:55PM -0400, Basil Baby wrote: >Few of my puppet clients (puppet 0.24.8,� ruby 1.8.5, facter 1.5.2) are >dying with out any error messages on on syslog.� I cannot see much system >resource usage on these nodes. > >What is the best way to troubleshoot th

Re: [Puppet Users] deleting users / purge their homedir

2011-09-08 Thread Christopher Wood
On Thu, Sep 08, 2011 at 04:48:09AM -0700, michaelkrieg wrote: > Hi, > > currently we're confused and quite unhappy with the Puppet user > management. It is possible to create users, make sure they're present > and so on. But: if you'd like to delete an user completely this seems > not be possible.

Re: [Puppet Users] deleting users / purge their homedir

2011-09-08 Thread Christopher Wood
probably worth mentioning > in any ticket that is raised. > > ken. > > On Thu, Sep 8, 2011 at 4:18 PM, Christopher Wood > wrote: > > On Thu, Sep 08, 2011 at 04:48:09AM -0700, michaelkrieg wrote: > >> Hi, > >> > >> currently we're confused and q

[Puppet Users] custom function puzzlement

2011-09-16 Thread Christopher Wood
This is using puppet 2.6.2 on Debian Squeeze. I am attempting to use a custom function in a module to return random numbers with the hostname (translated to a number) as the random seed. These random numbers can be random values for hour/minute cron, to avoid the herd-of-elephants effect when t

Re: [Puppet Users] custom function puzzlement

2011-09-16 Thread Christopher Wood
n.html#fqdnrand I might if I wanted simple random values, but I'm hoping to branch out eventually. Things like "random + 60" or "seed on the fqdn if it contains a certain string, otherwise seed on the hostname only". > On 11-09-16 02:21 PM, Christopher Wood wrote: > &

[Puppet Users] deliberately causing template failure?

2011-09-21 Thread Christopher Wood
How do I cause template failure in the erb ruby? I'd like the same kind of failure as for a template syntax issue, where puppet keeps going. I know I can use "exit" in a template, but I haven't yet tested if that will simply cause my puppet agent to exit altogether. Background: I'm trying to t

Re: [Puppet Users] deliberately causing template failure?

2011-09-21 Thread Christopher Wood
at 12:56 PM, Daniel Pittman ><[1]dan...@puppetlabs.com> wrote: > > On Wed, Sep 21, 2011 at 12:00, Christopher Wood > <[2]christopher_w...@pobox.com> wrote: > > How do I cause template failure in the erb ruby? I'd like the same > kind of failur

Re: [Puppet Users] Re: Variable number of variables in external node output...

2011-09-22 Thread Christopher Wood
On Thu, Sep 22, 2011 at 09:05:32AM -0700, Douglas Garstang wrote: > On Thu, Sep 22, 2011 at 5:57 AM, jcbollinger > wrote: > > > > > > On Sep 21, 6:34 pm, Nigel Kersten wrote: > >> On Wed, Sep 21, 2011 at 1:20 PM, Douglas Garstang > >> > >> wrote: > >> > All, > >> > >> > I have a situation where

Re: [Puppet Users] Re: Variable number of variables in external node output...

2011-09-22 Thread Christopher Wood
On Thu, Sep 22, 2011 at 09:23:56AM -0700, Douglas Garstang wrote: > On Thu, Sep 22, 2011 at 9:14 AM, Christopher Wood > wrote: > > On Thu, Sep 22, 2011 at 09:05:32AM -0700, Douglas Garstang wrote: > >> On Thu, Sep 22, 2011 at 5:57 AM, jcbollinger > >> wrote: > &

Re: [Puppet Users] Exec resource question

2011-09-27 Thread Christopher Wood
On Tue, Sep 27, 2011 at 10:52:24AM -0700, Damien Bridges wrote: > Hi All, > > Does anyone know how to add bash code to the exec resource? I was > thinking I could add it to the command section. I thought I could run > the code after I put the link command and options in. However, it > didn't wo

Re: [Puppet Users] Hostname fact doesn't handle hostnames with periods

2011-09-29 Thread Christopher Wood
On Thu, Sep 29, 2011 at 12:25:23PM +1000, Doug Balmer wrote: >I raised a bug earlier [1]https://projects.puppetlabs.com/issues/9766 >which could be a can of worms. >My opinion is, facter has a bug and needs (eventual) fixing even if it >causes problems for some. There is a reason we

Re: [Puppet Users] Unable to run puppetrun properly, puppet --test works fine

2011-09-30 Thread Christopher Wood
On Fri, Sep 30, 2011 at 03:47:56AM -0700, Jnimo wrote: > Hello. > > I have been using puppet for the last 10 months and everything is > working fine, however, at the moment we have a cron job running in the > clients that pull the configuration from the servers, we want to > change this and be abl

Re: [Puppet Users] How best to monitor puppet?

2011-10-04 Thread Christopher Wood
On Tue, Oct 04, 2011 at 01:47:17PM +, Marcus, Allan B wrote: > We want to use Nagios to monitor out puppet server so we can be notified > if it goes down. We are using Fusion Passenger and Apache on Red Hat. > > Any suggestion for what and how to monitor? Not so far using Nagios or anything.

Re: [Puppet Users] Re: "Could not find a default provider for ..." should not fail the agent run?

2011-10-05 Thread Christopher Wood
Without waving my ignorance around too much... does Matthias' issue fit run stages? This sounds like exactly what they were designed to solve: ensure certain things definitely happen before certain other things. On Wed, Oct 05, 2011 at 07:33:29AM -0700, Luke Bigum wrote: > Matthias, > > I had a

Re: [Puppet Users] Re: "Could not find a default provider for ..." should not fail the agent run?

2011-10-05 Thread Christopher Wood
gt; > Augeas Ruby bindings installed. I decidedly hadn't thought this through -- custom types/facts aren't part of the catalog, and run stages are only for catalog items. I certainly appreciate the explanation! > > On Oct 5, 3:36 pm, Christopher Wood > > wrote: &

[Puppet Users] usermod and cron and puppet

2011-10-17 Thread Christopher Wood
(Not actually a puppet problem, but could cause some surprise and consternation.) This is on Debian Squeeze with puppet 2.6.2. A quick note in the documentation would assist users: http://docs.puppetlabs.com/references/stable/type.html#cron http://docs.puppetlabs.com/references/stable/type.html#

Re: [Puppet Users] Managing entries in /etc/group (membership)

2011-10-17 Thread Christopher Wood
The user type allows you to specify supplemental groups (see the groups parameter). Is that what you were looking for? http://docs.puppetlabs.com/references/stable/type.html#user On Mon, Oct 17, 2011 at 03:04:26PM -0700, Forrie wrote: > I have a requirement to manage membership to groups in /etc

Re: [Puppet Users] Re: Managing entries in /etc/group (membership)

2011-10-17 Thread Christopher Wood
ed with it. I had thought there was a > function to work with this, I could be mistaken. > > > > On Oct 17, 6:18 pm, Christopher Wood > wrote: > > The user type allows you to specify supplemental groups (see the groups > > parameter). Is that what you were looking f

Re: [Puppet Users] Re: Managing entries in /etc/group (membership)

2011-10-17 Thread Christopher Wood
-0400, Christopher Wood wrote: > If you're using ldap, why not handle groups there? > > On Mon, Oct 17, 2011 at 03:48:33PM -0700, Forrie wrote: > > I want to manage the membership of the /etc/group entry -- this is > > just until we get things moved into LDAP -- so there aren&

Re: [Puppet Users] Better solution for puppet SVN releases

2011-10-18 Thread Christopher Wood
I use two separate puppetmasters for lab and production. (The lab side has more of the "dratted commas" style of checkin.) Testing changes to one particular type of server is where virtualization really shines. You can spin up a scratch virtual machine with the same manifests as your target hos

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Christopher Wood
On Tue, Oct 18, 2011 at 08:21:34PM +, Dan White wrote: > Are there any exapmples out there that show an intelligent way to do this ? http://docs.puppetlabs.com/references/stable/type.html#service That makes it sound like as long as you have the right init script (or platform-specific variant

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Christopher Wood
ig ("monit reload") Then monit starts the service on its next check run and monitors the service. However, writing all that, it sounds like you might be better off creating RPMs on a staging machine and running your own internal yum repository. It's far easier to upgrade an RPM

Re: [Puppet Users] Moving a puppet client is not as simple as I had hoped

2011-10-28 Thread Christopher Wood
I'm assuming that you have a puppet manifest describing a machine's function and you want the same function under a new name. Why not set up a new host with the new name and the same function, and remove the old machine from service? Obviously I have a certain bias, but when puppet can set up my

Re: [Puppet Users] organizing Ruby DSL manifests

2011-11-01 Thread Christopher Wood
This might help you: http://docs.puppetlabs.com/learning/ Lots of people seem to have a structure so that /etc/puppet/manifests/site.pp does this: import "nodes/*" And then your node definitions are in separate files in /etc/puppet/manifests/nodes. Of course, each to their own. Maybe you like

Re: [Puppet Users] help with err: Could not find node

2011-11-01 Thread Christopher Wood
At the top of your email: Could not find node 'puppet.mydomain.com' At the bottom of your email: node default { } node basenode { } node 'puppet-client0.mydomain.com' inherits basenode { } Does it work when you explicitly define this node? node 'puppet.mydomain.com' { } On Tue, Nov 01, 2011

Re: [Puppet Users] Re: help with err: Could not find node

2011-11-01 Thread Christopher Wood
You may have file permission issues: returned 126: /usr/bin/env: /root/puppet-dashboard/bin/external_node: Permission denied > On Nov 1, 4:38 pm, Christopher Wood > wrote: > > At the top of your email: > > > > Could not find node 'puppet.mydomain.com' >

Re: [Puppet Users] organizing Ruby DSL manifests

2011-11-01 Thread Christopher Wood
On Tue, Nov 01, 2011 at 04:17:41PM -0500, neubyr wrote: > On Tue, Nov 1, 2011 at 9:53 AM, Christopher Wood > wrote: > > This might help you: > > > > http://docs.puppetlabs.com/learning/ > > > > Lots of people seem to have a structure so that > &g

Re: [Puppet Users] Re: What's the canonical way to enforce permissions/ownership on a directory subtree?

2011-11-02 Thread Christopher Wood
It's worth mentioning that find -exec this way forks a separate copy of find for each file. You'll notice how much slower this is on a really large set of files (possibly larger than yours). If you have a recursion-capable chown it's quicker to use chown -R. On Wed, Nov 02, 2011 at 01:30:04AM -

Re: [Puppet Users] puppet agent writing on /var/log/messages

2011-11-02 Thread Christopher Wood
On Wed, Nov 02, 2011 at 11:45:11AM -0700, Kanishka Hettiarachchi wrote: > Hello all, > > Have noticed puppet agent continue to write agent runtime output to / > var/log/messages, although $vardir, logdir default to /var/lib/puppet/ > log, agent run logs keep getting writtent to system messages fil

Re: [Puppet Users] can we alter the 30-min run time?

2011-11-03 Thread Christopher Wood
(splay inline) On Thu, Nov 03, 2011 at 08:38:39AM -0700, Nigel Kersten wrote: >On Thu, Nov 3, 2011 at 8:36 AM, Jo Rhett <[1]jrh...@netconsonance.com> >wrote: > > For a long time it appeared that run cycles were fairly balanced -- a > few every 30 seconds over the 30 minute perio

Re: [Puppet Users] can we alter the 30-min run time?

2011-11-03 Thread Christopher Wood
On Thu, Nov 03, 2011 at 12:41:50PM -0700, Jo Rhett wrote: >Nigel, As you've said, the time chosen for the run cycle will be >consistent.  All of these settings are already set -- this isn't a >question of how to change how often to run, it's how to affect the chosen >runtime? I tho

Re: [Puppet Users] Re: What's the canonical way to enforce permissions/ownership on a directory subtree?

2011-11-04 Thread Christopher Wood
On Thu, Nov 03, 2011 at 10:39:29PM -0700, Robert Atkins wrote: > On Nov 2, 7:33 pm, Christopher Wood > wrote: > > It's worth mentioning that find -exec this way forks a separate copy of > > find for each file. You'll notice how much slower this is on a really large

Re: [Puppet Users] Yum questions

2011-11-04 Thread Christopher Wood
On Fri, Nov 04, 2011 at 02:19:08PM -0700, Sam Roza wrote: >So I use createrepo to make a local repo somewhere-for instance, the >puppet server-and then use that to do the install? >Why doesn't puppet support all of yum features? I'll venture a guess that it's for the same reason that y

Re: [Puppet Users] Using a defined function in another class?

2011-11-08 Thread Christopher Wood
Off the top of my head, untested: /etc/puppet/modules/sandbox/manifests/one.pp class sandbox::one { include sandbox::two testfn { test:} } /etc/puppet/modules/sandbox/manifests/two.pp class sandbox::two { define testfn () { notify {foo: } } } On Tue, Nov 08, 2011 at 09:31:57AM -0500

Re: [Puppet Users] Re: How does puppet copy files?

2011-11-13 Thread Christopher Wood
On Sun, Nov 13, 2011 at 02:59:45AM -0800, Dmitry wrote: > > > On Nov 11, 9:46 pm, Peter Meier wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > > When agent notices that master.passwd should be refreshed, how > > > exactly does copy process happen? Is it atomic (e.g. fetch to

Re: [Puppet Users] can we alter the 30-min run time?

2011-11-15 Thread Christopher Wood
(Without jumping too hard in the middle of your conversation... inline.) On Tue, Nov 15, 2011 at 11:30:40AM -0800, Jo Rhett wrote: >On Nov 5, 2011, at 9:42 AM, Nigel Kersten wrote: > > On Thu, Nov 3, 2011 at 12:41 PM, Jo Rhett <[1]jrh...@netconsonance.com> > wrote: > >Nigel

Re: [Puppet Users] Editing a variable defined in the same scope

2011-11-15 Thread Christopher Wood
On Tue, Nov 15, 2011 at 01:42:24PM -0800, Justin Lloyd wrote: >I tried the following (names changed to protect the innocent and guilty): > >class myclass ( $param ) { > >��� $myvar = [ "foo", "bar" ] > >��� if $param == "special" { >��� $myvar += [ "blah" ] >��� } >

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Christopher Wood
On Tue, Nov 15, 2011 at 04:40:29PM -0800, Matthew O'Connor wrote: > Hi all, > > I'm working thru the tutorial (http://docs.puppetlabs.com/learning/ > manifests.html) using the VM provided (http://www.puppetlabs.com/ > downloads/learning/learn_puppet_centos_ovf.2011.07.15.tar.bz). When > asked to w

Re: [Puppet Users] working thru tutorial

2011-11-16 Thread Christopher Wood
On Wed, Nov 16, 2011 at 08:09:11PM -0700, Matthew O'Connor wrote: >Hm, I hadn't thought of that. > >Do you have a time where one instance of Puppet would manage itself - >versus managing another running copy of Puppet? I do this. A virtual machine template is configured with a puppet.

Re: [Puppet Users] Multiple variables in a file path?

2011-11-17 Thread Christopher Wood
On Thu, Nov 17, 2011 at 09:04:09AM -0800, Jon Davis wrote: >I'm trying to use puppet to setup my apache v-hosts. I want to make sure >the files are in order so my puppet statement is this: >� � � � file { "apache-vhost-$name": >� � � � � � � � path � �=> "/etc/apache2/sites-enabled/

  1   2   3   4   5   >