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:
parent
da1e696292
commit
30089b434e
5 changed files with 20 additions and 1 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -5,6 +5,11 @@
|
||||||
### Ansible ###
|
### Ansible ###
|
||||||
*.retry
|
*.retry
|
||||||
|
|
||||||
|
### ansible private files ###
|
||||||
|
inv-prod.yml
|
||||||
|
group_vars/staging.yml
|
||||||
|
host_vars/ssdnodes.yml
|
||||||
|
|
||||||
### Linux ###
|
### Linux ###
|
||||||
*~
|
*~
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
[defaults]
|
[defaults]
|
||||||
|
|
||||||
inventory = ./staging.yml
|
inventory = ./inv-dev.yml
|
||||||
|
|
|
||||||
8
inv-staging.yml
Normal file
8
inv-staging.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
staging:
|
||||||
|
hosts:
|
||||||
|
ssdnodes:
|
||||||
|
|
||||||
|
docker_swarm_manager_node:
|
||||||
|
hosts:
|
||||||
|
ssdnodes:
|
||||||
|
|
||||||
6
site-dev.yml
Normal file
6
site-dev.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: docker_swarm_manager_node
|
||||||
|
roles:
|
||||||
|
- whoami
|
||||||
|
- wallabag
|
||||||
Loading…
Add table
Add a link
Reference in a new issue