[chef] Git resource, https clone, and username and password auth using git resource


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] Git resource, https clone, and username and password auth using git resource
  • Date: Wed, 20 Jun 2012 14:25:50 +0800

Hi,

The below is how I am doing an initial checkout from git and syncing
every chef run.  I am using using a bare bones ubuntu AMI with git and
SSH keys authed with git hub.  All works find using this method.

git "/home/ubuntu/workspace/MyRepo" do
    repository 
" :mycomoany/MyRepo.git"
    reference branch_name
    action :sync
    user "root"
end

I prefer to use https with username and password auth for git with
https clone.  Per the docs, it seems that that the git resource has
usename and password for the repo.  Only SVN.  I can do a python
script using pexpect for auth but that seems overkill.  Anyway
 to use the git resource?

Thanks



Archive powered by MHonArc 2.6.16.

§