[Puppet Users] facter values in upper case

2010-05-28 Thread Adam Winberg
Hi, facter variables typically have values in lower case. We are looking into moving to puppet for our config administration and are currently using a system where we do file name matching dependent on specific suffixes - for example a file named *--LAPTOP will only be deployed on machines tagged

Re: [Puppet Users] facter values in upper case

2010-05-28 Thread Ohad Levy
you can use inline_template to sanitize your values.. e.g.: $my_type = inline_template(%= type.upcase % Ohad On Fri, May 28, 2010 at 2:44 PM, Adam Winberg adam.winb...@gmail.comwrote: Hi, facter variables typically have values in lower case. We are looking into moving to puppet for our

RE: [Puppet Users] Puppet Labs Announces Puppet Forge, a Central Repository for Puppet Modules

2010-05-28 Thread Gabriel - IP Guys
Haha! So much for my purchase of puppetstrings.net! I guess I can scrap the crappy code I had put together, too. :-P --Paul [Mr Gabriel Says ...] Then maybe grab a few guys from this list, and get them to help you transfer everything to puppetforge :) Content, content content, any takers?

Re: [Puppet Users] Re: SuSE and zypper

2010-05-28 Thread Alpár Török
2010/5/28 jb jeffb...@gmail.com: looks like a typo/omission.  Add:    commands :zypper = /usr/bin/zypper to zypper.rb or change :rub to :zypper would probably be the right thing to do? Yes, that was actually fixed. Check out http://projects.puppetlabs.com/issues/3802. -- You received

Re: [Puppet Users] facter values in upper case

2010-05-28 Thread Adam Winberg
ok, interesting! however i cant make it work: $my_type = inline_template(%= type.upcase %) notify { type is set to $my_type:; } and log output on client: puppetd[13739]: type is set to Notebook i was expecting to see NOTEBOOK there, but no luck. I'm new to puppet and my ruby is rubbish, am i

Re: [Puppet Users] facter values in upper case

2010-05-28 Thread Ohad Levy
you are right, it seems that type is a reserved word in ruby :( using another variable name should work. I'll play and see if I can come up with something On Fri, May 28, 2010 at 4:13 PM, Adam Winberg adam.winb...@gmail.comwrote: ok, interesting! however i cant make it work: $my_type =

Re: [Puppet Users] Puppet Labs Announces Puppet Forge, a Central Repository for Puppet Modules

2010-05-28 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Lathrop wrote: Haha! So much for my purchase of puppetstrings.net! I guess I can scrap the crappy code I had put together, too. :-P Well if you have features you had done or had in mind - we'd welcome the input. Cheers James -BEGIN

Re: [Puppet Users] facter values in upper case

2010-05-28 Thread Daniel Pittman
Ohad Levy ohadl...@gmail.com writes: you are right, it seems that type is a reserved word in ruby :( Just don't try using the variable 'fork' in your templates. ;) using another variable name should work. Theoretically you might be able to use a lookup function to get the value, but

Re: [Puppet Users] facter values in upper case

2010-05-28 Thread Adam Winberg
way to make it work: $my_type = $type $my_type = inline_template(%= my_type.upcase %) notify { type is set to $my_type:; } thanks for your help! //Adam On 28 May 2010 13:47, Daniel Pittman dan...@rimspace.net wrote: Ohad Levy ohadl...@gmail.com writes: you are right, it seems that type

[Puppet Users] package question

2010-05-28 Thread ed-rfmd
The ICAClient package requires the 32 bit versions of libXp and openmotif. I have this class defined: class icaclient{ case $architecture { i386: { package { ICAClient: provider = rpm, source = $kickstart/ICAClient/RHEL5/

Re: [Puppet Users] package question

2010-05-28 Thread Thomas Bellman
On 2010-05-28 15:19, ed-rfmd wrote: package { libXp-32bit: provider = rpm, source = $kickstart/ICAClient/RHEL5/ libXp-1.0.0-8.1.el5.i386.rpm, ensure = installed, } package { openmotif-32bit:

[Puppet Users] Re: package question

2010-05-28 Thread ed-rfmd
That took care of it . I changed the names to libXp.i386 and openmotif.i386. I was not using the package name properly, I was using it as a generic identified instead of the actual package name. Thanks again, Ed On May 28, 9:25 am, Thomas Bellman bell...@nsc.liu.se wrote: On 2010-05-28 15:19,

Re: [Puppet Users] Question about templates from variables

2010-05-28 Thread James Cammarata
This seems like it's a bug with plusassignment to me, can you open a ticket on this? I had a moment of inspiration this morning and figured out what I needed to do to get this working the way I wanted: class foo { $file_content = template('foo/foo-base','foo/foo-bar') file { /etc/foo:

[Puppet Users] combining arrays in site.pp

2010-05-28 Thread Kenton Brede
I'm running 0.25.4. What I'd like to do is place an array of users under the default node. These users rarely change. Then within each subsequent node, have another array of users added to the original array. These users change more frequently. These users are then be snarfed into a template.

Re: [Puppet Users] Toplevel domain and facter

2010-05-28 Thread Joe McDonagh
On 05/27/2010 02:51 PM, Klaus Ethgen wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Am Do den 27. Mai 2010 um 17:57 schrieb Nigel Kersten: You'll need to be logged in. Ah. Bad. I have no account there and I dislike the idea to create a account anywhere to just report a

Re: [Puppet Users] Nagios checks

2010-05-28 Thread Joe McDonagh
On 05/27/2010 02:37 PM, Peter Berghold wrote: Has anybody out there written a custom check for Nagios to determine if puppetd and/or puppetmasterd is running? I am considering writing one if not. -- You received this message because you are subscribed to the Google Groups Puppet Users

Re: [Puppet Users] Toplevel domain and facter

2010-05-28 Thread Joe McDonagh
Rather than continue with this sort of semi-argument, I've gone and created an issue in redmine, #3909. -- -- Joe McDonagh Operations Engineer AIM: YoosingYoonickz IRC: joe-mac on freenode When the going gets weird, the weird turn pro. -- You received this message because you are subscribed to

Re: [Puppet Users] combining arrays in site.pp

2010-05-28 Thread Michael DeHaan
On Fri, May 28, 2010 at 11:57 AM, Kenton Brede kbr...@gmail.com wrote: I'm running 0.25.4.  What I'd like to do is place an array of users under the default node.  These users rarely change.  Then within each subsequent node, have another array of users added to the original array.  These

Re: [Puppet Users] External Nodes Require a Forklift?

2010-05-28 Thread Joe McDonagh
What's the state of storedconfigs these days? Doug. In what sense? I am using it right now for other pieces of infrastructure, works pretty nicely but I am not exactly large scale. What did you want to accomplish with it? -- -- Joe McDonagh Operations Engineer AIM: YoosingYoonickz

Re: [Puppet Users] Question about templates from variables

2010-05-28 Thread Daniel Pittman
James Cammarata j...@sngx.net writes: This seems like it's a bug with plusassignment to me, can you open a ticket on this? I had a moment of inspiration this morning and figured out what I needed to do to get this working the way I wanted: [...] My primary motivation for this is something

Re: [Puppet Users] Question about templates from variables

2010-05-28 Thread Michael DeHaan
$template_list = [template1,template2,template3] content = template($template_list), Puppet has a split() function that splits a string into an array, that should do what you want there. template(split($template_list)) --Michael -- You received this message because you are subscribed to the

Re: [Puppet Users] Question about templates from variables

2010-05-28 Thread Michael DeHaan
On Fri, May 28, 2010 at 12:40 PM, Michael DeHaan mich...@puppetlabs.com wrote: $template_list = [template1,template2,template3] content = template($template_list), Puppet has a split() function that splits a string into an array, that should do what you want there.

Re: [Puppet Users] combining arrays in site.pp

2010-05-28 Thread Kenton Brede
On Fri, May 28, 2010 at 11:15 AM, Michael DeHaan mich...@puppetlabs.com wrote: On Fri, May 28, 2010 at 11:57 AM, Kenton Brede kbr...@gmail.com wrote: I'm running 0.25.4.  What I'd like to do is place an array of users under the default node.  These users rarely change.  Then within each

Re: [Puppet Users] Question about templates from variables

2010-05-28 Thread James Cammarata
On Sat, 29 May 2010 02:30:03 +1000, Daniel Pittman dan...@rimspace.net wrote: James Cammarata j...@sngx.net writes: This seems like it's a bug with plusassignment to me, can you open a ticket on this? I had a moment of inspiration this morning and figured out what I needed to do to get

[Puppet Users] accessing client certname in manifests?

2010-05-28 Thread Nigel Kersten
I mentioned we had a custom fact for the client certname in IRC the other day and someone poked fun at me as it's apparently built in. For the life of me I can't work out what variable it is. Anyone know? (our certnames bear no relationship to any other attribute, fqdn etc) -- nigel -- You

Re: [Puppet Users] accessing client certname in manifests?

2010-05-28 Thread Dan Bode
On Fri, May 28, 2010 at 11:52 AM, Nigel Kersten nig...@google.com wrote: I mentioned we had a custom fact for the client certname in IRC the other day and someone poked fun at me as it's apparently built in. if that's the case, then the following ticket needs to be closed.

Re: [Puppet Users] accessing client certname in manifests?

2010-05-28 Thread Nigel Kersten
On Fri, May 28, 2010 at 12:00 PM, Dan Bode d...@puppetlabs.com wrote: On Fri, May 28, 2010 at 11:52 AM, Nigel Kersten nig...@google.com wrote: I mentioned we had a custom fact for the client certname in IRC the other day and someone poked fun at me as it's apparently built in. if that's

Re: [Puppet Users] accessing client certname in manifests?

2010-05-28 Thread Carl Caum
I can't find it. I just use $fqdn mostly with the exception of a few DHCP boxes. On May 28, 2010, at 2:02 PM, Nigel Kersten wrote: On Fri, May 28, 2010 at 12:00 PM, Dan Bode d...@puppetlabs.com wrote: On Fri, May 28, 2010 at 11:52 AM, Nigel Kersten nig...@google.com wrote: I

Re: [Puppet Users] accessing client certname in manifests?

2010-05-28 Thread Nigel Kersten
On Fri, May 28, 2010 at 4:19 PM, James Turnbull ja...@lovedthanlost.netwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nigel Kersten wrote: I mentioned we had a custom fact for the client certname in IRC the other day and someone poked fun at me as it's apparently built in. For