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

2016-06-20 Thread chris
Dang; wanted to add to my last.. Anyway, ran 'facter -p' on the node and those values are filled correctly. How can I check what the master sees when the node checks in? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this

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

2016-06-20 Thread chris
Yes, nt_location is 'sac', so sac.json as mentioned. Not sure how to check the 'value' of that var... %{nt_location}. This is a bit new to me. Should have mentioned its copied from a working(!) 3.2 master; want to 'upgrade' with minimal changes. -- You received this message because you are subs

[Puppet Users] Re: notify behavior on a service Puppet 4.2.2

2016-06-20 Thread Mike Sharpton
Found the cause, it isn't notify or relationships. It's the fact that the init script is no good. It always exits zero even when it isn't running. This does not help. I had to use the hasstatus parameter. All is well. On Monday, June 20, 2016 at 10:55:06 AM UTC-5, Mike Sharpton wrote: > > H

Re: [Puppet Users] change order of elements

2016-06-20 Thread Peter Kristolaitis
On 2016-06-20 01:16 PM, Helmut Schneider wrote: Peter Kristolaitis wrote: How can I ensure that mpm_* is always the first element in the array? Assuming you're trying to solve the problem I think you're trying to solve (i.e. to have Apache with the correct process model installed before any a

[Puppet Users] Re: Good documentation somewhere for doing a cert-roll?

2016-06-20 Thread John Gelnaw
Many thanks for the re-signing of the CA idea. I can report that it worked for me, although I had to run the webrick version of puppetmaster to regenerate the puppet master's certificate. Since I have a full mcollective deployment as well, I was able to use the following steps to automate the

Re: [Puppet Users] Removing unmanaged path /etc/puppetlabs/code/environments/ - r10k

2016-06-20 Thread Anderson Mills
I believe moduledir should be set in the Puppetfile, not in r10k.yaml. (Or was that a mistype?) https://github.com/puppetlabs/r10k/blob/master/doc/puppetfile.mkd#moduledir On Friday, June 17, 2016 at 3:15:28 PM UTC-7, Michael Watters wrote: > > I actually take the opposite approach. Modules fro

Re: [Puppet Users] puppet strings workflow

2016-06-20 Thread Gareth Rushgrove
Hi Hamel On 20 June 2016 at 10:14, wrote: > Hello, > > I'm trying to setup a documentation workflow based on puppet-strings and I > have some questions. > > 1) Is this too early? Should I stick to a plain README file? > 2) Is there any public module that is considered to follow best practice > r

Re: [Puppet Users] change order of elements

2016-06-20 Thread Helmut Schneider
Peter Kristolaitis wrote: > > How can I ensure that mpm_* is always the first element in the > > array? > > Assuming you're trying to solve the problem I think you're trying to > solve (i.e. to have Apache with the correct process model installed > before any additional modules), it's important to

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

2016-06-20 Thread Mike Sharpton
You would need to have sac in your hiera.yaml hierarchy unless you are defining this somewhere in a variable? Is that what nt_location is? Also, if you changed hiera.yaml, you have to restart puppetserver. On Monday, June 20, 2016 at 7:52:21 AM UTC-5, chris wrote: > > Given this /etc/puppetlab

[Puppet Users] Re: notify behavior on a service Puppet 4.2.2

2016-06-20 Thread Mike Sharpton
In looking more, it appears if you complete the relationsip with a require going the other way, it will run the service code each time. Trying more things. On Monday, June 20, 2016 at 10:55:06 AM UTC-5, Mike Sharpton wrote: > > Hey all, > > I have a simple chunk of code, in which if a file is c

[Puppet Users] notify behavior on a service Puppet 4.2.2

2016-06-20 Thread Mike Sharpton
Hey all, I have a simple chunk of code, in which if a file is changed, I notify a service to restart. This all works fine. I had thought that notify is simply just a notify that forces something to run. I also thought that the code that you are notifying will always run, regardless of the de

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

2016-06-20 Thread chris
Given this /etc/puppetlabs/code/hiera.yaml --- :backends: - json :hierarchy: - "%{hostname}.%{nt_environment}.%{nt_location}" - "%{nt_type}.%{nt_environment}.%{nt_location}" - "%{nt_type}.%{nt_environment}" - "%{nt_environment}.%{nt_location}" - "%{nt_environment}" - "%{nt_locat

[Puppet Users] puppet strings workflow

2016-06-20 Thread hmlth
Hello, I'm trying to setup a documentation workflow based on puppet-strings and I have some questions. 1) Is this too early? Should I stick to a plain README file? 2) Is there any public module that is considered to follow best practice right now? My question is where can I find a real life exa