Gitlab

by etagserver
13 deployments · 5 still active · last rev. 9 months ago

Sets up a Gitlab, copied and modified from another stackscript

Default username is root with password

Compatible with: Ubuntu 14.04 LTS
						#!/bin/bash
# <UDF name="HOSTNAME" Label="Host Name for VM" example="gitlab"/>
# <UDF name="FQDN" Label="Fully Qualified Domain Name" example="gitlab.example.com" />
# <UDF name="URL" Label="Full URL for new gitlab site" example="http://gitlab.example.com" />

source <ssinclude StackScriptID="1">

system_update
system_set_hostname "$HOSTNAME"
system_add_host_entry "$(system_primary_ip)" "$FQDN"

# Set directives to allow for silent postfix install, this will create an "Internet Site" for postfix
debconf-set-selections <<< "postfix postfix/mailname string $FQDN"
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"

# Install Pre Reqs
apt-get -y install wget openssh-server postfix

# Download and Install gitlab
# curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
# sudo apt-get install gitlab-ce

# Download and Install gitlab from package
wget https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce_8.2.0-ce.0_amd64.deb/download
dpkg -i download

# Configure gitlab with Site URL
echo "external_url '$URL'" > /etc/gitlab/gitlab.rb

# Launch gitlab
gitlab-ctl reconfigure