You guys are scary sick, like in an awesome way! :) Thank you. If I have a block of time, I thought of spidering through the dependency chain, parsing the dependencies in metadata.json, fetching the latest version (query the forge) in the range specified, then updating the final Puppetfile. I think I was spoiled in Chef-land as their Berksfile, which leveraged off metadata.rb, and would resolved subsequent dependencies automatically. When I was getting reacquainted with Puppet, I had problems getting compatible modules for Puppet 3.x, as they depended on modules, but installed the latest non-Puppet 3.x compatible ones. It was frustrating to say the least. The Forge wasn't a fun experience (especially trying to create ElasticSearch cluster using puppet during a job interview exercise). Now that I have some time, it is fun getting back into things, learning how things have evolved. Example42's material, like the fabric tasks, are exciting.
On Wednesday, May 2, 2018 at 7:56:41 AM UTC-7, [email protected] wrote: > > You can definitively use a Puppetfile with puppet apply. > As you already found is a matter of running r10k puppetfile install -v > from your control-repo directory (where Puppetfile is placed). > You need to resolve all the dependencies by yourself in Puppetfile (r10k > does not do that for you), so list explicitly in Puppetfile all the modules > you need, with their dependencies. > > With the proper options, you can run puppet apply for a whole control > repo, basically reproducing on the local node what is done on a Puppet > server (when an ENC is not used), in this way you can use the modules from > the control repo's modules dir (populated via r10k puppetfile install) and > hieradata from the defined hieradata directory. > > Look here https://github.com/example42/psick/blob/production/bin/papply.sh > for the needed command line parameters. > > On Wednesday, May 2, 2018 at 5:55:12 AM UTC+2, Joaquin Menchaca wrote: >> >> Is it possible to use Puppetfile with 'puppet apply'? I have been having >> difficulty finding this. I wanted to use the Puppetfile to download and >> vendor modules in the modules directory. >> >> From my research so far, it looks like r10k with open source puppet >> server, and code manager with PE, but for 'puppet apply', I couldn't find >> anything. >> >> >> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9129bba1-be17-4c47-861f-69931522bd77%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
