[Puppet Users] Best practices for building a file from distributed data.

2009-07-09 Thread Daniel Pittman
G'day. I am wondering what the current best practice for building a single file out of distributed fragments is with puppet. Specifically, my problem: 1. Install munin-node on arbitrary machines. 2. Install 'munin.conf' as a single file on one machine, containing a configuration stanza for e

[Puppet Users] Re: puppet variables

2009-07-09 Thread Scott Smith
Allan Marcus wrote: > What variables are available in a module. What variables are available in a Puppet manifest. > Are facts allowed in the puppet.conf file? Have you tried? -scott --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Puppet Users] Re: Workstations and Certs

2009-07-09 Thread Allan Marcus
Putting it all together, here's what I have for cert management on Macs. 1) A launchd job to launch puppet every hour 2) a script on the client to determine a unique attribute of the Mac and use it for cert name 3) a CGI on the server to clean a cert if the machine was re-imaged 3a) note: alter

[Puppet Users] Re: Help! Templates, definitions, and arrays, oh my!

2009-07-09 Thread Joel Heenan
I think you are trying to use a multidimensional array within puppet. I don't know the best way to do this, but I have used the following hack: $ips_vlans = ['1.2.3.7/100', '1.2.3.8/200'] then within the template doing: <% ips_vlans.each do |ipv| -%> <% ip = ipv.split("/")[0] -%> <% vlan = ipv.

[Puppet Users] Are tags inherited through nodes or what is a good way to tag lots of nodes at once?

2009-07-09 Thread Joel Heenan
I wanted to do class packages { if tagged("test") { package { "ourapp": ensure => "testversion.xxx" } } } then have node base-test-node { tag("test") } node test01 inherits base-test-node { include packages } but this does not appe

[Puppet Users] Re: puppet variables

2009-07-09 Thread Allan Marcus
What variables are available in a module. Say for example $name is the name of the module, right? What is this kind of variable called - a metadata variable? Is there a list of such variables? Are facts allowed in the puppet.conf file? Are there preset variables for the puppet .conf file? A

[Puppet Users] Re: puppet variables

2009-07-09 Thread Roy Nielsen
Hello, So - it looks like the variables in /etc/puppet/puppet.conf are also available? Adding facts isn't too bad :) Regards, -Roy Bjørn Dyresen wrote: > > On Jul 9, 2009, at 9:20 PM, David Schmitt wrote: > >> >> Roy Nielsen wrote: >>> Hello, >>> >>> Is there a list of variables somewhere t

[Puppet Users] Re: puppet variables

2009-07-09 Thread Felix Schäfer
Am 09.07.2009 um 21:20 schrieb David Schmitt: > most available variables are defined by facter, which you can run on > the > commandline to see which vars have what values. Not completely, as IIRc puppet brings a few facts of its own that facter won't show when run on its own on the CLI. R

[Puppet Users] Re: puppet variables

2009-07-09 Thread Bjørn Dyresen
On Jul 9, 2009, at 9:20 PM, David Schmitt wrote: > > Roy Nielsen wrote: >> Hello, >> >> Is there a list of variables somewhere that are available to >> puppet? I >> know a few are: >> >> $environment >> $name >> $modulepath >> $server > > most available variables are defined by facter, which y

[Puppet Users] Re: puppet variables

2009-07-09 Thread David Schmitt
Roy Nielsen wrote: > Hello, > > Is there a list of variables somewhere that are available to puppet? I > know a few are: > > $environment > $name > $modulepath > $server most available variables are defined by facter, which you can run on the commandline to see which vars have what values.

[Puppet Users] Re: Recursively templating files in a directory

2009-07-09 Thread David Schmitt
Pete Emerson wrote: > Suppose I have 100 files distributed recursively: > > file { "/var/sample": > source => "puppet:///files/sample", > ensure => directory, > recurse => true > } > > What I'd like to do is have all files inside the direct

[Puppet Users] Re: Workstations and Certs

2009-07-09 Thread Allan Marcus
certname in puppet have to be lowercase, that was probably your issue. Here's the script I'm going to use to execute puppet on my macs. I will have a launchd job that executes the script every hour. You might be able to extract what you need from this script --- Thanks, Allan Marcus 505-667

[Puppet Users] Re: Workstations and Certs

2009-07-09 Thread Allan Marcus
The code is incredibly insecure. All a bad guy has to do is add %3becho%20test%20%3E%20/tmp/test to the url and a file call test is written to the /tmp. Of course a really bad guy would know how to exploit a system call in a CGi much better than me. My ruby is very very limited, so if you c

[Puppet Users] Re: Workstations and Certs

2009-07-09 Thread Kurt Engle
Allan, thanks for all your help and suggestions with Mac scripts. I am getting closer to the configuration that I want. Thanks for the 'lingon' suggestion, makes life easier. I would like to force puppetd into using the hostname of the client device when requesting a cert from the puppetmaster. Is

[Puppet Users] puppet variables

2009-07-09 Thread Roy Nielsen
Hello, Is there a list of variables somewhere that are available to puppet? I know a few are: $environment $name $modulepath $server Thanks, -Roy Nielsen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet U

[Puppet Users] Re: Help! Templates, definitions, and arrays, oh my!

2009-07-09 Thread Gajillion
I fixed the first issue of the DEVICE name by modifying my template like so: <% if my_type == "vlan_secondary"%>DEVICE=<%=master + '.' + name%> <%else -%> DEVICE=<%=name %> <% end -%> (I could have sworn I tried that before and it didn't work). Now, how do I map my IP addresses? Do I have to c

[Puppet Users] Help! Templates, definitions, and arrays, oh my!

2009-07-09 Thread Gajillion
Hi all, This little exercise is pointing out huge gaps in my Puppet/Ruby knowledge and I'm not sure how to get around it. I'm working on a module for writing interface files and everything works fine except for my "vlan" interface creation. Here's the snippet that's passed to my definition:

[Puppet Users] Re: cronjob every 15 minutes

2009-07-09 Thread Rupert
On Sat, Jul 4, 2009 at 6:34 PM, Joe McDonagh wrote: > > Macno wrote: > > You can do something like this > > > > cron { > > "getBroadcast": > > command => "/server/www-production/www.server.de/cli/ > > getBroadcastFromFtp.php", > > user=> root, > >

[Puppet Users] Re: Workstations and Certs

2009-07-09 Thread Sam Rowe
On Fri, Jul 3, 2009 at 9:12 AM, Gary Larizza wrote: > > I love where this thread is going, I too share in this problem. > > Kurt:  Puppet is still being run on the client because the client is > using a cached config (am I right on this guys?). > > I love the scripted ssh key, but ALSO love the PH