Skip to content

rbjorklin/nomad-demo

Repository files navigation

This is a small PoC for automating the setup of a few software projects one might want to use when developing and deploying software.

  • Vagrant - Repeatable automated development environments
  • Ansible - Automation & orchestration
  • Consul - Service mesh to discover & connect services
  • Nomad - Application scheduler
  • Vault - Secrets management

See Makefile for some available actions.

Setup in Hetzner's Cloud

git clone --recurse-submodules <repo url>
export TF_VAR_ssh_key="<insert name of hetzner ssh key here>"
export TF_VAR_hcloud_token="<insert hcloud token here>"
export TF_VAR_aws_r53_zone_id="<insert zone_id>"
export AWS_ACCESS_KEY_ID="<access key>"
export AWS_SECRET_ACCESS_KEY="<secret key>"
terraform apply

In case Vagrant fails to add the extra disks the storage controller might have to be adjusted. You can find out what your VMs were created with by running: VBoxManage list vms | cut -d \ -f 1 | xargs -i VBoxManage showvminfo {} | grep "Storage Controller Name" and then update the $storage_controller field in config.rb

About

Playing around with Hashicorp Nomad

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published