opsworks-chef-cookbooks icon indicating copy to clipboard operation
opsworks-chef-cookbooks copied to clipboard

trying to check out a private repo but failing

Open firecentaur opened this issue 8 years ago • 0 comments

Hi there,

In order to check out my private repo, I need to ensure composer is using ~/.composer/auth.json

which looks like

gitauth.erb: { "github-oauth": { "github.com": "<%= @gitauth %>" } }

install_gitauth.rb where @gitauth is passed in a recipe:

template "/home/ubuntu/.composer/auth.json" do source "gitauth.erb" mode "0644" variables( :gitauth => node["deploy"]["backend"]["environment_variables"]["gitauth"] ) end

And the :gitauth is specified in my custom stack json

however, this recipe doesnt seam to notice my auth.json file. What can I do?

firecentaur avatar Jan 16 '17 19:01 firecentaur