Ask Your Question

How to configure puppet agent to talk to non-production folder

asked 2016-05-23 19:30:00 -0600

newcomer gravatar image

Hello Puppeters !

I have one master and three agents. I created a non-production folder on puppetserver and initiated a sync from agent and agent couldn't retrieve the changes. Only when I made change in production folder agent got the changes so my question is if I want to say to my agent that get agents from puppetserver non-production folder how to get configure that?

Structure on my puppetserver is as follows:

root@jim-Ubuntu1504:/etc/puppetlabs/code/environments# pwd
root@jim-Ubuntu1504:/etc/puppetlabs/code/environments# ls -R
non-production  production

environment.conf  hieradata  manifests  modules




environment.conf  hieradata  manifests  modules




Any advise would be highly appreciated.

Kind Regards, Jim

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-05-24 09:31:25 -0600

on client run

puppet agent -t --environment non-production

you can set environment in puppet.conf or by:

puppet config --section agent set environment non-production

if you're using puppet enterprise then envs get set in console so have a look there cheers Stuart

edit flag offensive delete link more


Thank you very much ! :)

newcomer gravatar imagenewcomer ( 2016-05-24 09:52:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-05-23 19:30:00 -0600

Seen: 58 times

Last updated: May 24 '16