Bacula Server 7.4.7 on AWS – Infrastructure as Code

Creating Bacula Server 7.4.7 on AWS – Infrastructure as Code

 

Alt text


Step 1 – Project clone

$ git clone https://github.com/vandocouto/Ansible-Bacula.git

Step 2 – Accessing the project directory

$ cd Ansible-Bacula

TERRAFORM

Step 3 – Configuring variables according to your sizing

$ vim terraform/default/variables.tf

Step 5 – Accessing directory terrform

$ cd terraform

Step 5 – Terraform plan

$ ./deploy.sh default plan

Step 6 – Terraform apply (Build project)

$ ./deploy.sh default apply

OUTPUT Terraform

Outputs:

 Endpoint Bucket = storagebaculasd
 Endpoint MariaDB = bacula.crje9bunlidu.us-east-1.rds.amazonaws.com:3306
 Private IP = 10.0.0.191
 Public Elastic IP = 34.230.96.230

ANSIBLE

Step 1 – Configuring the hosts file in according to the output of the terraform output

[bacula]
34.230.96.230

[all:vars]
ansible_ssh_user=ubuntu
ansible_ssh_private_key_file=../chave/Blog-Estudo.pem
privateip=10.0.0.191

# MariaDB
useradmin=root
bdpassadmin=passroot
bdpassuser=tutoriais2017
bdendpoint=bacula.crje9bunlidu.us-east-1.rds.amazonaws.com

# Bacula
linkbacula=https://downloads.sourceforge.net/project/bacula/bacula/7.4.7/bacula-7.4.7.tar.gz
dirbacula=bacula-7.4.7

# Bacula Pass
baculapass=geIeA6w+IVRaWuKNioA687uSeZia64VRZHJ7dFYidZaq
server_name=BaculaServer

# S3 - Aws info credentials access S3
bucket=
accesskey=
keypass=

Step 2 – Running playbook

$ ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts ./tasks/main.yml
Bacula Server 7.4.7 on AWS – Infrastructure as Code
Tagged on:

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

%d blogueiros gostam disto: