Add staging and development environments

Differentiated between both.

Development environment takes place locally, most directly through the
use of a vagrant machine on the development machine.

Staging environment mimics the final production environment, but is
situated on another server and, most probably, points to a different
address. Otherwise, however, it translates much more closely (dns
entries etc) to the production setup.

Production is just that, the final deployment.
This commit is contained in:
Marty Oehme 2021-10-21 14:23:20 +02:00
parent da1e696292
commit 30089b434e
Signed by: Marty
GPG key ID: B7538B8F50A1C800
5 changed files with 20 additions and 1 deletions

5
.gitignore vendored
View file

@ -5,6 +5,11 @@
### Ansible ### ### Ansible ###
*.retry *.retry
### ansible private files ###
inv-prod.yml
group_vars/staging.yml
host_vars/ssdnodes.yml
### Linux ### ### Linux ###
*~ *~

View file

@ -1,3 +1,3 @@
[defaults] [defaults]
inventory = ./staging.yml inventory = ./inv-dev.yml

8
inv-staging.yml Normal file
View file

@ -0,0 +1,8 @@
staging:
hosts:
ssdnodes:
docker_swarm_manager_node:
hosts:
ssdnodes:

6
site-dev.yml Normal file
View file

@ -0,0 +1,6 @@
---
- hosts: docker_swarm_manager_node
roles:
- whoami
- wallabag