Can a headless puppet box have directory environments?
I am attempting this on a headless puppet box and am encountering issues. I just want to make sure that this is possible.
Here is a more specific description in the form of an example. If I have two environments: /home/jeoffrey/ and /home/jamie/ then when I run puppet apply /home/jamie/manifests/site.pp then is there a way to automatically have the default modulepath overridden to /home/jamie/modules?
Thanks!
Can you describe the issues in more detail or supply error messages, etc.?
https://docs.puppetlabs.com/puppet/latest/reference/dirs_manifest.html#with-puppet-apply
Yes, you can pass the --modulepath option to puppet apply, e.g. puppet apply --modulepath=/home/jamie/modules /home/jamie/manifests/site.pp. That's not necessarily automatic, but perhaps there's a way to script it so you simply pass the environment name, and the proper command is fired.
Thank you !