serlophug.nomad

Ansible Role - Nomad Agent

This is an Ansible role for easily installing Nomad. If you set the variable create_nomad_service to true, it will automatically create a Linux service for you.

Role Variables

You can find all the variables needed for installation and configuration in the defaults/main file.

Example Playbook

Here’s how to set up both a client and a server with Consul enabled (make sure Consul is running at 172.17.0.2):

- hosts: servers
  vars:
    name: server 
    nomad_user: nomad
    nomad_group: nomad
    bind_address: "172.17.0.3"
    server_enabled: true
    client_enabled: false
    use_consul: true
    consul_address: "172.17.0.2:8500"
    create_nomad_service: true
  roles:
     - { role: serlophug.nomad }

- hosts: clients
  vars:
    name: server 
    nomad_user: nomad
    nomad_group: nomad
    bind_address: "172.17.0.4"
    server_enabled: false
    client_enabled: true
    use_consul: true
    consul_address: "172.17.0.2:8500"
    create_nomad_service: true
  roles:
     - { role: serlophug.nomad }

License

This role is licensed under Apache 2.0.

Informazioni sul progetto

Installs Nomad

Installa
ansible-galaxy install serlophug.nomad
Licenza
apache-2.0
Download
133
Proprietario
Ph.D in Computer Science. Universitat Politècnica de València.