Unable to setup Environments in 2015.2

35 Aufrufe
Direkt zur ersten ungelesenen Nachricht

giridhar kazama

ungelesen,
08.09.2015, 00:30:5208.09.15
an Puppet Users
HI,
I have set up a master with 400+ agents. My master has 2015.2. I have to setup 4 environments and all are test environments. I've tried creating directories named with the test environments at /etc/puppetlabs/code/environments/test1 /etc/puppetlabs/code/environments/test2 /etc/puppetlabs/code/environments/test3 and /etc/puppetlabs/code/environments/test4.
I have also changed the environment field to test1 in one of the agents but it doesn't seems to be happy. could anyone help me on this please.


Regards
Giridhar

Lindsey Smith

ungelesen,
08.09.2015, 11:49:4608.09.15
an puppet...@googlegroups.com
Could you expand on what you tried and what the output was? I created an empty /etc/puppetlabs/code/environments/test directory, refreshed classes in the PE UI instead of waiting for puppet server to refresh on a timer and the test environment was present in the UI.
 


Regards
Giridhar

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5cf87f13-ba2f-45c3-9bdc-dd108a059e31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

giridhar kazama

ungelesen,
09.09.2015, 10:09:3509.09.15
an Puppet Users
Thanks alot. That really did the trick. I realized it very lately. I wasn't refreshing the classes so didn't get it immediately.Your help is very much appreciated.

Now I am having a hustle while picking up the hiera data. Its working when I am using the static directory structure in the datadir but it doesn't if I give variables.


static dir : /etc/puppetlabs/code/environments/production/hieradata
dynamic : /etc/puppetlabs/code/environments/%{environments}/hieradata

giridhar kazama

ungelesen,
09.09.2015, 10:22:0409.09.15
an Puppet Users
Sorry forgot to post the output:
[root@example1234 hieradata]# hiera example12345
nil
[root@example1234 hieradata]# hiera example12345 --debug
DEBUG: 2015-09-09 15:12:35 +0100: Hiera YAML backend starting
DEBUG: 2015-09-09 15:12:35 +0100: Looking up example12345 in YAML backend
DEBUG: 2015-09-09 15:12:35 +0100: Looking for data source defaults
DEBUG: 2015-09-09 15:12:35 +0100: Cannot find datafile /etc/puppetlabs/code/environments//hieradata/defaults.yaml, skipping
DEBUG: 2015-09-09 15:12:35 +0100: Looking for data source global
DEBUG: 2015-09-09 15:12:35 +0100: Cannot find datafile /etc/puppetlabs/code/environments//hieradata/global.yaml, skipping
nil






On Tuesday, September 8, 2015 at 10:00:52 AM UTC+5:30, giridhar kazama wrote:

jamese

ungelesen,
09.09.2015, 10:47:3709.09.15
an Puppet Users
Hi,

You want to specify: %{environment}
rather than: %{environments}

J
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten