[Puppet Users] external node classifier my setup

2016-06-22 Thread Alex Samad
Hi Might have this wrong. But.. I have puppet install - got r10k and will be using hiera I wanted to have 1 script / programatic way of classifying scripts into environments. I wanted to be able to look at certname and maybe ip address. So I found this https://docs.puppet.com/guides/external_

[Puppet Users] Re: external node classifier my setup

2016-06-22 Thread Alex Samad
:))) seems like after writing this I found my answer I used puppet agent --test --verbose shows me that it is classified as environment alex. thats good. but puppet config print environment still show production? so I am guessing the above just looks at the puppet config files and as I hav

[Puppet Users] Docs Typo (I think)

2016-06-22 Thread Dan White
https://docs.puppet.com/puppet/4.5/reference/config_file_main.html#example-master-config Example master config [main] certname = puppetmaster01.example.com server = puppet environment = production runinterval = 1h strict_variables = true trusted [master] dns_alt_names = puppetmaster01,puppetmas

[Puppet Users] get one file with all server in puppet (export resource)

2016-06-22 Thread Andreas Dvorak
Dear all I would like to generate one file on a certain server with the hostname of all server that have puppet. But the collection of the hosts does not work. First try with the error duplicate resource class check_mk::agent::serverlist { @@file { '/tmp/checkmkhosts': content => "$::hostnam

Re: [Puppet Users] Newbie question re Hiera

2016-06-22 Thread Trevor Vaughan
Hi Alex, You can use this Gist to do what you want: https://gist.github.com/trevor-vaughan/2c404efd0f1f881bbf56eef7bc949eb0 Thanks, Trevor On Tue, Jun 21, 2016 at 7:14 PM, Alex Samad wrote: > Hi > > I have a greenfield install. Centos 6.x puppet opensource latest. > installed r10k. > > I hav

[Puppet Users] Re: external node classifier my setup

2016-06-22 Thread jcbollinger
On Wednesday, June 22, 2016 at 2:21:27 AM UTC-5, Alex Samad wrote: > > :))) > > seems like after writing this I found my answer > > I used > > puppet agent --test --verbose > > shows me that it is classified as environment alex. thats good. > > but > puppet config print environment > still sho

Re: [Puppet Users] Docs Typo (I think)

2016-06-22 Thread Kylo Ginsberg
On Wed, Jun 22, 2016 at 6:53 AM, Dan White wrote: > > > https://docs.puppet.com/puppet/4.5/reference/config_file_main.html#example-master-config > > Example master config >

Re: [Puppet Users] Docs Typo (I think)

2016-06-22 Thread Dan White
Later today. Glad to contribute. Dan White | d_e_wh...@icloud.com “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” (Bill Waterson: Calvin & Hobbes) On Jun 22,

Re: [Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-22 Thread Eric Sorenson
On Thu, 9 Jun 2016, Rob Nelson wrote: Eric Sidebar question I've always had. There's the puppet gem that is commonly used for rspec-puppet. Could that gem (plus its deps, facter, hiera, etc.) suffice for some or all use cases? Sure, there are definitely people who run the whole stack from gem

[Puppet Users] Announce: PuppetDB 4.1.2 is now available

2016-06-22 Thread Molly Waggett
PuppetDB 4.1.2 - June 22, 2016 === PuppetDB 4.1.2 is a backward-compatible bugfix release that speeds up node queries, fixes a bug that slowed garbage collection, and improves error logging. PuppetDB 4.1.2 Downloads Available in native package

[Puppet Users] Re: Hiera lookup fail : doesan't find json file

2016-06-22 Thread chris
So, here's a bit more of the debug o/op: Debug: Performing a hiera indirector lookup of icinga_servers with options {:variables=>Scope(Class[main]), :merge=>#>, @value_type=#]>>>]>, @options={}>} Debug: hiera(): Looking up icinga_servers in JSON backend Debug: hiera(): Looking for data source p

[Puppet Users] Re: Hiera lookup fail : doesan't find json file

2016-06-22 Thread chris
On Thursday, 23 June 2016 11:06:54 UTC+10, chris wrote: So as you can see from above, it prefixes each keyname with the dir and appends '.json', as it should BUT only if keyname/data src has a numeric digit in it! Is this a bug in puppet?? Or am I missing something? -- You received this mess

Re: [Puppet Users] Re: external node classifier my setup

2016-06-22 Thread Alex Samad
Hi So I am a bit of a newbie. My assumption was to setup using a master puppet server. But I wanted to make sure that environment was handled by the master puppet - I have control over that and I might not be able to exclude control over the managed box from other users (dam developers !). I wan

Re: [Puppet Users] Re: external node classifier my setup

2016-06-22 Thread Alex Samad
Hi sorry bit more. puppet config print environment So from what I understand you saying this show the environment from the agent side no talking to the master puppet ! so a puppet agent --noop --test would be a way of looking. is there no other way of querying what the master things of a node

Re: [Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-22 Thread Andreas Zuber
On 06/22/2016 11:54 PM, Eric Sorenson wrote: > > Sure, there are definitely people who run the whole stack from gems. > (There are other people who call those people crazy, but that's a > different conversation) > > This becomes weirder with Facter 3 due to the C++ components; right > now the puppe