#!/bin/bash
yum install -y curl policycoreutils-python openssh-server perl
systemctl enable sshd
systemctl start sshd
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
systemctl reload firewalld
curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash
EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-jh
echo "https://gitlab.example.com"
echo "username: root"
echo "password: "$(awk '/^Password/ {print $2}' /etc/gitlab/initial_root_password)