Re: [Puppet Users] Re: Managing sudo via puppet using #includedir

2011-08-03 Thread Dan Carley
On 3 August 2011 07:07, Iain Sutton wrote: > To add a newline, put the closing double quote on a new line. > > content => "zabbix ALL=NOPASSWD: /var/lib/zabbix/bin/start_puppet", > > becomes > > content => "zabbix ALL=NOPASSWD: /var/lib/zabbix/bin/start_puppet > ", > Or, cleaner IMHO: content =

Re: [Puppet Users] Re: setting the hostname automatically of EC2 puppet clients

2011-08-03 Thread Dan Carley
On 3 August 2011 03:14, edovale wrote: > If you are on ubuntu the I understand that you could set the hostname > using cloud-init like explained here: > https://help.ubuntu.com/community/CloudInit It's also possible to use cloud-init on EL based distros, as seen in the Amazon Linux AMI. I have

Re: [Puppet Users] Step by step guide to setting user passwords

2011-08-03 Thread Peter Meier
>> Can someone walk me through the steps of sending out a password to all >> my computers for user "student." > > I do this a lot: > > yes 'PASSWORD' | passwd username > > Then you can extract the password from /etc/shadow > > also see here: > > http://serverfault.com/questions/87874/how-shou

Re: [Puppet Users] pluginsync before catalogue?

2011-08-03 Thread Peter Meier
> Its my understanding the 'customfact1' fact is meant to be transferred > to the host as part of the pluginsync process before the catalogue is > rendered, but this doesn't seem to be happening on our new builds from > the above error. Yes it works exactyl that way. > Does anyone have any insigh

Re: [Puppet Users] pluginsync before catalogue?

2011-08-03 Thread Dan Carley
On 3 August 2011 04:38, josbal wrote: > Hi All, > > I have an issue with puppet where we are getting errors on some of our > new built servers where the catalogue is trying to render before > distributing custom facts that are required to render the catalogue > correctly. > > We are running puppe

[Puppet Users] Re: Step by step guide to setting user passwords

2011-08-03 Thread Ryan Conway
One more thing - Puppet will fail to set the password unless the libshadow gem is present, as this is required to work with shadow passwords. The failures due to this being missing weren't obvious if I remember back - you only get a warning that the user provider isn't able to manage the passwords

Re: [Puppet Users] Re: Puppet 2.7.1, variable scoping, best practices

2011-08-03 Thread Martijn Grendelman
On 02-08-11 17:18, Peter Meier wrote: > On 08/02/2011 04:20 AM, Aaron Grewell wrote: >> I recommend taking a look at R I Pienaar's alternative extlookup >> implementation. It supports YAML in addition to csv which allows for the >> full range of available variable types to be pulled in from extern

RE: [Puppet Users] Step by step guide to setting user passwords

2011-08-03 Thread Matthew J Black
Not sure if that'll work right but one option is you should be able to use the generate function in the manifest to make an external call within the puppetmaster to create the encrypted password. The downside is that its going to execute every time, where it might be less of a performance hit to cu

RE: [Puppet Users] pluginsync before catalogue?

2011-08-03 Thread Matthew J Black
Stages would not really help in this situation since manifests would be evaluated before plugins are synced in this scenario, the pluginsync would need to be set to true for it to be done before the manifest is compiled. One way I combated the problem is to use "production" environment as a node on

[Puppet Users] Special character in facter variable

2011-08-03 Thread Jean-Christophe Lacaze / Bintz
Hello, Im currently trying to get an if condition working. I have: if "$mountpoint_path_my-path" { file with apache privilege } else { file with root privilege } $mountpoint_path_my-path being the facter variable that comes up after something is mounted. I had already that kind of thing

[Puppet Users] Re: Facts as environment variables not been picked up in ubuntu.

2011-08-03 Thread edovale
I found a solution for this problem which I am not sure it is the most elegant but works fine. I am adding the export FACTER_* statement to /etc/default/puppet This way it is guarantee the variables will be available to puppet and facter. On Aug 2, 10:19 pm, edovale wrote: > Folks, > I am adding

[Puppet Users] Re: module / class scope

2011-08-03 Thread jcbollinger
On Aug 2, 5:16 pm, Aaron Grewell wrote: > I think you'll need to use both an include and a require.  The include makes > the class(es) in the file available, the require creates the actual > dependency. Yes, if the class in question is not otherwise 'include'd then it needs to be. You must have

[Puppet Users] Re: pluginsync before catalogue?

2011-08-03 Thread jcbollinger
On Aug 3, 9:32 am, "Matthew J Black" wrote: > The "pluginsync" config var defaults to false. I believe there's a ticket to > default it to true in the future. But until that happens you have a few > options: [...] > 3. Possibly use stages to send out the correct "puppet.conf" before any > modu

Re: [Puppet Users] Re: pluginsync before catalogue?

2011-08-03 Thread Craig White
On Aug 3, 2011, at 9:33 AM, jcbollinger wrote: > > > On Aug 3, 9:32 am, "Matthew J Black" wrote: >> The "pluginsync" config var defaults to false. I believe there's a ticket to >> default it to true in the future. But until that happens you have a few >> options: > > [...] > >> 3. Possibly u

[Puppet Users] Re: Class inheritance or virtual resources to manage apache modules

2011-08-03 Thread jcbollinger
On Aug 2, 9:11 pm, Karen Loomans wrote: > I believe I have a related problem.  What is the correct way to extend your > example, to handle the situation where each application class needs to set a > different var? In Puppet, class inheritance is appropriate ONLY where it involves overriding re

[Puppet Users] Extlookup() Docs

2011-08-03 Thread Douglas Garstang
So the new extlookup that can apparently read YAML files, here: http://www.devco.net/archives/2011/05/28/pluggable_extlookup_for_puppet.php Are there any docs on how to actually install? I need a _little_ more than a reference to the source code on github Doug. -- You received this mes

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread R.I.Pienaar
- Original Message - > So the new extlookup that can apparently read YAML files, here: > > > http://www.devco.net/archives/2011/05/28/pluggable_extlookup_for_puppet.php > > > Are there any docs on how to actually install? I need a _little_ more > than a reference to the source cod

Re: [Puppet Users] Puppet HA from 'Pro Puppet'

2011-08-03 Thread Douglas Garstang
:( On Sun, Jul 31, 2011 at 8:32 PM, Jeff McCune wrote: > On Sat, Jul 30, 2011 at 3:01 PM, Nigel Kersten wrote: > >> >> >> On Sat, Jul 30, 2011 at 2:53 PM, Douglas Garstang < >> doug.garst...@gmail.com> wrote: >> >>> All, >>> >>> I'm trying to set puppet 2.7.1 up in a HA configuration by followin

Re: [Puppet Users] Step by step guide to setting user passwords

2011-08-03 Thread Peter Meier
On 08/03/2011 04:44 PM, Matthew J Black wrote: > Not sure if that'll work right but one option is you should be able to use > the generate function in the manifest to make an external call within the > puppetmaster to create the encrypted password. The downside is that its > going to execute every

Re: [Puppet Users] Re: module / class scope

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 9:20 AM, jcbollinger wrote: > > On Aug 2, 5:16 pm, Aaron Grewell wrote: > > I think you'll need to use both an include and a require. The include > makes > > the class(es) in the file available, the require creates the actual > > dependency. > > Yes, if the class in questi

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 10:21 AM, R.I.Pienaar wrote: > > > - Original Message - > > So the new extlookup that can apparently read YAML files, here: > > > > > > > http://www.devco.net/archives/2011/05/28/pluggable_extlookup_for_puppet.php > > > > > > Are there any docs on how to actuall

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread R.I.Pienaar
- Original Message - > > On Wed, Aug 3, 2011 at 10:21 AM, R.I.Pienaar < r...@devco.net > wrote: > > > > > > > > - Original Message - > > So the new extlookup that can apparently read YAML files, here: > > > > > > http://www.devco.net/archives/2011/05/28/pluggable_ext

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 10:28 AM, R.I.Pienaar wrote: > > > - Original Message - > > > > On Wed, Aug 3, 2011 at 10:21 AM, R.I.Pienaar < r...@devco.net > wrote: > > > > > > > > > > > > > > > > - Original Message - > > > So the new extlookup that can apparently read YAML files, he

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread R.I.Pienaar
- Original Message - > > > > > its not in puppet core and probably wont be, a more complete system > > is @ http://www.devco.net/archives/tag/hiera > > > > > > > > > > I realise it's not integrated into puppet. Hence the reason for > > asking how to integrate into puppet. In the pre

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread Aaron Grewell
I just copied it into the necessary locations on the master since I couldn't think of a use case for it elsewhere. On RHEL 5 I replaced: /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb with puppet-extlookup/lib/puppet/parser/function

Re: [Puppet Users] Extlookup() Docs

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 10:37 AM, R.I.Pienaar wrote: > > > - Original Message - > > > > > > > > its not in puppet core and probably wont be, a more complete system > > > is @ http://www.devco.net/archives/tag/hiera > > > > > > > > > > > > > > > I realise it's not integrated into puppet. He

[Puppet Users] Help with runurl

2011-08-03 Thread newguy
Hi guys am bootstrapping EC2 images as puppet clients and am using runurl to call a script which installs puppet, things are going fine till now but I want to pass the environment as a runurl argument. This is my script with runurl cat < /etc/hosts 127.0.0.1 localhost.localdomain 10.1.1.1 puppet

[Puppet Users] Re: Multi site best practices

2011-08-03 Thread Jared Curtis
Having the CA down would be a problem, dashboard can be unavailable temporarily. I plan to overcome the CA issue by creating a hot standby CA. On Aug 1, 5:57 pm, vagn scott wrote: > On 08/01/2011 05:04 PM, Jared Curtis wrote: > > >    * Central Dashboard instance > >    * Central CA > > Would it

[Puppet Users] Re: setting the hostname automatically of EC2 puppet clients

2011-08-03 Thread newguy
Thanks guys but I edited the script mentioned in http://www.google.com/url?sa=D&q=http://agiletesting.blogspot.com/2009/09/ to change the hostname of the new EC2, heres what am doing: am bootstrapping EC2 images as puppet clients and am using runurl to call a script which installs puppet, This is

Re: [Puppet Users] Special character in facter variable

2011-08-03 Thread vagn scott
On 08/03/2011 05:49 AM, Jean-Christophe Lacaze / Bintz wrote: $mountpoint_path_my-path being the facter variable "${mountpoint_path_my-path}" should work on 2.7.2rc2. Earlier versions of puppet don't let you have '-' in a variable name. Not sure if you are allowed to have a '-' in the fact n

[Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
Anyone using? The docs are really bad. Doug -- 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 this group, send email to puppet-users+unsubscr...@googlegroups

Re: [Puppet Users] Re: pluginsync before catalogue?

2011-08-03 Thread vagn scott
On 08/03/2011 12:50 PM, Craig White wrote: an erb template for the clients' puppet.conf which has environment =<%= environment %> the environment is set on the client, so you've implemented a no-op. -- vagn -- You received this message because you are subscribed to the Google Groups "Puppet

[Puppet Users] Re: pluginsync before catalogue?

2011-08-03 Thread jcbollinger
On Aug 3, 11:50 am, Craig White wrote: > On Aug 3, 2011, at 9:33 AM, jcbollinger wrote: [...] > > On Aug 3, 9:32 am, "Matthew J Black" wrote: > >> The "pluginsync" config var defaults to false. I believe there's a ticket > >> to > >> default it to true in the future. But until that happens you

[Puppet Users] Re: module / class scope

2011-08-03 Thread jcbollinger
On Aug 3, 12:23 pm, Douglas Garstang wrote: > On Wed, Aug 3, 2011 at 9:20 AM, jcbollinger wrote: > > > > > > > > > On Aug 2, 5:16 pm, Aaron Grewell wrote: > > > I think you'll need to use both an include and a require.  The include > > makes > > > the class(es) in the file available, the requir

[Puppet Users] Re: pluginsync before catalogue?

2011-08-03 Thread josbal
Hi Dan, Thanks for this information. The --pluginsync option worked as suggested. Will look at adding this to our build process for new servers. I agree it would be good to see pluginsync set to true as default in the future. Cheers, Josh On Aug 3, 7:28 pm, Dan Carley wrote: > On 3 August 201

Re: [Puppet Users] Re: module / class scope

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 2:56 PM, jcbollinger wrote: > > > On Aug 3, 12:23 pm, Douglas Garstang wrote: > > On Wed, Aug 3, 2011 at 9:20 AM, jcbollinger >wrote: > > > > > > > > > > > > > > > > > On Aug 2, 5:16 pm, Aaron Grewell wrote: > > > > I think you'll need to use both an include and a require

Re: [Puppet Users] Re: pluginsync before catalogue?

2011-08-03 Thread Craig White
On Aug 3, 2011, at 2:46 PM, jcbollinger wrote: > On Aug 3, 11:50 am, Craig White wrote: >> On Aug 3, 2011, at 9:33 AM, jcbollinger wrote: >> >>> Environments don't get as much discussion around here nowadays as they >>> used to get, and I suppose that's because run stages have stolen some >>> of

[Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
Can't get the extlookup() that supports yaml to work. I did this... On server: mv /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb.orig Replaced /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb with p

[Puppet Users] Re: Extlookup() again.

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 3:50 PM, Douglas Garstang wrote: > Can't get the extlookup() that supports yaml to work. > > I did this... > > On server: > mv /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb > /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/extlookup.rb.orig > Replaced

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Aaron Grewell
Precedence is for having it look in multiple places. I've got node-level, site-level, and default YAML files for example. On Wed, Aug 3, 2011 at 3:50 PM, Douglas Garstang wrote: > Can't get the extlookup() that supports yaml to work. > > I did this... > > On server: > mv /usr/lib/ruby/site_ruby/

Re: [Puppet Users] Hiera

2011-08-03 Thread Scott Smith
Looks pretty straight forward to me. What are you trying to do? On Wed, Aug 3, 2011 at 1:29 PM, Douglas Garstang wrote: > Anyone using? The docs are really bad. > > Doug > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this g

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 4:15 PM, Aaron Grewell wrote: > Precedence is for having it look in multiple places. I've got node-level, > site-level, and default YAML files for example. > > On Wed, Aug 3, 2011 at 3:50 PM, Douglas Garstang > wrote: > >> Can't get the extlookup() that supports yaml to wo

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
Uhm, use it. I stopped for now as every time I tried to load a key on the command line I got errors, but I realised that there wasn't even a puppet code example, just a ruby one. Is this even designed to be used inside puppet? Doug. On Wed, Aug 3, 2011 at 4:16 PM, Scott Smith wrote: > Looks pre

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Scott Smith
Lists (arrays) in YAML are represented with the `-' prefix. So you created a list called `testkey'. When you echo a list in Puppet, it concatenates the elements. That's why you got `DougBobBill' On Wed, Aug 3, 2011 at 4:19 PM, Douglas Garstang wrote: > On Wed, Aug 3, 2011 at 4:15 PM, Aaron Grewe

Re: [Puppet Users] Hiera

2011-08-03 Thread Scott Smith
https://github.com/ripienaar/hiera-puppet Check the "Puppet" section in the heira README On Wed, Aug 3, 2011 at 4:20 PM, Douglas Garstang wrote: > Uhm, use it. I stopped for now as every time I tried to load a key on the > command line I got errors, but I realised that there wasn't even a puppe

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Aaron Grewell
Example Config: --- :parser: YAML :precedence: - %{environment}/nodes/%{fqdn} - %{environment}/nodes/cluster_%{cluster} - %{environment}/nodes/site_%{site} - %{environment}/nodes/default :yaml: :datadir: /usr/share/puppet/environments Example call: $default_packages = extlookup('linux_default_p

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Aaron Grewell
Argh, just realized I left something out of those paths, should be: /usr/share/puppet/environments/testing/nodes/localhost.localdomain.yaml /usr/share/puppet/environments/testing/nodes/cluster_cluster1.yaml /usr/share/puppet/environments/testing/nodes/site_site1.yaml /usr/share/puppet/environments

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 4:22 PM, Scott Smith wrote: > https://github.com/ripienaar/hiera-puppet > > Check the "Puppet" section in the heira README > > > > Are you referring to this? 'It also includes a Puppet function that works like extlookup() but uses the Hiera backends.'. I _may_ need a litt

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread R.I.Pienaar
- Original Message - > Argh, just realized I left something out of those paths, should be: This all works exactly as extlookup also worked, nothing new there. The general behavior is well documented even in the Puppet core docs -- You received this message because you are subscribed

Re: [Puppet Users] Hiera

2011-08-03 Thread Scott Smith
Check the example directory, probably what you're looking for https://github.com/ripienaar/hiera-puppet/tree/master/example On Wed, Aug 3, 2011 at 4:26 PM, Douglas Garstang wrote: > On Wed, Aug 3, 2011 at 4:22 PM, Scott Smith wrote: > >> https://github.com/ripienaar/hiera-puppet >> >> Check the

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
On Wed, Aug 3, 2011 at 4:25 PM, Aaron Grewell wrote: > Example Config: > --- > :parser: YAML > :precedence: > - %{environment}/nodes/%{fqdn} > - %{environment}/nodes/cluster_%{cluster} > - %{environment}/nodes/site_%{site} > - %{environment}/nodes/default > :yaml: >:datadir: /usr/share/puppet/

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Aaron Grewell
It's an array, which can then be exploded into a whole set of package resources with a single entry: package {$default_packages:} On Wed, Aug 3, 2011 at 4:31 PM, Douglas Garstang wrote: > On Wed, Aug 3, 2011 at 4:25 PM, Aaron Grewell wrote: > >> Example Config: >> --- >> :parser: YAML >> :precede

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
So, I'll ask this question... With hiera, can you retrieve complex multi level YAML data at any level and return it in it's base format, as a string, array etc? If not, it's no better than csv. Doug. On Wed, Aug 3, 2011 at 4:30 PM, Scott Smith wrote: > Check the example directory, probably wha

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
Ok, so am I getting 'DougBobBill' when I use $test_var = extlookup('testkey', '---', 'settings') on this file? --- testkey: - Doug - Bob - Bill Doug On Wed, Aug 3, 2011 at 4:34 PM, Aaron Grewell wrote: > It's an array, which can then be exploded into a whole set of package > resources with a si

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread R.I.Pienaar
- Original Message - > Ok, so am I getting 'DougBobBill' when I use $test_var = > extlookup('testkey', '---', 'settings') on this file? how are you examining this value? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Scott Smith
http://groups.google.com/group/puppet-users/msg/6432a6dd539b542f On Wed, Aug 3, 2011 at 4:37 PM, Douglas Garstang wrote: > Ok, so am I getting 'DougBobBill' when I use $test_var = > extlookup('testkey', '---', 'settings') on this file? > > --- > testkey: > - Doug > - Bob > - Bill > > Doug > > On

Re: [Puppet Users] Hiera

2011-08-03 Thread Aaron Grewell
Yes. You're probably being confused by Puppet's default behavior, which is to concatenate arrays & hashes together into a string representation when you're printing it. On Wed, Aug 3, 2011 at 4:34 PM, Douglas Garstang wrote: > So, I'll ask this question... > > With hiera, can you retrieve comple

Re: [Puppet Users] Extlookup() again.

2011-08-03 Thread Douglas Garstang
My own post? y? On Wed, Aug 3, 2011 at 4:40 PM, Scott Smith wrote: > http://groups.google.com/group/puppet-users/msg/6432a6dd539b542f > > > On Wed, Aug 3, 2011 at 4:37 PM, Douglas Garstang > wrote: > >> Ok, so am I getting 'DougBobBill' when I use $test_var = >> extlookup('testkey', '---',

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
Ah that makes sense so i'll give that a try but ... how do I access a key that's deep down in the data structure? Not possible? On Wed, Aug 3, 2011 at 4:46 PM, Aaron Grewell wrote: > Yes. You're probably being confused by Puppet's default behavior, which is > to concatenate array

Re: [Puppet Users] Hiera

2011-08-03 Thread Aaron Grewell
variable[key][subkey][subsubkey] You've really got to read the language guide, it explains the use of arrays and hashes pretty well: http://docs.puppetlabs.com/guides/language_guide.html On Wed, Aug 3, 2011 at 4:49 PM, Douglas Garstang wrote: > Ah that makes sense so i'll give that a

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
Aaron, I'm not sure you understood my question. I was asking how I could do that with extlookup. Your saying that this should work? $test_var = extlookup('testkey1[testkey2]', '---', 'settings') Doug. On Wed, Aug 3, 2011 at 4:53 PM, Aaron Grewell wrote: > variable[key][subkey][subsubkey] > > Y

Re: [Puppet Users] Re: Multi site best practices

2011-08-03 Thread Scott Smith
Unless something's changed, the Puppetca only needs to be available for certificate *management*. if it were down, you couldn't create a certificate for a new node or revoke for an old one. And I'm pretty sure the CRL has to be actively distributed to Puppetmasters. (Meaning, if you revoke a certif

Re: [Puppet Users] Hiera

2011-08-03 Thread Aaron Grewell
No, pull the whole hash and break it down afterwards. On Aug 3, 2011 5:15 PM, "Douglas Garstang" wrote: > Aaron, > > I'm not sure you understood my question. I was asking how I could do that > with extlookup. Your saying that this should work? > > $test_var = extlookup('testkey1[testkey2]', '---'

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
No luck with that either. On Wed, Aug 3, 2011 at 5:51 PM, Aaron Grewell wrote: > No, pull the whole hash and break it down afterwards. > On Aug 3, 2011 5:15 PM, "Douglas Garstang" > wrote: > > Aaron, > > > > I'm not sure you understood my question. I was asking how I could do that > > with extl

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
Well, this is weird... If I have this yaml file: --- customer: given: Dorothy family: Gale and this puppet code: $t = extlookup("customer", '---', 'settings') notice("$t['given']") then the value displayed is: givenDorothyfamilyGale['given'] which is pretty crappy. However, if I pu

Re: [Puppet Users] Hiera

2011-08-03 Thread Douglas Garstang
Crap. Should be: notice($t['given']) I need a vacation... On Wed, Aug 3, 2011 at 6:09 PM, Douglas Garstang wrote: > Well, this is weird... > > If I have this yaml file: > > --- > customer: > given: Dorothy > family: Gale > > and this puppet code: > > $t = extlookup("customer", '--

Re: [Puppet Users] Hiera

2011-08-03 Thread Ken Barber
Try: notice($t['given']) Or: notice("${t['given']}") Surrounding the var in ${} within quotes helps the parser/interpolation find the edges of your var declaration. ken. On Thu, Aug 4, 2011 at 2:09 AM, Douglas Garstang wrote: > Well, this is weird... > If I have this yaml file: > --- > custo

[Puppet Users] How to query other classes/defines configurations in the same node?

2011-08-03 Thread hsanson
I have a huge library of custom classes/defines for all my servers and I consider myself fluent in puppet DSL. Still there are some situations I still find hard to handle and was wondering if someone can help me find a better way to handle these: Case 1: One define/class requires knowledge of anot

Re: [Puppet Users] prep for 2.8: default values and overrides

2011-08-03 Thread Justin Lambert
Thanks for these - this is very helpful. On Tue, Aug 2, 2011 at 1:26 AM, vagn scott wrote: > ** > prep for 2.8: default values and overrides > > I was very happy, some months ago, > when I worked out how to separate > configuration from code in puppet. > > The scheme even allowed for specializat