- From: Arnold Krille <
>
- To:
- Subject: [chef] Re: Re: Question about application(_django)
- Date: Thu, 15 Nov 2012 18:28:37 +0100
On Thursday 15 November 2012 08:55:13 Noah Kantrowitz wrote:
>
On Nov 15, 2012, at 8:43 AM, Arnold Krille wrote:
>
> Hi all,
>
>
>
> this is probably a beginners question but I can't figure it out:
>
>
>
> I want to use application (application_django to be specific) to deploy
>
> our
>
> django project. Our source is in a subversion repository that is only
>
> accessible with a valid username/password. But I don't know how to give
>
> the
>
> username and password to the deployment process.
>
>
>
> This is what I have so far:
>
> ---
>
> application "ohf2" do
>
>
>
> path "/srv/ohf2"
>
> owner "www-data"
>
> group "www-data"
>
> scm_provider Chef::Provider::Subversion do
>
>
>
> svn_username "****"
>
> svn_password "****"
>
>
>
> end
>
> repository "https://development.bcs.bcs/svn/bcspackages/trunk/monster-
>
>
>
> master"
>
>
>
> #migrate true
>
>
>
> django do
>
>
>
> packages ["django", "django_extensions", "django-mptt"]
>
> debug true
>
>
>
> end
>
>
>
> end
>
> ---
>
>
>
> The error it returns is:
>
> ---
>
> FATAL: Errno::ENOENT: deploy_revision[ohf2]
>
> (/var/chef/cache/cookbooks/application/providers/default.rb line 122) had
>
> an error: Errno::ENOENT: No such file or directo
>
> ry - svn info
>
> https://development.bcs.bcs/svn/bcspackages/trunk/monster-master -rHEAD
>
> ---
>
> When I copy the url to a browser it asks for the authentication and when I
>
> enter the deployment-auth it shows the correct stuff...
>
>
>
> I also tried giving svn_username and svn_password as parameters on the
>
> application-level but then it just complains that it doesn't know what to
>
> do with the parameters.
>
>
>
> What should I do? What am I doing wrong?
>
> Should I ditch application and just rebuild the parts of
>
> application_django
>
> that I need for my own recipe?
>
>
Are you installing svn before calling that?
Thanks, that I didn't do.
Now it fails with:
Chef::Exceptions::Exec: deploy_revision[ohf2]
(/var/chef/cache/cookbooks/application/providers/default.rb line 122) had an
error: Chef::Exceptions::Exec: returned 1, expected 0
I can provide a stacktrace if needed, but neither the stack-trace nor the
output from chef-client tell me *which* command returned 1 instead of 0.
Any ideas how to go on?
Arnold
Attachment:
signature.asc
Description: This is a digitally signed message part.
Archive powered by MHonArc 2.6.16.