nomad

License Build Status

Ansible Role - Nomad agent

It provides a totally customizable Ansible role for the installation of Nomad. If the variable create_nomad_service is true, this role creates a Linux service.

Role Variables

The variables used for the installation and configuration are described in defaults/main file.

Example Playbook

Deployment of client and server with Consul enabled (and available 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

Apache 2.0

About

Installs Nomad

Install
ansible-galaxy install serlophug/ansible-role-nomad
GitHub repository
License
apache-2.0
Downloads
124
Owner
Ph.D in Computer Science. Universitat Politècnica de València.