No Description

Edin Sarajlic 7eeee3c1ab Refactor: rename functions to illustrate that they deploy code 11 months ago
README fa597ee852 README: remove conflicting piece of info (the script *does not*) create required directories 2 years ago
run.sh 7eeee3c1ab Refactor: rename functions to illustrate that they deploy code 11 months ago

README

run.sh (./deploy/run.sh) is a simple wrapper script around Ansible.

The script provides simple wrapper functions for:
- Bootstrapping a new system
- Deploying a Standard Operating Environment (SOE)
- Deploying a customisation

---

Setup:

The script expects a few directories to exist (at the same depth as
the deploy directory). These directories will need to be created
manually:

├── deploy
│   ├── README [YOU ARE HERE]
│   └── run.sh

├── playbooks
│   ├── customisation
│   ├── soe

├── files
│   ├── customisation
│   ├── soe

---

The script allows you to easily perform the following tasks:

1. Bootstrap a system to be used as an Ansible client:

Adds (removes first, if required) host's keys in ~/.ssh/known_hosts

Runs playbook: playbooks/soe/ansible.yml (defined by you).


2. Deploy a SOE (Standard Operating Environment):

Runs playbook: playbooks/soe/soe.yml (defined by you).


3. Deploy a customisation:

Runs "customisation" playbook (defined by you):
playbooks/customisation//.yml

---

Quick Reference:

1. Bootsrap:
./deploy/run.sh bootstrap

For example:
./deploy/run.sh bootstrap dev.localdomain


2. Deploy a SOE:
./deploy/run.sh soe

For example:
./deploy/run.sh soe dev.localdomain


3. Deploy a customisation:
./deploy/run.sh customisation --name=

./deploy/run.sh customisation --name=mywebsite dev.localdomain
This runs playbooks/customisation/dev.localdomain/mywebsite.yml