[chef] Re: Re: Question about application(_django)


Chronological Thread 
  • From: Andrea Campi < >
  • To: " " < >
  • Subject: [chef] Re: Re: Question about application(_django)
  • Date: Fri, 16 Nov 2012 10:52:28 +0100

SVN is not currently supported with the application cookbook, but there is a pull request.

You should get your cookbook from this branch: https://github.com/lastobelus/chef-application/tree/svn_support

The commit that matters to you is  https://github.com/lastobelus/chef-application/commit/46094e5c9479321361c1a35df2d50f0452f444df 


On Fri, Nov 16, 2012 at 10:39 AM, Arnold Krille < " target="_blank"> > wrote:
Hi again,

after yesterdays tips, I added our ca to the trusted CAs for the system and
now its actually the user and password that is not working.
Here is my current cookbook with error-messages as comments:
---
package "subversion"

application "ohf2" do
  path "/srv/ohf2"
  owner "www-data"
  group "www-data"
  #scm_provider Chef::Provider::Subversion
  ## Doesn't work, asks for svn-password for user www-data...
  scm_provider Chef::Provider::Subversion do
    svn_username "deployment"
    svn_password "***"
  end
  ## FATAL: NoMethodError: undefined method `set' for
Chef::Provider::Subversion:Class
  #scm_provider.set["svn_username"] = "deployment"
  #scm_provider.set["svn_password"] = "***"
  repository "https://development.bcs.bcs/svn/bcspackages/trunk/monster-
master"
  ## FATAL: NoMethodError: undefined method `set' for
Chef::Provider::Subversion:Class
  #scm_provider.set["svn_username"] = "deployment"
  #scm_provider.set["svn_password"] = "***"

  #migrate true

  django do
    packages ["django", "django_extensions", "django-mptt", "south"]
    debug true

  end

end
---

How do I get the checkout to know the credentials? How do I get application to
pass the credentials to the deploy-resource which seems to know what to do
with svn_username and svn_password?

Thanks in advance,

Arnold




Archive powered by MHonArc 2.6.16.

§