gitlab_omnibus_issues_tracker_tutorial.txt
1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Install vim, wget and openssh-server
.. code-block::
sudo yum install vim wget openssh-server
Download and install Gitlab-7.0.0 package
.. code-block::
wget https://downloads-packages.s3.amazonaws.com/centos-6.5/gitlab-7.0.0_omnibus-1.el6.x86_64.rpm
sudo rpm -i gitlab-7.0.0_omnibus-1.el6.x86_64.rpm
Add the configurations settings for external url, services ports and issues tracker
.. code-block::
sudo vim /etc/gitlab/gitlab.rb
Change external url altering the line
.. code-block::
external_url "http://gitlab.example.com
To
.. code-block::
external_url "http://<IP>"
Where <IP> is the external url of Gitlab.
Add the following settings, to set the ports of services:
.. code-block::
redis['port'] = 1234
postgresql['port'] = 2345
unicorn['port'] = 3456
Enable signup feature, adding the line:
.. code-block::
gitlab_rails['gitlab_signup_enabled'] = "true"
Add the following settings, to set Redmine as issue tracker:
.. code-block::
gitlab_rails['issues_tracker_redmine'] = "redmine"
gitlab_rails['issues_tracker_redmine_title'] = "Redmine"
gitlab_rails['issues_tracker_redmine_project_url'] = "http://<redmine-url>/projects/:issues_tracker_id"
gitlab_rails['issues_tracker_redmine_issues_url'] = "http://<redmine-url>/issues/:id"
gitlab_rails['issues_tracker_redmine_new_issue_url'] = "http://<redmine-url>/projects/:issues_tracker_id/issues/new"
Where <redmine-url> is the Redmine url.
Save the changes, running:
.. code-block::
[ESC]:wq!
Run the following command for the changes to take effect:
.. code-block::
sudo gitlab-ctl reconfigure
Open firewall for http and ssh services:
.. code-block::
sudo lokkit -s http -s ssh