puppet-git-hooks icon indicating copy to clipboard operation
puppet-git-hooks copied to clipboard

r10k ignores PUPPETFILE variable

Open cbergmann opened this issue 6 years ago • 2 comments

Hi,

I tried to change my Puppetfile and the commit hook failed with No such file or directory @ rb_sysopen - /opt/puppetlabs/puppet/cache/puppet.git/Puppetfile. where /opt/puppetlabs/puppet/cache/puppet.git is the pwd of the hook. It also showed a deprecation warning that PUPPETFILE variable is deprected. It seems that it ignores this Variable altogether. I did not find any commandline switch to forcefully give a puppetfile to check. Therefore I used pushd to change to the temporary workingdir and called r10k without parameter to use the default $(pwd)/Puppetfile.

cbergmann avatar Sep 14 '18 06:09 cbergmann

Alternatively, you can run r10k from a subshell.

pillarsdotnet avatar Apr 12 '19 18:04 pillarsdotnet

r10k supports a --puppetfile argument now (added a while ago https://github.com/puppetlabs/r10k/commit/a7a8fe0bce813b54e5bf6733e75fceb266d44fbb)

yakatz avatar Oct 30 '20 02:10 yakatz