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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/585ae5de-df82-4aa3-9408-abf4beaf1c4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to