Chef solo with Bazaar version control system

108 Views Asked by At

I created recipes in chef solo with following command

bzr init

bzr branch sftp://username@ip/~/branch-name

up to bzr init it will work but second command it requires password for username is there any method or option that i can use to send password with it or any way that does not require password

2

There are 2 best solutions below

1
On

You should be able to add the password to the URL:

bzr branch sftp://username:password@ip/~/branch-name
1
On

You can append the login info to ~/.bazaar/authentication.conf eg.:

# Identity on foo.net
[foo.net]
scheme=ftp
host=foo.net
user=joe
password=secret-pass

See this for more info: http://doc.bazaar.canonical.com/developers/authentication-ring.html