gitlab_omnibus_issues_tracker_tutorial.txt 1.65 KB
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