Skip to content

Commit

Permalink
Merge pull request #44 from Diesel-Net/development
Browse files Browse the repository at this point in the history
Promotion
  • Loading branch information
tomdaley92 authored Dec 17, 2021
2 parents bb29c97 + 1fff226 commit 4fa049a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ansible/roles/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
- name: docker
scm: git
src: "[email protected]:Diesel-Net/ansible-role-docker.git"
version: 1.5.1
version: 1.8.0
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 4fa049a

Please sign in to comment.