Skip to content

Conversation

cbergmann
Copy link

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.

@pillarsdotnet
Copy link

Alternatively, you can run r10k from a subshell.

@yakatz
Copy link
Contributor

yakatz commented Oct 30, 2020

r10k supports a --puppetfile argument now (added a while ago puppetlabs/r10k@a7a8fe0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants