-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmakefile
44 lines (35 loc) · 1.32 KB
/
makefile
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
# Instalando ferramentas necessárias
init:
if [ -x /usr/bin/pacman ]; then \
xargs -a packages/packages.txt sudo pacman -Sy --noconfirm; \
elif [ -x /usr/bin/apt-get ]; then \
xargs -a packages/packages.txt sudo apt-get install -y; \
elif [ -x /usr/bin/yum ]; then \
xargs -a packages/packages.txt sudo yum -y install; \
else \
echo "No package manager found"; \
fi
# Inicializando configuração do docker nos hosts
container:
ansible-playbook -i inventories/virtualbox.yaml site.yaml --tags setup
# Inicializando configuração do jenkins
jenkins:
ansible-playbook -i inventories/virtualbox.yaml site.yaml --tags jenkins
# Inicializando configuração do registry
registry:
ansible-playbook -i inventories/virtualbox.yaml site.yaml --tags registry
# Inicializando configuração do sonar
sonar:
ansible-playbook -i inventories/virtualbox.yaml site.yaml --tags sonar
# Inicializando configuração do gitlab
gitlab:
ansible-playbook -i inventories/virtualbox.yaml site.yaml --tags gitlab
# Inicializando configuração do docker, jenkins, sonar e gitlab
setup:
ansible-playbook -i inventories/virtualbox.yaml site.yaml --tags setup,jenkins,sonar,gitlab,registry
# Inicializando as vms com vagrant
vagrant_up:
bash scripts/vagrant_up.sh
# Destruindo as vms com vagrant
vagrant_destroy:
bash scripts/vagrant_destroy.sh