Requirements:
ansible 2.7.0testsuperpeer{1,2,3}rightmeshio.pemkeys have been added to the SSH authentication agent- You can do this via
ssh-add, e.g.ssh-add testsuperpeer1rightmeshio.pem
- You can do this via
deploy
|
|-- docker # docker image definitions
| -- parity
| -- superPeer
| -- vizSuperPeer
|-- roles # remote machine roles (currently just base dependencies)
| -- base
|-- playbook.yml # ansible definition entrypoint
|-- Vagrantfile # local VM testing definition
|-- hosts.yml # remote / local env variables
Run cd docker && make
This will generate a new Superpeer binary via gradle and copy it to each docker folder so that the docker image building process has it in context to install independently.
make recurs into each docker directory building the associated Dockerfile and cleaning up (rm'ing) copied binaries.
Finally the built docker images are output as tar files in docker/images so that they can be copied to remote hosts and imported for use. Image output, copy, and install will go away with the completion of this ticket: RM-1101.
vagrant upansible-playbook -i hosts.yml -l localhost playbook.yml
ansible-playbook -i hosts.yml -l aws playbook.yml
Ansible deployments are declarative in nature which makes them generally quite readable yet opaque.
To get better visibility into what ansible is actually doing you can append the v switch to the ansible-playbook command to get detailed output related to the steps ansible is trying to complete. See here for more details.