Hi, I'm working to get r10k to populate modules on our puppet masters. I have this working, but there are some complications with Foreman, I'm seeking input on.
We make use of /etc/puppet/environments/common as part of the basemodulepath, this is setup from the Foreman Installer, and part of the puppet.conf template as far as I can tell. I have r10k setup to manage this directory as well, but it wants to make /etc/puppet/environments/common/modules and place any modules in the Puppetfile there. This creates two stumbles for me... 1. Is there a way to easily override the Foreman-Installer's puppet.conf template? ...so I can change the basemodulepath according to my needs at install, and not have it wiped out if foreman-installer is run again? An alternative that I've considered but been unable to resolve would be to force r10k to drop modules right into /etc/puppet/environments/common, does anyone know how to do that? 2. Importing the environments and modules always involves ignoring the "common" environment. Is there a way to get Foreman to always ignore this environment? This was never much an issue beyond training when we use the WebUI to do the import...where we'd just ignore "common" and never import it. Now I'm looking at running a import as a rake task behind the r10k command in a script. Since the environments are dynamic, I don't think it will be easy to avoid importing "common" down the road. Using CI workflow and orchestration will come in the future, but at the moment it's all done by hand. Thank you kindly for any advice :) P.S. For what it's worth on the "common" modules, basically we're using the "common" modules as our Enterprise level modules for all puppet environments. Local/Dept sys/devops admins can manage modules in their puppetmaster specific environments. We own all the r10k git repos, and protect the "common" branches so the local guys can't commit to it, but otherwise they manage the other branches as they see fit. -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
