Thanks to visit codestin.com
Credit goes to github.com

Skip to content

serlophug/ansible-role-nomad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Ansible role for Hashicorp Nomad installation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%