-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclouds.sh
45 lines (33 loc) · 1.25 KB
/
clouds.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
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
##
## setup.sh - Canivete DevOps
##
## Site : https://alexjunio.com.br
## Autor : Alex Junio <contato@alexjunio.com.br>
##
## ------------------------------------------------------------------------ ##
## Esse script automatiza o setup de diversas ferramentas
## como: Docker, Ansible, Terraform e outros.
## ------------------------------------------------------------------------ ##
## ------------------------------------------------------------------------ ##
## CORES P/ TERMINAL
## ------------------------------------------------------------------------ ##
red=`echo -en "\e[31m"`
normal=`echo -en "\e[0m"`
green=`echo -en "\e[32m"`
orange=`echo -en "\e[33m"`
blue=`echo -en "\e[34m"`
bold=`echo -en "\e[1m"`
## ------------------------------------------------------------------------ ##
## VERIFICAO DO SO E EXECUCAO DA FUNCAO CORRESPONDENTE
## ------------------------------------------------------------------------ ##
# Detect OS
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$NAME
else
OS=$(uname -s)
fi
## ------------------------------------------------------------------------ ##
## INSTALACAO DO TERRAFORM
## ------------------------------------------------------------------------ ##