Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2013-02-14 Thread Dan White
: puppet-users@googlegroups.com Sent: Thursday, February 14, 2013 9:15:38 AM Subject: Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera This issue is still unresolved as of 3.1.0 # hiera -h resources -c /etc/puppet/hiera.yaml {"webapplication2"=>{"Consu

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2013-02-14 Thread Abhay
This issue is still unresolved as of 3.1.0 # hiera -h resources -c /etc/puppet/hiera.yaml {"webapplication2"=>{"Consumer"=>"undef"}, "webapplication"=>{"Consumer"=>{"2a"=>nil, "1a"=>{"offset"=>"3"}, "3a"=>"undef"}, "indexer"=>nil}} hieranil.pp $fullhash = hiera_hash(resources) crea

Re: [Puppet Users] hiera questions

2012-07-03 Thread Wolf Noble
This thought crossed our minds as well. I created the following feature request awhile back: https://projects.puppetlabs.com/issues/13934#change-60706 the intent behind which is "if this fact is flagged as immutable, and it changes, something is drastically wrong… (don't)? do something" until

Re: [Puppet Users] hiera questions

2012-07-02 Thread Alexander Swen
> > I would make facts on the nodes for these. Let say $role and $subrole > and then just use those in your hierarchy with %{role} and %{subrole} > thus allowing you to set variable for all those machines there. > As far as I understood puppet is a config management system that configures sy

Re: [Puppet Users] hiera questions

2012-07-02 Thread Darryl Wisneski
On Mon, Jul 02, 2012 at 10:13:51PM +0200, Jan Ivar Beddari wrote: > On 02. juli 2012 17:26, Darryl Wisneski wrote: > > > > Regards, > > -dkw > > Ouch, sorry Darryl, I hit the wrong button and posted what I thought of > as a private very quick reply to you .. right on the list. Jan: I too am

Re: [Puppet Users] hiera questions

2012-07-02 Thread Jan Ivar Beddari
On 02. juli 2012 17:26, Darryl Wisneski wrote: Regards, -dkw Ouch, sorry Darryl, I hit the wrong button and posted what I thought of as a private very quick reply to you .. right on the list. Now at least everyone sees my honest-to-god thoughts on the matter. And the scope of the messa

Re: [Puppet Users] hiera questions

2012-07-02 Thread Jan Ivar Beddari
On 02. juli 2012 17:26, Darryl Wisneski wrote: modules I can use hiera to call up my hash and create ruby/puppet functions to do the server host location and functional logic based on the default facter facts of hostname and operatingsystem reported by the server host themselves. All the configu

Re: [Puppet Users] hiera questions

2012-07-02 Thread Darryl Wisneski
On Thu, Jun 28, 2012 at 08:04:09PM +0100, R.I.Pienaar wrote: > I would make facts on the nodes for these. Let say $role and $subrole > and then just use those in your hierarchy with %{role} and %{subrole} > thus allowing you to set variable for all those machines there. Howdy: I was wondering w

Re: [Puppet Users] hiera questions

2012-06-29 Thread Tim Mooney
In regard to: Re: [Puppet Users] hiera questions, llow...@oreillyauto.com...: On Thursday, June 28, 2012 2:04:09 PM UTC-5, R.I. Pienaar wrote: - Original Message - I would make facts on the nodes for these. Let say $role and $subrole and then just use those in your hierarchy with

Re: [Puppet Users] hiera questions

2012-06-28 Thread Denmat
You need your custom fact script in: /lib/facter/

Re: [Puppet Users] hiera questions

2012-06-28 Thread llow...@oreillyauto.com
On Thursday, June 28, 2012 2:04:09 PM UTC-5, R.I. Pienaar wrote: > > > > - Original Message - > > I would make facts on the nodes for these. Let say $role and $subrole > and then just use those in your hierarchy with %{role} and %{subrole} > thus allowing you to set variable for all t

Re: [Puppet Users] hiera questions

2012-06-28 Thread R.I.Pienaar
- Original Message - > From: llow...@oreillyauto.com > To: puppet-users@googlegroups.com > Sent: Thursday, June 28, 2012 7:59:50 PM > Subject: [Puppet Users] hiera questions > > I'm starting to use hiera more, to try to clean up and better > modularize some of

[Puppet Users] hiera questions

2012-06-28 Thread llow...@oreillyauto.com
I'm starting to use hiera more, to try to clean up and better modularize some of our stuff. I know you can use various facts (such as $::hostname) when defining the hierarchy and where to look. We have a few variables that are set based on patterns of hostname, and currently we have a selector

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-23 Thread Jeff McCune
On Tue, May 22, 2012 at 8:50 AM, Jeff McCune wrote: > On Tuesday, May 22, 2012, Dan White wrote: > >> I found an answer to this particular issue. Thanks for the reminder so I >> can share the answer: >> >> I found the hiera/yaml way to indicate an empty array ! >> So, to use my earlier example:

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-22 Thread Jeff McCune
On Tuesday, May 22, 2012, Dan White wrote: > I found an answer to this particular issue. Thanks for the reminder so I > can share the answer: > > I found the hiera/yaml way to indicate an empty array ! > So, to use my earlier example: > > users: > beast: > username : beast > uid :

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-22 Thread Dan White
I found an answer to this particular issue. Thanks for the reminder so I can share the answer: I found the hiera/yaml way to indicate an empty array ! So, to use my earlier example: users: beast: username : beast uid : ingroups : - '' info : Let

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-22 Thread Luke Bigum
On 22/05/12 00:22, Jeff McCune wrote: On Mon, May 21, 2012 at 1:24 AM, Luke Bigum > wrote: I agree with Gary, Dan, it's probably the lack of data in the 'v_ingroups' key in your YAML that create_resources() is complaining about. If it truly can't pass an e

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-21 Thread Jeff McCune
On Mon, May 21, 2012 at 1:24 AM, Luke Bigum wrote: > I agree with Gary, Dan, it's probably the lack of data in the > 'v_ingroups' key in your YAML that create_resources() is complaining about. > If it truly can't pass an empty key/val pair you could do something hacky > like use the string "unde

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-21 Thread Luke Bigum
I agree with Gary, Dan, it's probably the lack of data in the 'v_ingroups' key in your YAML that create_resources() is complaining about. If it truly can't pass an empty key/val pair you could do something hacky like use the string "undef" then explicitly check for it in the define. define ad

Re: [Puppet Users] Hiera Questions: An array of :datadir: ?

2012-05-21 Thread Luke Bigum
On 18/05/12 14:00, Dan White wrote: Thanks for responding, Luke. This looks like a useful expansion of the hiera back-end, but as I am still fairly new to Puppet (and Python and Ruby for that matter), I think I will wait for this to be formally accepted and incorporated before trying it myself

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-18 Thread Gary Larizza
I wonder if the nil value is not being accepted as 'being passed' - can you populate the nil value and try again? On Fri, May 18, 2012 at 2:41 PM, Dan White wrote: > > > > - Luke Bigum wrote: > > On 18/05/12 13:46, Dan White wrote: > > > Ah, Gary ! Just the brain I wish to pick ! :) > > >

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-18 Thread Dan White
- Luke Bigum wrote: > On 18/05/12 13:46, Dan White wrote: > > Ah, Gary ! Just the brain I wish to pick ! :) > > > > Thanks for the response. It makes sense. > > However, if I perceive this properly, it would provide an All-Or-Nothing > > implementation of users. > > > > I am looking for

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-18 Thread Gary Larizza
On Friday, May 18, 2012, jcbollinger wrote: > > > On May 17, 11:16 pm, Gary Larizza > > wrote: > > That's exactly what I was suggesting. If you declared the users as > > create_resources expected it, and included the same user in multiple > levels > > of the hierarchy, the hash merging functional

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-18 Thread Dan White
- Luke Bigum wrote: > On 18/05/12 13:46, Dan White wrote: > > Ah, Gary ! Just the brain I wish to pick ! :) > > > > Thanks for the response. It makes sense. > > However, if I perceive this properly, it would provide an All-Or-Nothing > > implementation of users. > > > > I am looking for for

Re: [Puppet Users] Hiera Questions: An array of :datadir: ?

2012-05-18 Thread Dan White
- Luke Bigum wrote: > On 18/05/12 04:04, Dan White wrote: > > In a posting a few days ago was this hiera.yaml source listing: > > - > > :backends: - json > > :hierarchy: - %{fqdn} > > - %{lmax_role}_role > > - %{lmax_env}_server > >

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-18 Thread Luke Bigum
On 18/05/12 13:46, Dan White wrote: Ah, Gary ! Just the brain I wish to pick ! :) Thanks for the response. It makes sense. However, if I perceive this properly, it would provide an All-Or-Nothing implementation of users. I am looking for for a way to have a master list of users in hiera and

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-18 Thread Dan White
- Gary Larizza wrote: > On Thu, May 17, 2012 at 9:12 PM, Dan White wrote: > > > One way I have seen for setting up system users is to create them > > virtually and then realize them with the spaceship operator, say by ggroup > > -- like this: > > > > User <| groups == 'wheel' |> > > > > Refe

Re: [Puppet Users] Hiera Questions: An array of :datadir: ?

2012-05-18 Thread Luke Bigum
On 18/05/12 04:04, Dan White wrote: In a posting a few days ago was this hiera.yaml source listing: - :backends: - json :hierarchy: - %{fqdn} - %{lmax_role}_role - %{lmax_env}_server - %{pop}.tradefair - comm

Re: [Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-17 Thread Gary Larizza
On Thu, May 17, 2012 at 9:12 PM, Dan White wrote: > One way I have seen for setting up system users is to create them > virtually and then realize them with the spaceship operator, say by ggroup > -- like this: > > User <| groups == 'wheel' |> > > Reference: > http://www.mail-archive.com/puppet-u

[Puppet Users] Hiera Questions: Virtual User Resources and Hiera

2012-05-17 Thread Dan White
One way I have seen for setting up system users is to create them virtually and then realize them with the spaceship operator, say by ggroup -- like this: User <| groups == 'wheel' |> Reference: http://www.mail-archive.com/puppet-users@googlegroups.com/msg29719.html In the referenced posting,

[Puppet Users] Hiera Questions: An array of :datadir: ?

2012-05-17 Thread Dan White
In a posting a few days ago was this hiera.yaml source listing: - :backends: - json :hierarchy: - %{fqdn} - %{lmax_role}_role - %{lmax_env}_server - %{pop}.tradefair - common :json: :datadir: - /etc/puppet/priva