Skip to content

Instantly share code, notes, and snippets.

@langerma
Created October 18, 2020 11:47
Show Gist options
  • Save langerma/9e508e3d0c06f096edc0c219e8def023 to your computer and use it in GitHub Desktop.
Save langerma/9e508e3d0c06f096edc0c219e8def023 to your computer and use it in GitHub Desktop.
langerma@macbookpro:~/repos/ansible/langerma.tsdb|master⚡ ⇒ cat nomad.yml
- hosts: nomad_instances
become: true
vars:
nomad_version: 0.12.1
tasks:
- name: import nomad
import_role:
name: ansible-nomad
- name: Start nomad
service:
name: nomad
state: restarted
enabled: yes
langerma@macbookpro:~/repos/ansible/langerma.tsdb|master⚡ ⇒ cd group_vars
langerma@macbookpro:~/repos/ansible/langerma.tsdb/group_vars|master⚡ ⇒ cat nomad_instances.yml
---
nomad_docker_enable: true
nomad_no_host_uuid: yes
nomad_use_consul: yes
nomad_datacenter: "morsegasse"
nomad_rejoin_after_leave: yes
#nomad_consul_tags:
# - traefik.enable=true
nomad_options:
docker.privileged.enabled: true
docker.volumes.enabled: true
nomad_config_custom:
telemetry:
collection_interval: "1s"
disable_hostname: true
prometheus_metrics: true
publish_allocation_metrics: true
publish_node_metrics: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment