Re: [Puppet Users] Extlookup in external nodes

2010-12-06 Thread Carl.caum
If you're using 2.6 you can make a pure ruby class that will look at each variable and see if its value is a function if it is, call that function. However, I don't know how to replace the value of the variable with what re function returns. You can get the basic concept I'm talking about here:

Re: [Puppet Users] Re: Local puppet forge repository

2010-11-01 Thread Carl.caum
On Nov 1, 2010, at 7:18 AM, Oliver Hookins wrote: > On Oct 18, 10:22 pm, Carl Caum wrote: >> Is there a way to run your own puppetforgerepository? We are interested >> versioning and distributing our modules the same way we do our custom RPMs. >> We want to use puppet-module-tool and config

Re: [Puppet Users] Exec in 2.6 and environment variables

2010-10-13 Thread Carl.caum
Well yes, that's true. But I wanted to use an example variable that I knew all systems would have. On Oct 13, 2010, at 5:16 PM, Patrick wrote: > > On Oct 13, 2010, at 2:16 PM, Carl Caum wrote: > >> Hello everyone. I'm running in to trouble setting/changing environment >> variables for exec

Re: [Puppet Users] Re: serialized or limited parallelism

2010-10-11 Thread Carl.caum
Take a look at mcollective. You can query your facter facts on all your systems. You can also use puppetcommanderd, an mcollective add on, that will schedule runs of your clients matching a filter (filter on facts or classes) spread out over a specified time period. On Oct 11, 2010, at 8:44 P

Re: [Puppet Users] Parsing yaml report locallly

2010-08-22 Thread Carl.caum
You could always have a script that queries the puppetmaster or whatever your report server is. I'd just use https. Have some cgi script that grabs the latest yaml file for the requesting host and then returns it. The requesting script on the client can then parse it and do whatever with it. You

Re: [Puppet Users] Puppet Package Management - how far do you go?

2010-05-28 Thread Carl.caum
Personally I like to increase my chances of getting to the bar early. If you know you're going to want to build the box again, automate it. If you need to ensure the box looks a certain way, automate it. If it takes the same amount of time to automate it as it does to not automate it, autom

Re: [Puppet Users] Join AD using Likewise

2010-02-10 Thread Carl.caum
I think we all end up using an exec somewhere to bind to AD. I personally use samba with LDAP and kerberos instead of Likewise, but to each their own. What you can do is create a domain account that only has permissions to create and destroy computer objects in a specific OU in AD. I have

Re: [Puppet Users] recurse => true

2010-01-25 Thread Carl.caum
Try adding ensure => directory To your File[/etc] resource. On Jan 25, 2010, at 4:25 PM, Anchi Zhang wrote: My simple site.pp below would work. node default { include solaris } class solaris { file { "/etc/motd": source => "puppet:///files-solaris/etc/motd",

[Puppet Users] Re: Puppet Expert Directory

2009-11-01 Thread Carl.caum
I really like this idea. On Nov 1, 2009, at 5:12 PM, lyric wrote: > > Hello Puppet Friends, > > wouldn't it be nice to have a Puppet expert directory with profiles > and services they offer. > > I want to use Puppet but I am not an administration expert, so it > would be nice to be able to cont

[Puppet Users] Re: timeout settings

2009-10-14 Thread Carl.caum
exec { "foo": command => "wget http://foo/bar.tgz";, timeout => 0; } The type reference documentation describes the timeout parameter. On Oct 14, 2009, at 5:45 AM, pinoyskull wrote: > > Hi, > > Is there a way to increase the timeout settings in puppet when it > comes > to downloadi

[Puppet Users] Re: Mac OS X plist resource type spec

2009-10-12 Thread Carl.caum
How about merge_exclusive? It shows we want to merge all known entries in the defined dict/array, but also shows we exclusively want those defined. On Oct 12, 2009, at 10:58 PM, Crawford Kyle wrote: > Carl, Nigel, > > Thanks for working on this. It looks great and will be a valuable > add

[Puppet Users] Re: Puppet Configuration Versioning

2009-10-10 Thread Carl.caum
I was looking at this option last nigh and perhaps I'm just dense, but I'm not sure how it will benefit me. In theory, I know which version I have in production/testing/dev by which subversion/git tag I have checked out on the master. Am I missing the point? Can someone provide an example when this