We want to setup an easy pattern for seperating our application from its state, so that all deployed services do not have their database and state on the same server.
This play should create a new digitalocean droplet and a digitalocean db running postgres. The db should only allow connections from the droplet. The inventory file for this host should know how to connect to the db...which means we need to retrieve the connection string and store it as a vault variable as part of the creation of the server.
We should be able to create new droplets without DB's, for those applications with no state. So the creation of the db should be behind a variable flag.
We want to setup an easy pattern for seperating our application from its state, so that all deployed services do not have their database and state on the same server.
This play should create a new digitalocean droplet and a digitalocean db running postgres. The db should only allow connections from the droplet. The inventory file for this host should know how to connect to the db...which means we need to retrieve the connection string and store it as a vault variable as part of the creation of the server.
We should be able to create new droplets without DB's, for those applications with no state. So the creation of the db should be behind a variable flag.