puppet-git-hooks
puppet-git-hooks copied to clipboard
r10k ignores PUPPETFILE variable
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
.
Alternatively, you can run r10k
from a subshell.
r10k
supports a --puppetfile
argument now (added a while ago https://github.com/puppetlabs/r10k/commit/a7a8fe0bce813b54e5bf6733e75fceb266d44fbb)