Can you specify an environment when running the puppet agent manually? [closed]
So I have the basic master/agent setup and I use the puppet.conf file to specify the environment on the agent machine. I like test my changes with:
puppet agent -t --noop
Is there a way to specify a different environment then is in puppet.conf when running this command? I know I could use puppet apply and specify a module but that only works if the module was local (which it isn't).
I guess another way to do this would be to have the agent download the module from the server and then run puppet apply. However I'm also not sure if it is possible to do that?