Skip to content

Commit

Permalink
Merge pull request ansible-community#64 from camskkz/add-nomad_consul…
Browse files Browse the repository at this point in the history
…_tags

add nomad_consul_tags option
  • Loading branch information
brianshumate committed Oct 22, 2019
2 parents 26626ea + 16e43aa commit 8d96ba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ nomad_consul_address: "localhost:8500"
nomad_consul_token: ""
nomad_consul_servers_service_name: "nomad-servers"
nomad_consul_clients_service_name: "nomad-clients"

nomad_consul_tags: {}

### ACLs
nomad_acl_enabled: "{{ lookup('env', 'NOMAD_ACL_ENABLED') | default('no', true) }}"
Expand Down
1 change: 1 addition & 0 deletions templates/base.hcl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ consul {
# The service name to register the server and client with Consul.
server_service_name = "{{ nomad_consul_servers_service_name }}"
client_service_name = "{{ nomad_consul_clients_service_name }}"
tags = {{ nomad_consul_tags | to_json }}

# Enables automatically registering the services.
auto_advertise = true
Expand Down

0 comments on commit 8d96ba8

Please sign in to comment.