Skip to content

Loading…

Add `gitlab_branch` attribute. #2

Merged
merged 1 commit into from

2 participants

@fnichol

Hey there,

This will allow a cookbook user to select which branch of the Git repo they desire. I left the default as "master" so as not to change any behavior, but I think a better default might be "stable" as they suggest in their wiki page.

@atomic-penguin atomic-penguin merged commit d5425c0 into atomic-penguin:master
@atomic-penguin atomic-penguin added a commit that referenced this pull request
@atomic-penguin travis ci test #2 70f829d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 12, 2012
  1. @fnichol

    Add `gitlab_branch` attribute.

    fnichol committed
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 1 deletion.
  1. +4 −0 README.md
  2. +1 −0 attributes/default.rb
  3. +1 −1 recipes/default.rb
View
4 README.md
@@ -115,6 +115,10 @@ Attributes
- Github gitlab address
- Default git://github.com/gitlabhq/gitlabhq.git
+* gitlab['gitlab\_branch']
+ - Gitlab git branch
+ - Default master
+
* gitlab['packages']
- Platform specific OS packages
View
1 attributes/default.rb
@@ -25,6 +25,7 @@
# Set github URL for gitlab
default['gitlab']['gitlab_url'] = "git://github.com/gitlabhq/gitlabhq.git"
+default['gitlab']['gitlab_branch'] = "master"
# Required packages for Gitlab
case node['platform']
View
2 recipes/default.rb
@@ -153,7 +153,7 @@
# Clone Gitlab repo from github
git node['gitlab']['app_home'] do
repository node['gitlab']['gitlab_url']
- reference "master"
+ reference node['gitlab']['gitlab_branch']
action :checkout
user node['gitlab']['user']
group node['gitlab']['group']
Something went wrong with that request. Please try again.