-
Notifications
You must be signed in to change notification settings - Fork 62
/
create_all.sh
executable file
·35 lines (22 loc) · 1.42 KB
/
create_all.sh
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
#!/usr/bin/env bash
set -euo pipefail
vagrant up
vagrant dns --install
# Prepare Gitlab on a Server (here Vagrant)
# If https_internal_server is set to true, be sure to provide providername, providerusername & providertoken (and maybe whitelist your current Internet IP)
ansible-playbook -i hosts prepare-gitlab.yml --extra-vars "providername=yourProviderNameHere providerusername=yourUserNameHere providertoken=yourProviderTokenHere"
# Only, if you don´t use Vagrant or an only internally accessible Server, you can ignore the extra-vars - Gitlab will handle Let´s Encrypt for you then
#ansible-playbook -i hosts prepare-gitlab.yml
### Provision only certain steps
# Only apt-get update
#ansible-playbook -i hosts prepare-gitlab.yml --tags "update"
# Only install Gitlab on the server (skip Docker installation)
#ansible-playbook -i hosts prepare-gitlab.yml --tags "docker"
# Create Let´s Encrypt Certificates for our Vagrant Box (non-publicly accessable server)
#ansible-playbook -i hosts prepare-gitlab.yml --tags "letsencrypt" --extra-vars "providername=yourProviderNameHere providerusername=yourUserNameHere providertoken=yourProviderTokenHere"
# Install Gitlab only
#ansible-playbook -i hosts prepare-gitlab.yml --tags "gitlab"
# Install Container Registry only
#ansible-playbook -i hosts prepare-gitlab.yml --tags "registry"
# Install & configure Gitlab Runners only
#ansible-playbook -i hosts prepare-gitlab.yml --tags "runner"