Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ability to specify git branch attribute

  • Loading branch information...
commit 25df79b6ef19196c09db6b6053ea197b49d80efe 1 parent e0b1bcd
@bcwaldon bcwaldon authored
View
1  cookbooks/devstack/attributes/default.rb
@@ -1,5 +1,6 @@
default[:devstack][:reclone] = "yes"
default[:devstack][:repository] = "git://github.com/openstack-dev/devstack.git"
+default[:devstack][:branch] = "master"
default[:devstack][:admin_password] = "secrete"
default[:devstack][:mysql_password] = "secrete"
default[:devstack][:rabbit_password] = "secrete"
View
6 cookbooks/devstack/recipes/default.rb
@@ -30,6 +30,12 @@
not_if { File.directory?("#{node[:devstack][:dir]}/devstack") }
end
+execute "git checkout #{node[:devstack][:branch]}" do
+ cwd "#{node[:devstack][:dir]}/devstack"
+ user node[:devstack][:user]
+ group node[:devstack][:group]
+end
+
template "#{node[:devstack][:dir]}/devstack/localrc" do
source "localrc.erb"
owner node[:devstack][:user]
Please sign in to comment.
Something went wrong with that request. Please try again.