1. Clone project https://github.com/andsimakov/ds-ws-3
$ git clone git@github.com:andsimakov/ds-ws-3.git
Video: cookiecutter-terraform.mp4
$ cd cookiecutter
$ docker-compose run --rm cookiecutter cookiecutter/terraform
# cd ..
# chown `whoami`:`whoami` terraform/ -R
terraform/secret.tfvars
digitalocean_token = "you digitalocean token"
mailgun_api_key = "you mailgun api key"
mailgn_smtp_password = "mailgn smtp password"
$ cd terraform
$ docker-compose run --rm terraform plan -var-file="secret.tfvars"
Video: apply-terraform.mp4
$ docker-compose run --rm terraform apply -var-file="secret.tfvars"
Video: install-roles-ansible.mp4
$ cd ansible
$ docker-compose run --rm ansible ansible-galaxy install -p roles -r requirements.yml
ansible/group_vars/all.yml
letsencrypt_admin_email
Video: run-ansible.mp4
$ docker-compose run --rm ansible ansible-playbook all.yml -i inventory
$ cd docker
$ docker-compose up
Video: start-jenkins.mp4
Video: configure-jenkins.mp4
$ docker-compose run --rm terraform destroy -var-file="secret.tfvars"