[Puppet Users] Bootstrapping puppet using... puppet

2008-11-13 Thread Juri Rischel Jensen
Hi All In the process of refactoring my whole puppet setup, I got to build a new puppetmaster and I chose to go with Phusion Passenger instead of my existing Mongrel based setup. To do that, I wrote a puppet manifest that pretty much automates what you can see on http://reductivelabs.com/t

[Puppet Users] Re: use of arrays with templates

2008-11-13 Thread Nigel Kersten
On Wed, Nov 12, 2008 at 4:28 PM, Luke Kanies <[EMAIL PROTECTED]> wrote: > > On Nov 10, 2008, at 10:43 AM, Trevor Vaughan wrote: > >> I've found that I have to restart the puppetmaster in various >> situations that I don't think it should need. >> >> Generally, I restart it if: >> >> 1) I've mucked

[Puppet Users] Re: wildcards in file type?

2008-11-13 Thread joe
I can see myself being in the minority on this. I think it comes from my intense aversion toward data replication :) On Nov 13, 3:05 pm, Luke Kanies <[EMAIL PROTECTED]> wrote: > On Nov 13, 2008, at 11:53 AM, RijilV wrote: > > > > > 2008/11/13 Luke Kanies <[EMAIL PROTECTED]> > > > On Nov 12, 2008

[Puppet Users] Re: Getting started on puppet transition

2008-11-13 Thread paul matthews
> > > I would strongly advise btw, reading the Understanding Puppet book and > all > > the references in the right hand bar of the wiki (e.g resources ref, > types > > ref, style guides etc) but it sounds like in such a security conscious > > environment as yours puppet definitely fits the bill as

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
One more tidbit of information: debug: PATH = /usr/bin:/usr/sbin:/sbin:/usr/ops/bin debug: suitableproviders = ldap, directoryservice, pw, netinfo, groupadd debug: false value when expecting true debug: file /usr/bin/dscl does not exist debug: file /usr/sbin/pw does not exist debug: file nireport

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
On Nov 13, 9:38 pm, "Andrew Shafer" <[EMAIL PROTECTED]> wrote: > Hmm, what does the ENV say the user is?  Does that user have appropriate > permissions on the files in the PATH? > Here's the ENV dumped from within puppetd running from cron: warning: LANG = C warning: HOME = /root warning: LOGNAM

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread Andrew Shafer
Hmm, what does the ENV say the user is? Does that user have appropriate permissions on the files in the PATH? The errors mean for some reason the Ruby runtime environment can't access those executables. Not sure why... On Thu, Nov 13, 2008 at 1:35 PM, martin <[EMAIL PROTECTED]> wrote: > > > >

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
On Nov 13, 9:07 pm, Luke Kanies <[EMAIL PROTECTED]> wrote: > As Andrew says, the providers must be considered unsuitable because   > they're missing executables. > But the executables are in the PATH, even in the incorrect one. > You *can* set the path in puppet.conf; try that. > I fixed the v

[Puppet Users] Re: Weird custom type behaviour

2008-11-13 Thread Thom May
On 11/13/08, Luke Kanies <[EMAIL PROTECTED]> wrote: > > On Nov 13, 2008, at 11:42 AM, Thom May wrote: > > > > > On 11/12/08, Luke Kanies <[EMAIL PROTECTED]> wrote: > >> > >> On Nov 9, 2008, at 8:14 PM, Thom May wrote: > >> > >>> Hey, > >>> I have a very trivial parsedfile based type - http

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread Luke Kanies
On Nov 13, 2008, at 11:04 AM, martin wrote: > > I'm one step closer now :) > > It turns out that facter fiddles with the PATH - I've filed bug #1745. > It sets the PATH to > /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin > > But it still doesn't explain why I get the "Could not find

[Puppet Users] Re: Weird custom type behaviour

2008-11-13 Thread Luke Kanies
On Nov 13, 2008, at 11:42 AM, Thom May wrote: > > On 11/12/08, Luke Kanies <[EMAIL PROTECTED]> wrote: >> >> On Nov 9, 2008, at 8:14 PM, Thom May wrote: >> >>> Hey, >>> I have a very trivial parsedfile based type - http://pastie.org/311146 >>> - that works fine when deployed and run under puppetd

[Puppet Users] Re: wildcards in file type?

2008-11-13 Thread Luke Kanies
On Nov 13, 2008, at 11:53 AM, RijilV wrote: > 2008/11/13 Luke Kanies <[EMAIL PROTECTED]> > > On Nov 12, 2008, at 4:51 PM, joe wrote: > > > > > That makes sense, though I would think if you have recurse => true > and > > a subscribe/notify, then checksumming should be enabled by default > in >

[Puppet Users] Re: Moving a file with Puppet

2008-11-13 Thread Luke Kanies
On Nov 13, 2008, at 7:06 AM, Leah wrote: > I wanted to move a file from one directory to another because my co- > worker didn't like where it was being put by puppet. I went into > puppet and changed the name parameter of the the file directive. I > then created a new file directive to delete t

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread Andrew Shafer
The suitable logic is trying to find those underlying commands and failing. If it can find the commands, suitable? will be true. On Thu, Nov 13, 2008 at 12:14 PM, martin <[EMAIL PROTECTED]> wrote: > > Minor correction: > it is suitableprovider() which returns an empty list, while it > successfu

[Puppet Users] Re: Influencing order

2008-11-13 Thread Luke Kanies
On Nov 13, 2008, at 2:21 AM, schickb wrote: > > I've found that it would simplify my configuration scripts if I had a > way to influence the order of operations beyond strict dependencies. > For example, I had to define a "group" instance with a hard-coded gid > and wanted the change to run befor

[Puppet Users] Re: wildcards in file type?

2008-11-13 Thread RijilV
2008/11/13 Luke Kanies <[EMAIL PROTECTED]> > > On Nov 12, 2008, at 4:51 PM, joe wrote: > > > > > That makes sense, though I would think if you have recurse => true and > > a subscribe/notify, then checksumming should be enabled by default in > > that scenario also. It may not be feasible dependin

[Puppet Users] Re: Change in the yaml file format.

2008-11-13 Thread Luke Kanies
On Nov 12, 2008, at 8:28 PM, Evan Hisey wrote: > >>> I noticed it because it broke the puppetview fact reporting. If >>> delete >>> this line puppetview is able to correctly report facts again. If >>> it si >>> a bug I'll make a bug report. If it is correct, then I will try and >>> patch pupp

[Puppet Users] Re: wildcards in file type?

2008-11-13 Thread Luke Kanies
On Nov 12, 2008, at 4:51 PM, joe wrote: > > That makes sense, though I would think if you have recurse => true and > a subscribe/notify, then checksumming should be enabled by default in > that scenario also. It may not be feasible depending on the internal > workings of puppet, but that would s

[Puppet Users] Re: Weird custom type behaviour

2008-11-13 Thread Thom May
On 11/12/08, Luke Kanies <[EMAIL PROTECTED]> wrote: > > On Nov 9, 2008, at 8:14 PM, Thom May wrote: > > > Hey, > > I have a very trivial parsedfile based type - http://pastie.org/311146 > > - that works fine when deployed and run under puppetd -t. However, > > when being run by the daemonized

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
Minor correction: it is suitableprovider() which returns an empty list, while it successfully loads all providers, but provider.suitable? always evaluates to false. cheers, /Martin On Nov 13, 8:04 pm, martin <[EMAIL PROTECTED]> wrote: > I'm one step closer now :) > > It turns out that facter fid

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread martin
I'm one step closer now :) It turns out that facter fiddles with the PATH - I've filed bug #1745. It sets the PATH to /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin But it still doesn't explain why I get the "Could not find default provider for ...". I've found out that suitablepro

[Puppet Users] Re: Moving a file with Puppet

2008-11-13 Thread Leah Fisher
Thanks for the replies. I just wanted to verify there wasn't a better way to do this. Hopefully it shouldn't happen very often. On 11/13/08, Andrew Shafer <[EMAIL PROTECTED]> wrote: > Moving a bunch of config files around like this is going to be clumsy > without Puppet. > > If you have to do t

[Puppet Users] Re: Moving a file with Puppet

2008-11-13 Thread Andrew Shafer
Moving a bunch of config files around like this is going to be clumsy without Puppet. If you have to do this a lot you could parametrize a define, and I would get rid of the ensure => absent once the changes have propagated. $0.02 On Thu, Nov 13, 2008 at 10:51 AM, Evan Hisey <[EMAIL PROTECTED]>

[Puppet Users] Re: Moving a file with Puppet

2008-11-13 Thread Evan Hisey
On Thu, Nov 13, 2008 at 9:06 AM, Leah <[EMAIL PROTECTED]> wrote: > > I wanted to move a file from one directory to another because my co- > worker didn't like where it was being put by puppet. I went into > puppet and changed the name parameter of the the file directive. I > then created a new f

[Puppet Users] Re: ldapmodfiy via exec

2008-11-13 Thread Russell Miller
On Thu, Nov 13, 2008 at 8:55 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > I'm trying to execute an ldap modify command but have run into issues > with multiple lines and can't seem to find a happy medium. Any ideas ? > I just created a script that does all of the ldap server setup for me.

[Puppet Users] ldapmodfiy via exec

2008-11-13 Thread [EMAIL PROTECTED]
I'm trying to execute an ldap modify command but have run into issues with multiple lines and can't seem to find a happy medium. Any ideas ? exec {"ipa_modify_username_length": command => "/usr/bin/ldapmodify -h $host_name -p 389 - Y GSSAPI

[Puppet Users] Re: Trouble running puppet from cron

2008-11-13 Thread Andrew Shafer
I don't see how puppet changes the env. Try printing the ENV from puppetd on one of the systems that are failing. ENV is a global hash, you should be able call each with a block to print to the logs. If we verify that the runtime has the appropriate user and path, that will be confusing, but if

[Puppet Users] Re: Setting location-specific variables

2008-11-13 Thread RijilV
2008/11/13 Mark Drayton <[EMAIL PROTECTED]> > At the moment I'm using a pretty clumsy-feeling set of custom facts. I > have a $location fact that determines the location from $domain and > then installs a specific /etc/facts.txt file containing the location- > specific settings, which are turned i

[Puppet Users] Re: Setting location-specific variables

2008-11-13 Thread Andrew Shafer
+1 for external nodes This allows you to dynamically add variables to the classes when they are evaluated. On Thu, Nov 13, 2008 at 8:02 AM, Ohad Levy <[EMAIL PROTECTED]> wrote: > I solve similar problem using the parameter option in external nodes. > > cheers, > Ohad > > > On Thu, Nov 13, 2008

[Puppet Users] Moving a file with Puppet

2008-11-13 Thread Leah
I wanted to move a file from one directory to another because my co- worker didn't like where it was being put by puppet. I went into puppet and changed the name parameter of the the file directive. I then created a new file directive to delete the old file, but I was wondering if there was a be

[Puppet Users] Re: Setting location-specific variables

2008-11-13 Thread Ohad Levy
I solve similar problem using the parameter option in external nodes. cheers, Ohad On Thu, Nov 13, 2008 at 7:47 PM, Mark Drayton <[EMAIL PROTECTED]> wrote: > > Hi there > > In common with many of you, we run various types of server > (webservers, mail gateways, etc) in several datacentres. I can

[Puppet Users] Re: puppet -0.24.5-1.el4.x86_64 sl4 and error: Could not retrieve catalog: Certificates were not trusted: block type is not 01

2008-11-13 Thread Arnau Bria
Solved: ]# puppetca --list Could not load confine test 'operatingsystem': No such file to load -- puppet/provider/confine/operatingsystem Could not load confine test 'operatingsystem': No such file to load -- puppet/provider/confine/operatingsystem Could not load confine test 'operatingsystem': N

[Puppet Users] Setting location-specific variables

2008-11-13 Thread Mark Drayton
Hi there In common with many of you, we run various types of server (webservers, mail gateways, etc) in several datacentres. I can't work out a clean way to configure location-specific variables in otherwise identically-configured servers. These location-dependent settings are used in many module

[Puppet Users] Re: Temporarily stopping a service

2008-11-13 Thread schickb
I'll partially answer my own question... a script would be better than chained execs. But I still think it would be handy to have a way to "notify" services to start or stop rather than just restart. I also think it would be handy to have a "precondition" parameter which is like a notify, but bef

[Puppet Users] Re: installing rpms in order

2008-11-13 Thread Peter Meier
Hi > I'm guessing i've hit the parallel features of puppet, but just > checking to see if there is a way to execute the array in element > order? for this use the metaparameters like require and before. > The rpms i'm installing are dependent on each other > > I'm doing - > > $ganglia = $arch

[Puppet Users] Influencing order

2008-11-13 Thread schickb
I've found that it would simplify my configuration scripts if I had a way to influence the order of operations beyond strict dependencies. For example, I had to define a "group" instance with a hard-coded gid and wanted the change to run before most other tasks to avoid collisions with automatical

[Puppet Users] installing rpms in order

2008-11-13 Thread Matt
I'm guessing i've hit the parallel features of puppet, but just checking to see if there is a way to execute the array in element order? The rpms i'm installing are dependent on each other I'm doing - $ganglia = $architecture ? { "i386" => [ "libconfuse-2.5-3.i386.rpm", "libganglia-3_1

[Puppet Users] Temporarily stopping a service

2008-11-13 Thread schickb
Several times I've found the need to perform a task while a service was offline. For example, I wanted to replace the master "mysql" database for MySQL. The only way I've found to handle this currently is with a cascade of "refreshonly" execs: The first exec takes the service offline, second copie

[Puppet Users] Re: Does mtime checksum work?

2008-11-13 Thread schickb
In case anyone finds this thread, see http://tinyurl.com/6mupkc for info --~--~-~--~~~---~--~~ 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 unsu

[Puppet Users] puppet -0.24.5-1.el4.x86_64 sl4 and error: Could not retrieve catalog: Certificates were not trusted: block type is not 01

2008-11-13 Thread Arnau Bria
*Sorry for breaking the treat Andrew Shafer said: > The error is telling you that the certificate isn't trusted. > You just rebuilt the server, but the client is the same? no, I rebuilt both... but the ssl dir was the same. > You should blow away the certs on the client and get

[Puppet Users] Re: Default user password

2008-11-13 Thread Peter Meier
Hi > Anyone willing to open that as a feature request? #1744 [1] cheers pete [1] http://projects.reductivelabs.com/issues/show/1744 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post t