[Puppet Users] Re: Puppet4, Hiera3, and environments

2015-07-23 Thread Stack Kororā
On Thursday, July 23, 2015 at 6:05:27 PM UTC-5, Ellison Marks wrote: > > No, the environment variable is set in the puppet.conf of every host. I'm > not even sure what the effect would be of trying to define environment in > hiera. > > Please see: > https://docs.puppetlabs.com/puppet/latest/re

[Puppet Users] Re: Puppet4, Hiera3, and environments

2015-07-23 Thread Ellison Marks
No, the environment variable is set in the puppet.conf of every host. I'm not even sure what the effect would be of trying to define environment in hiera. Please see: https://docs.puppetlabs.com/puppet/latest/reference/environments_assigning.html On Thursday, July 23, 2015 at 3:21:27 PM UTC-7,

[Puppet Users] Re: Puppet4, Hiera3, and environments

2015-07-23 Thread ~Stack~
Greetings, Thanks for the suggestions. I stepped out for a bit, but will try it as soon as I get back. On 07/23/2015 05:15 PM, Ellison Marks wrote: > As far as I'm aware, in the default setup, there is no top level > hieradata. as the comment says, the default datadir is > > /etc/puppetlabs/code

[Puppet Users] Re: Puppet4, Hiera3, and environments

2015-07-23 Thread Ellison Marks
Ah, sorry, forgot the .yaml part of the filenames. hieradata would actually look like this: > > /etc/puppetlabs/code/hieradata/ > common.yaml > production/ > node1.example.com.yaml > node2.example.com.yaml > staging/ > node3.example.com.yaml > dev/ > node4.example.com.yaml

[Puppet Users] Re: Puppet4, Hiera3, and environments

2015-07-23 Thread Ellison Marks
As far as I'm aware, in the default setup, there is no top level hieradata. as the comment says, the default datadir is /etc/puppetlabs/code/environments/%{environment}/hieradata So each environment will have it's own hieradata directory with it's own common.yaml. /etc/puppetlabs/code/hieradata

Re: [Puppet Users] puppetserver puppetdb and storeconfigs=true

2015-07-23 Thread Steph Gosling
Ken, Kevin, good evening. On Thu, 23 Jul 2015 17:58:20 +0100 Ken Barber wrote: > The problem is, that if you're contacting PuppetDB in this case for > your fact information, something is wrong. The 'bug' is that if PDB is > referenced for this information it tries to clobber trusted_facts, but

[Puppet Users] Razor and Dashboard for Puppet 4

2015-07-23 Thread Stack Kororā
Greetings, I am building out a new puppet master system based on 4. Razor and Dashboard are two projects that I never got around to implementing before, but since I have some motivation (and time from those on high to spend working on puppet) I thought it would be nice to have them in my new e

[Puppet Users] Puppet4, Hiera3, and environments

2015-07-23 Thread Stack Kororā
Greetings, I need help; I have been going in circles for too long now and I am sure it is something silly that I over looked. I am attempting to use environments with a new server build for Puppet 4 (never could get it working under the Puppet 3 series; but I never put /that/ much effort into i

Re: [Puppet Users] puppetserver puppetdb and storeconfigs=true

2015-07-23 Thread Kevin Corcoran
Hi Steph, Just to be sure, you've ensured that the clock is correct on all of your nodes, right? I don't have a great understanding of this problem, but from what I know, the underlying issue is significant clock skew (> 30 minutes) between machines. Failing that, there's also https://tickets.pu

Re: [Puppet Users] puppetserver puppetdb and storeconfigs=true

2015-07-23 Thread Ken Barber
> I'm attempting a migration from a PuppetDB 2.x and rack Puppet 3.8.1 > install over to the all new 'pc1' puppetserver puppet-agent PuppetDB v3 > stack[0]. > > On the two nodes I've tried so far (the master itself and a test node) > I'm getting the following error: > > Error 400 on SERVER: Attempt

Re: [Puppet Users] How to enable/create environments for new puppetserver setup (not puppetmaster)

2015-07-23 Thread Kevin Corcoran
Hi Gene, That looks like a problem with the permissions on that directory. I'd start by making sure that the 'puppet' user has read permissions on /etc/puppet/modules/production. - Kevin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsu

[Puppet Users] puppetserver puppetdb and storeconfigs=true

2015-07-23 Thread Steph Gosling
Hi all, I'm attempting a migration from a PuppetDB 2.x and rack Puppet 3.8.1 install over to the all new 'pc1' puppetserver puppet-agent PuppetDB v3 stack[0]. On the two nodes I've tried so far (the master itself and a test node) I'm getting the following error: Error 400 on SERVER: Attempt to a

[Puppet Users] Re: How to search and replace a word in file

2015-07-23 Thread jcbollinger
On Thursday, July 23, 2015 at 2:27:03 AM UTC-5, Ayyanar wrote: > > 1." sed -i 's/\$\$HISTORY\$\$/puppet/' /etc/ > system.com " > > > I want to replace a word $$HISTORY$$ with puppet text into /etc/system.com > file. > > You have to take care to perform proper quot

Re: [Puppet Users] How to search and replace a word in file

2015-07-23 Thread Christopher Wood
Look into templates. https://docs.puppetlabs.com/guides/templating.html https://docs.puppetlabs.com/puppet/latest/reference/lang_template.html On Thu, Jul 23, 2015 at 12:27:03AM -0700, Ayyanar wrote: >1."   sed -i 's/\$\$HISTORY\$\$/puppet/' >/etc/system.com 

[Puppet Users] Re: How to search and replace a word in file

2015-07-23 Thread Ayyanar
On Thursday, 23 July 2015 12:57:03 UTC+5:30, Ayyanar wrote: > > 1." sed -i 's/\$\$HISTORY\$\$/puppet/' /etc/ > system.com " > > > I want to replace a word $$HISTORY$$ with puppet text into /etc/system.com > file. > > Search $$HISTORY Replace puppet > > Thanks for

[Puppet Users] How to search and replace a word in file

2015-07-23 Thread Ayyanar
1." sed -i 's/\$\$HISTORY\$\$/puppet/' /etc/system.com " I want to replace a word $$HISTORY$$ with puppet text into /etc/system.com file. Thanks for your commands. Ayyanar. -- You received this message because you are subscribed to the Google Groups "Puppet U