Deploy a rails application using SVN with username and password


#1

Hi,

I am attempting to deploy a rails application using the application provider.
However there does not appear to be a way to pass the svn_username and
svn_password through.

Here is my recipe code;

application “myservice” do

path “/var/lib/myservice”

scm_provider Chef::Provider::Subversion
svn_username "xxxxx"
svn_password “yyyyy”

rails do
end

passenger_apache2 do
end

end

This is an ubuntu precise64 vagrant VM being provisioned via chef-solo version
Chef: 10.16.2

What is the format for getting svn username and password attributes into the
application provider? Do I need to inject them into the Subversion provider
directly somehow?

Regards,
Tommy


#2

You may want to have a look at this pull-request:

Tensibai

Le 2013-03-25 05:11, tommy.fotak@utas.edu.au a écrit :

Hi,

I am attempting to deploy a rails application using the
application provider.
However there does not appear to be a way to
pass the svn_username and
svn_password through.

Here is my recipe
code;

application “myservice” do

path “/var/lib/myservice”

scm_provider Chef::Provider::Subversion
svn_username “xxxxx”

svn_password “yyyyy”

rails do
end

passenger_apache2 do

end

end

This is an ubuntu precise64 vagrant VM being
provisioned via chef-solo version
Chef: 10.16.2

What is the
format for getting svn username and password attributes into the

application provider? Do I need to inject them into the Subversion
provider

directly somehow?

Regards,
Tommy


#3

Let’s retry this question. I’m wrestling with myself at the moment too!

Anyone?

Ringo

On 25 March 2013 05:11, tommy.fotak@utas.edu.au wrote:

Hi,

I am attempting to deploy a rails application using the application
provider.
However there does not appear to be a way to pass the svn_username and
svn_password through.

Here is my recipe code;

application “myservice” do

path “/var/lib/myservice”

scm_provider Chef::Provider::Subversion
svn_username "xxxxx"
svn_password “yyyyy”

rails do
end

passenger_apache2 do
end

end

This is an ubuntu precise64 vagrant VM being provisioned via chef-solo
version
Chef: 10.16.2

What is the format for getting svn username and password attributes into
the
application provider? Do I need to inject them into the Subversion provider
directly somehow?

Regards,
Tommy


#4

Ringo,

I would recommend opening a ticket on the application cookbook. This might be a bug in one of those cookbooks, and the maintainer will be able to help you out.

Seth Vargo
Release Engineer, Chef
@sethvargo

On Feb 7, 2014, at 3:27 PM, Ringo De Smet ringo.desmet@gmail.com wrote:

Let’s retry this question. I’m wrestling with myself at the moment too!

Anyone?

Ringo

On 25 March 2013 05:11, tommy.fotak@utas.edu.au wrote:
Hi,

I am attempting to deploy a rails application using the application provider.
However there does not appear to be a way to pass the svn_username and
svn_password through.

Here is my recipe code;

application “myservice” do

path “/var/lib/myservice”

scm_provider Chef::Provider::Subversion
svn_username "xxxxx"
svn_password “yyyyy”

rails do
end

passenger_apache2 do
end

end

This is an ubuntu precise64 vagrant VM being provisioned via chef-solo version
Chef: 10.16.2

What is the format for getting svn username and password attributes into the
application provider? Do I need to inject them into the Subversion provider
directly somehow?

Regards,
Tommy