Example of CD/CI for nomad jobs:
- Consul
- Nomad
- Vagrant
- Ansible
- Docker
- Use Vagrant box with installed HashiCorp stack (Consul, Nomad, Vault, etc...)
- Use Ansible integration with Vagrant for provisioning
- Wait for nomad available
- Run nomad job(s)
- Wait until all service's healthchecks become in status
passing
- Vagrant box with installed HashiCorp stack
- Conditional provisioning ansible with vagrant 1
- Conditional provisioning ansible with vagrant 2
ANSIBLE_ARGS='--extra-vars "mode=test"' vagrant up provision