torrick / ansible-nomad

Ansible role for HashiCorp Nomad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nomad

Install, configure and maintain Nomad - a workload orchestrator from HashiCorp.

Role Philosophy

Please see ansible-consul.

Role Variables

See defaults/ for details and examples.

nomad_version

  • version to use

nomad_dirs

  • a map of directories to create
  • default:
nomad_dir: "/opt/nomad"
nomad_dirs:
  main:
    path: "{{ nomad_dir }}"
  configs:
    path: "{{ nomad_dir }}/config.d"
  certs:
    path: "{{ nomad_dir }}/certs"
    mode: "u=rwX,g=rX,o="
  logs:
    path: "/var/log/nomad"
  data:
    path: "/var/lib/nomad"
    mode: "u=rwX,g=rX,o="

nomad_config

nomad_configs

  • map of configuration files to create in config.d directory

nomad_user

  • owner of nomad process and files. Set to nomad on server hosts. On client hosts root is required.
  • default: root

nomad_grop

  • group of nomad_user. Set to nomad on server hosts.
  • default: root

nomad_download_url

  • url to get nomad archive from
  • default: https://releases.hashicorp.com

nomad_service

nomad_unitfile

skip_handlers

  • skipt consul restart/reload - useful when building images with packer
  • default: false

Tags

  • config - update Nomad unit/service file and sync configuration files

Author

  • Anatoly Laskaris - nahsi

About

Ansible role for HashiCorp Nomad

License:MIT License


Languages

Language:Python 100.0%