On Mon, 2017-07-03 at 10:04 -0700, 1284ty...@gmail.com wrote: > Hi All > > I have been attemtping to use r10k as a tool to create dynamic > environments with git and my puppet master, however i was wondering > if there is a plugin or tool that would interface between a git repo > and Foreman directly?
What exactly are you looking for? Are we talking about deploying classes to disk, or importing classes into Foreman after a deployment? For the former, Foreman doesn't care how the classes get to the puppetserver. I personally use a bare git repo (in /var/lib/puppet/puppet.git) and a post-commit hook that checks out the repo to /etc. r10k certainly works to, as does a variety of other methods. If you're talking about importing the classes into Foreman after a deployment, then there's a rake task you can execute on the Foreman host (foreman-rake puppet:import:puppet_classes). Be careful with this though - the UI offers a chance to review the changes (especially which classes have been deleted), but the rake task will import the changes with no confirmation. Be sure your commits don't have syntax errors in if you go down this road ;) Greg -- 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 foreman-users+unsubscr...@googlegroups.com. To post to this group, send email to foreman-users@googlegroups.com. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.