Re: [Puppet Users] Working with hiera and debugging

2016-07-05 Thread Alex Samad
Hi Another update - again for any one else that comes to this thread. http://www.puppetcookbook.com/posts/simple-debug-messages.html https://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php found this can find the link i found it on :( /* notice("try to run this scr

Re: [Puppet Users] Working with hiera and debugging

2016-07-05 Thread Alex Samad
On 6 July 2016 at 08:44, Alex Samad wrote: > But on the test node I try -t --noop --verbose. but it doesn't give me > any info about this. Seems like I got that wrong, just applied -d to one of my test commands on a test node and it has spewed out lots of info ... -- You received this message b

Re: [Puppet Users] Working with hiera and debugging

2016-07-05 Thread Alex Samad
Hi On 5 July 2016 at 23:32, jcbollinger wrote: > > > On Saturday, July 2, 2016 at 1:21:03 AM UTC-5, Alex Samad wrote: >> >> Incase somebody googles to here >> >> >> i found this >> >> puppet apply --certname= -e "notice(hiera('classes'))" --noop >> --verbose >> >> This shows me what the puppet

Re: [Puppet Users] Working with hiera and debugging

2016-07-05 Thread jcbollinger
On Saturday, July 2, 2016 at 1:21:03 AM UTC-5, Alex Samad wrote: > > Incase somebody googles to here > > > i found this > > puppet apply --certname= -e "notice(hiera('classes'))" --noop > --verbose > > This shows me what the puppet master is giving as classes for a specific > node based on cer

Re: [Puppet Users] Working with hiera and debugging

2016-07-01 Thread Alex Samad
Incase somebody googles to here i found this puppet apply --certname= -e "notice(hiera('classes'))" --noop --verbose This shows me what the puppet master is giving as classes for a specific node based on certname. also hiera -d classes ::osfamily=RedHat environment=production ::tr

Re: [Puppet Users] Working with hiera and debugging

2016-06-27 Thread Alex Samad
Hi Okay, I have downloaded and will re do he trainging VM. But I have finished the reading this blog http://www.craigdunn.org/2012/05/239/ << suggested to me here. This is basically what i am trying to do. But I would like to see / test what I am doing along the way The install of puppet / hier

Re: [Puppet Users] Working with hiera and debugging

2016-06-26 Thread Peter Kristolaitis
You may want to go back and re-read my previous message. You're missing the very, very critical distinction that Hiera is not your node manifest. Hiera is just data, and does not configure any resources for the agent to manage. You still need to write your node manifest files. Note that th

Re: [Puppet Users] Working with hiera and debugging

2016-06-26 Thread Alex Samad
I have... but then i spent 2-3 weeks doing git and r10k ... I will look again.. On 27 June 2016 at 14:33, Rob Nelson wrote: > Have you tried the Learning Puppet VM? I believe it provides answers this > and many of the other questions you have had over the past few weeks. > There's really nothing

Re: [Puppet Users] Working with hiera and debugging

2016-06-26 Thread Rob Nelson
Have you tried the Learning Puppet VM? I believe it provides answers this and many of the other questions you have had over the past few weeks. There's really nothing better than actually trying to use the software to learn it. On Monday, June 27, 2016, Alex Samad wrote: > Hi > > Okay, i do it a

Re: [Puppet Users] Working with hiera and debugging

2016-06-26 Thread Alex Samad
Hi Okay, i do it a bit simpler :) /etc/puppetlabs/puppet/hiera.yaml i added message: "This node is using global common data" sudo /opt/puppetlabs/bin/puppet agent --noop --verbose -t didn't see the text message ! On 27 June 2016 at 13:14, Peter Kristolaitis wrote: > It's important to ke

Re: [Puppet Users] Working with hiera and debugging

2016-06-26 Thread Peter Kristolaitis
It's important to keep in mind that Hiera is "just data". You still need to actually create the resources somehow in your manifest based on that data. Thus, creating a data element called "classes" in Hiera isn't enough to actually get those classes applied to the node. You need to add hier

[Puppet Users] Working with hiera and debugging

2016-06-26 Thread Alex Samad
Hi Newbie - greenfield install . Centos 6.8 - PC1 puppet. Master puppet setup. I have installed R10K and git and hiera. I would like to group my nodes into groups I'm doing some testing testnode - puppet client masternode - puppet master On the master node I have cat /etc/puppetlabs/pup