Wednesday, May 24, 2017

chef 12 opsworks github issue

I had some issue to checkout git repo from private repo.
Took couple of hours to figure it out.

1: add application cookbook in "Berksfile"
cookbook 'application',             '~> 5.2.0'

2: run 
berks update

3: create recipe:

app = search(:aws_opsworks_app).first
app_path = "/srv/#{app['shortname']}"

application app_path do
  git  app['app_source']['url'] do
    deploy_key  app['app_source']['ssh_key']
  end
end


No comments:

Post a Comment