You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+54-43Lines changed: 54 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,46 @@
2
2
3
3
Chef cookbook to setup gitlab v5.2 according to [these instructions](https://github.com/gitlabhq/gitlabhq/blob/v5.2.0/doc/install/installation.md).
4
4
5
-
# Requirements
5
+
##Requirements
6
6
7
-
To develop and test this cookbook, we recommend installing [Vagrant](http://www.vagrantup.com/) and [vagrant-berkshelf](https://github.com/RiotGames/vagrant-berkshelf).
7
+
To contribute to and test this cookbook, we recommend installing [Vagrant](http://www.vagrantup.com/) and [vagrant-berkshelf](https://github.com/RiotGames/vagrant-berkshelf).
8
8
9
-
####Platforms
9
+
###Supported Platforms
10
10
* Ubuntu 12.04
11
11
* CentOS 6.4
12
12
13
-
#Usage
13
+
## Attributes
14
14
15
-
## gitlab::default
15
+
It is recommended that you change the following attributes:
16
+
17
+
*`node['gitlab']['root']['name']` - Name of the root user. (default: 'Administrator')
18
+
*`node['gitlab']['root']['email']` - Email of the root user. (default: '[email protected]')
19
+
*`node['gitlab']['root']['username']` - Username of the root user. (default: 'root')
20
+
*`node['gitlab']['root']['password']` - Password of the root user. (default: '5iveL!fe')
21
+
22
+
Set these attributes to match your server configuration:
23
+
24
+
*`node['gitlab']['url']` - Url to the gitlab instance. Used for api calls (default: 'http://localhost/')
25
+
*`node['gitlab']['host']` - Host name in gitlab.yml (default: 'localhost')
26
+
*`node['gitlab']['email_from']` - Email address used in the "From" field in mails sent by GitLab (default: 'gitlab@localhost')
27
+
*`node['gitlab']['support_email']` - Email address of your support contact (default: 'support@localhost')
28
+
29
+
See the `attributes/default.rb` file for the full list of attributes.
30
+
31
+
## Usage
32
+
33
+
Installing Ruby and configuring Nginx are now separated from the default recipe. This allows users to choose their prefered ruby installation and to use apache instead of nginx. (If you do use apache, please consider writing a recipe and opening a pull request).
16
34
17
-
Default recipe. Installs Gitlab with all its dependencies. Configures it as a service that is started at boot time.
35
+
There are three recipes in this cookbook to help you install ruby:
36
+
37
+
*`gitlab::ruby_package`: Install ruby through the OS package manager. Uses the `node['ruby_package']['version']` attribute. (Recommended for new user)
38
+
*`gitlab::ruby_build`: Compile ruby from source with [ruby_build](https://github.com/sstephenson/ruby-build). Uses the `node['ruby_build']['version']` attribute. (For advanced users)
39
+
*`gitlab::ruby_rvm`: Compile ruby via [rvm](https://rvm.io/). This recipe is a little less stable than the previous two recipes. Please open an issue or pull request if you encounter problems. Uses the `node['rvm']['default_ruby']` attribute.
40
+
41
+
42
+
### gitlab::default
43
+
44
+
Default recipe. Installs Gitlab and its dependencies. Configures it as a service that is started at boot time.
18
45
19
46
Add `gitlab::default` to your node's run_list and make sure to set these attributes:
20
47
@@ -40,19 +67,23 @@ Add `gitlab::default` to your node's run_list and make sure to set these attribu
40
67
}
41
68
```
42
69
43
-
When running on CentOS, you also have to provide the following RVM configuration:
70
+
Make sure your node has ruby 1.9.3 installed. (eg: by using the `gitlab::ruby_package` recipe). You can optionally add the `gitlab::nginx`.
44
71
45
72
```json
46
-
"rvm" : {
47
-
"default_ruby" : "1.9.3",
48
-
"global_gems" : [
49
-
{"name" : "bundler"},
50
-
{"name" : "chef"}
73
+
{
74
+
"run_list": [
75
+
"recipe[gitlab::ruby_package]",
76
+
"recipe[gitlab::default]",
77
+
"recipe[gitlab::nginx]"
51
78
]
52
79
}
53
80
```
54
81
55
-
## With Vagrant from an other repository
82
+
See the [Vagrantfile](https://github.com/andruby/gitlab-cookbook/blob/master/Vagrantfile) for a full example.
83
+
84
+
### gitlab::development
85
+
86
+
Recipe to set up most development requirements.
56
87
57
88
When I work on the GitlabHQ code I use this Vagrantfile (inside the GitlabHQ code directory):
58
89
@@ -66,8 +97,8 @@ Vagrant.configure("2") do |config|
It is recommended that you change the following attributes:
111
-
112
-
*`node['gitlab']['root']['name']` - Name of the root user. (default: 'Administrator')
113
-
*`node['gitlab']['root']['email']` - Email of the root user. (default: '[email protected]')
114
-
*`node['gitlab']['root']['username']` - Username of the root user. (default: 'root')
115
-
*`node['gitlab']['root']['password']` - Password of the root user. (default: '5iveL!fe')
116
-
117
-
Set these attributes to match your server configuration:
118
-
119
-
*`node['gitlab']['url']` - Url to the gitlab instance. Used for api calls (default: 'http://localhost/')
120
-
*`node['gitlab']['host']` - Host name in gitlab.yml (default: 'localhost')
121
-
*`node['gitlab']['email_from']` - Email address used in the "From" field in mails sent by GitLab (default: 'gitlab@localhost')
122
-
*`node['gitlab']['support_email']` - Email address of your support contact (default: 'support@localhost')
123
-
124
-
See the `attributes/default.rb` file for the full list of attributes.
135
+
When your VM is up and provisioned you should run `bundle install --without postgres` and `rake gitlab:setup` inside the VM in the `/vagrant` directory.
0 commit comments