torian.nomad
Ansible Role for Hashicorp Nomad
This Ansible Role installs and sets up Hashicorp Nomad on Red Hat/CentOS or Debian/Ubuntu systems.
Tested On
- EL / CentOS (6 / 7)
- Ubuntu (Bionic / Focal)
Role Variables
To be determined
Usage
The role allows you to use various variables for Nomad configuration settings without restrictions. You can define the configuration in YAML blocks and even separate it into different files.
Here’s an example that installs and configures Nomad version 0.12.0
and creates two HCL configuration files at /etc/nomad.d/{base,server}.hcl
. This should help you see how it works:
- hosts: nomad_servers
vars:
- nomad_version: 0.12.0
- nomad_config:
base: |
bind_addr = "{{ansible_default_ipv4.address}}"
log_level = "DEBUG"
data_dir = "{{ nomad_data_dir }}"
server: |
server {
enabled = true
bootstrap_expect = 3
}
consul {
server_auto_join = true
}
roles:
- { role: torian.nomad, become: true }
License
See License
Author Information
This role was created in 2017 by Emiliano Castagnari.
Installa
ansible-galaxy install torian.nomad
Licenza
apache-2.0
Download
4k
Proprietario
Ninja Sysadmin, DevOps Monk, Fulltime Dad