Closed phoolish closed 9 years ago
Hi! Private git repos will need a different syntax:
cookbook 'repo', git: 'git@github.com:org/repo.git'
or
cookbook 'repo', git: 'https://github.com/org/repo.git'
Thanks for the fast response!
Hmm, it did resolve this time, but I had to enter a user/pass and requires generating a token (MFA enabled account) and reprompts for all dependencies.
Is there no way to use an ssh_key config or an ENV value?
It's Ruby, so you should be able to do an ENV.fetch(key)
@luckymike could you elaborate?
ENV.fetch('foo')
will return the ENV variable 'foo', so you can use that within the config to return an ENV variable. Not knowing what specifically you'd like to return, I'm not sure what sort of additional detail would help.
Sorry, I should have been more specific. I know how to return ENV var into a ruby file. Do you then set the user/pass in the Batali file?
@luckymike Went way of track of the original question. I think I've sorted it out. Thanks for the patience.
Is there additional configuration necessary to resolve private git repositories?
Batali file:
Output from batali resolve: