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


Chronological Thread 
  • From: Jeremy Voorhis < >
  • To:
  • Subject: [chef] Re: Git resource, https clone, and username and password auth using git resource
  • Date: Wed, 20 Jun 2012 12:42:07 -0700

I'd try embedding the username and password in the git url, i.e. "https://user: /mycompany/MyRepo.git".

Cheers,

Jeremy

On Tuesday, June 19, 2012 at 11:25 PM, David Montgomery wrote:

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
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.

§