From 30089b434e2452c7c0ac1ee3d7b22c4dbb7b7f3b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 21 Oct 2021 14:23:20 +0200 Subject: [PATCH] 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. --- .gitignore | 5 +++++ ansible.cfg | 2 +- staging.yml => inv-dev.yml | 0 inv-staging.yml | 8 ++++++++ site-dev.yml | 6 ++++++ 5 files changed, 20 insertions(+), 1 deletion(-) rename staging.yml => inv-dev.yml (100%) create mode 100644 inv-staging.yml create mode 100644 site-dev.yml diff --git a/.gitignore b/.gitignore index 017a12f..d7ad54d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,11 @@ ### Ansible ### *.retry +### ansible private files ### +inv-prod.yml +group_vars/staging.yml +host_vars/ssdnodes.yml + ### Linux ### *~ diff --git a/ansible.cfg b/ansible.cfg index 7c37b6a..5f7a44a 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,3 +1,3 @@ [defaults] -inventory = ./staging.yml +inventory = ./inv-dev.yml diff --git a/staging.yml b/inv-dev.yml similarity index 100% rename from staging.yml rename to inv-dev.yml diff --git a/inv-staging.yml b/inv-staging.yml new file mode 100644 index 0000000..9eb0985 --- /dev/null +++ b/inv-staging.yml @@ -0,0 +1,8 @@ +staging: + hosts: + ssdnodes: + +docker_swarm_manager_node: + hosts: + ssdnodes: + diff --git a/site-dev.yml b/site-dev.yml new file mode 100644 index 0000000..5f348f6 --- /dev/null +++ b/site-dev.yml @@ -0,0 +1,6 @@ +--- + +- hosts: docker_swarm_manager_node + roles: + - whoami + - wallabag