Infrastructure scripts
In the previous article we described the reasons that made us change the provider. In this article we will describe how we built our infrastructure as code. As a first step let’s create a bash script to run the playbook:
1
2
3
4
5
6
7
8
9
10
11
|
:~$ ./infrastructure_nuvola_env_aws.sh --env prod
#!/bin/bash
. libs/extra_option_parser.sh
…
ansible-playbook
--vault-password-file secrets/infrastructure_nuvola_env.secret \
ansible/infrastucture_nuvola_env.yml \
-e"$EXTRA_OPTIONS"
|
With…