From c64467b149954ea593335b71523734d8ec298159 Mon Sep 17 00:00:00 2001 From: Thomas Daley Date: Sun, 12 Dec 2021 18:43:57 -0800 Subject: [PATCH 1/5] Try new ansible role changes --- .ansible/roles/requirements.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ansible/roles/requirements.yaml b/.ansible/roles/requirements.yaml index d19d852..5294e8b 100644 --- a/.ansible/roles/requirements.yaml +++ b/.ansible/roles/requirements.yaml @@ -11,4 +11,4 @@ - name: docker scm: git src: "git@github.com:Diesel-Net/ansible-role-docker.git" - version: 1.5.1 + version: development From 6cacaa899e15f75af70cd73bdfa20d05dc87e802 Mon Sep 17 00:00:00 2001 From: Thomas Daley Date: Sun, 12 Dec 2021 18:45:03 -0800 Subject: [PATCH 2/5] lock in new ansible role --- .ansible/roles/requirements.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ansible/roles/requirements.yaml b/.ansible/roles/requirements.yaml index 5294e8b..481fffc 100644 --- a/.ansible/roles/requirements.yaml +++ b/.ansible/roles/requirements.yaml @@ -11,4 +11,4 @@ - name: docker scm: git src: "git@github.com:Diesel-Net/ansible-role-docker.git" - version: development + version: 1.6.0 From 691bd92eb3b747ee770d2ed5e567c83c57d5edaf Mon Sep 17 00:00:00 2001 From: Thomas Daley Date: Thu, 16 Dec 2021 18:11:32 -0800 Subject: [PATCH 3/5] Upgrade documentation --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6b292f4..14455e0 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,29 @@ # swarm-bootstrapper Leveraging Docker Engine's built-in [Swarm Mode](https://docs.docker.com/engine/swarm/) on Ubuntu Server LTS Virtual Machines. This is the first piece of code that should be executed against a fresh host on the `diesel.net` domain -## Requirements -- Ansible 2.10+ +## Toolchain + +- ansible 4.7.0 +- ansible-core 2.11.6 +- python 3.9.7 ## Installing Dependencies + +Install necessary ansible roles. ```bash ansible-galaxy install -r .ansible/roles/requirements.yaml -p .ansible/roles --force ``` +Install `dns-python` required for [`community.general.dig`](https://docs.ansible.com/ansible/latest/collections/community/general/dig_lookup.html) +```bash +pip3 install -r .ansible/files/requirements.txt +``` + ## Configure Swarm -Right now each environment is defined as an independent Virtual Machine (single-node swarm leaders) in each respective ansible inventory. You will need to have the ansible-vault password file configured on your machine. Please read the relevant [ansible documentation](https://docs.ansible.com/ansible/latest/user_guide/vault.html#setting-a-default-password-source) for more information. + +You will need to have the ansible-vault password file configured on your machine. Please read the relevant [ansible documentation](https://docs.ansible.com/ansible/latest/user_guide/vault.html#setting-a-default-password-source) for more information. + +Bootstrap the `development` fleet. ```bash ansible-playbook .ansible/deploy.yaml -i .ansible/inventory/development ``` From 1136a7a569f2ff0de57b7658ea3c5a5c763fabd4 Mon Sep 17 00:00:00 2001 From: Thomas Daley Date: Thu, 16 Dec 2021 19:09:16 -0800 Subject: [PATCH 4/5] Try upgrading docker-ce --- .ansible/roles/requirements.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ansible/roles/requirements.yaml b/.ansible/roles/requirements.yaml index 481fffc..5294e8b 100644 --- a/.ansible/roles/requirements.yaml +++ b/.ansible/roles/requirements.yaml @@ -11,4 +11,4 @@ - name: docker scm: git src: "git@github.com:Diesel-Net/ansible-role-docker.git" - version: 1.6.0 + version: development From 1fff22607791b5460c06febceda2e6adf698e6ce Mon Sep 17 00:00:00 2001 From: Thomas Daley Date: Thu, 16 Dec 2021 19:14:59 -0800 Subject: [PATCH 5/5] Lock-in new docker role changes --- .ansible/roles/requirements.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ansible/roles/requirements.yaml b/.ansible/roles/requirements.yaml index 5294e8b..faf14dc 100644 --- a/.ansible/roles/requirements.yaml +++ b/.ansible/roles/requirements.yaml @@ -11,4 +11,4 @@ - name: docker scm: git src: "git@github.com:Diesel-Net/ansible-role-docker.git" - version: development + version: 1.8.0