Re: [Puppet Users] Re: Need help with simple hiera example

2014-10-14 Thread Felix Frank
On 10/14/2014 05:00 AM, Stack Kororā wrote: Greetings, So yeah. I spent several hours hacking away at adding hiera data to a bunch of my modules. I haven't seen any weirdness going on. I wish there had been /any/ kind of indication in puppet about trying to read this file but I don't have

[Puppet Users] Re: Need help with simple hiera example

2014-10-13 Thread Stack Kororā
On Friday, October 10, 2014 9:18:03 AM UTC-5, jcbollinger wrote: Even if the agent runs as root, there can still be access controls (e.g. SELinux policy) that prevent it from reading certain files that can be read by commands you launch directly from a shell. OMG. If that was the

[Puppet Users] Re: Need help with simple hiera example

2014-10-13 Thread Stack Kororā
Greetings, So yeah. I spent several hours hacking away at adding hiera data to a bunch of my modules. I haven't seen any weirdness going on. I wish there had been /any/ kind of indication in puppet about trying to read this file but I don't have permission/access rights. That would have saved

[Puppet Users] Re: Need help with simple hiera example

2014-10-10 Thread jcbollinger
On Thursday, October 9, 2014 5:23:39 PM UTC-5, Stack Kororā wrote: Wow! Thanks for the responses John! On Thursday, October 9, 2014 8:52:00 AM UTC-5, jcbollinger wrote: If the master had successfully looked up your datum then the result would have been as you expected. The behavior

[Puppet Users] Re: Need help with simple hiera example

2014-10-09 Thread jcbollinger
On Wednesday, October 8, 2014 8:44:56 AM UTC-5, Stack Kororā wrote: Greetings, I don't know why, but I am having a rough time trying to get hiera to work. It seems to me that all the examples I see online are either absurdly complex or so stupidly simple that they are absolutely

[Puppet Users] Re: Need help with simple hiera example

2014-10-09 Thread jcbollinger
On Wednesday, October 8, 2014 8:09:28 PM UTC-5, Stack Kororā wrote: However, I did get it working and you reaffirmed something I had discovered. So thank you very much for responding. I do appreciate it. I'm glad you got it working. Since the documentation is near rubbish on hiera, I

[Puppet Users] Re: Need help with simple hiera example

2014-10-09 Thread Tony Thayer
On Wednesday, October 8, 2014 6:44:56 AM UTC-7, Stack Kororā wrote: Greetings, I don't know why, but I am having a rough time trying to get hiera to work. It seems to me that all the examples I see online are either absurdly complex or so stupidly simple that they are absolutely

[Puppet Users] Re: Need help with simple hiera example

2014-10-09 Thread Stack Kororā
Wow! Thanks for the responses John! On Thursday, October 9, 2014 8:52:00 AM UTC-5, jcbollinger wrote: If the master had successfully looked up your datum then the result would have been as you expected. The behavior you present is characteristic of (and well documented for) the case where

[Puppet Users] Re: Need help with simple hiera example

2014-10-09 Thread Stack Kororā
On Thursday, October 9, 2014 12:49:40 PM UTC-5, Tony Thayer wrote: Couple of things I noticed: Your testhiera/manifests/init.pp file looks a little odd. I re-wrote it a bit and it ran without a hitch. class testhiera { $test = hiera('testhiera::test') notice(Test is ${test}) file {

[Puppet Users] Re: Need help with simple hiera example

2014-10-08 Thread Corey Osman
Seems like your clientcert is different during the puppet run than the command line since your explicitly passing in the clientcert. I would change clientcert in your hiera config to fqdn. You are not guaranteed to have a client cert, but all hosts will have a fqdn. You can also use the

[Puppet Users] Re: Need help with simple hiera example

2014-10-08 Thread Stack Kororā
Greetings Corey, Thank you for your advice. If it was as simple as the clientcert being wrong, then it should have been hitting the default hiera option, but it wasn't pulling back anything at all. I honestly don't think it was even looking at hiera as I saw nothing about it in the logs. We

[Puppet Users] Re: Need help with simple hiera example

2014-10-08 Thread Stack Kororā
In case anyone else struggles with Hiera and needs a simple example: https://github.com/cstackpole/SimpleHiera That is my code so you don't have to try to cut'n'paste out of a forum post. If I learn anything else useful, I will shove it into the repo too. ~Stack~ -- You received this message

[Puppet Users] Re: Need help with simple hiera example

2014-10-08 Thread Stack Kororā
OK, I am beginning to question either puppet+hiera's reliability or my sanity... I have code I am working on. It is existing code in which has a bunch of variables prime for hiera use. I pull one variable out of the code into hiera for testing and it works well. Tweak the code and now I am

[Puppet Users] Re: Need help with simple hiera example

2014-10-08 Thread Stack Kororā
Just so that the code is out there and my point made. $ cat hieradata/hosts/puppet.test.vm.yaml --- repos::reponetwork: one repos::testvar: repotestvar testhiera::test: blah testhiera::testvar: testhieratestvar $ cat modules/testhiera/manifests/init.pp class testhiera ( $testvar =

[Puppet Users] Re: Need help with simple hiera example

2014-10-08 Thread Stack Kororā
Ack! So I put the '$testvar = $repos::testvar' line in the class header for both the init.pp and the epel.pp (which is a subclass in repos). I removed it out of epel.pp and the init.pp started to print!!! That makes zero sense to me! So I removed it and the notify out of init.pp and put them in