Skip to content

Commit

Permalink
Merge pull request #187 from abarbare/consul_acl
Browse files Browse the repository at this point in the history
fix: generate `consul_acl_master_token` when not provided
  • Loading branch information
brianshumate authored Aug 10, 2018
2 parents b09b3da + 3b74f09 commit 870d29a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ ports can be done using the `consul_ports_*` variables.

- ACL master token
- Override with `CONSUL_ACL_MASTER_TOKEN` environment variable
- Default value: *SN4K3OILSN4K3OILSN4K3OILSN4K3OIL*
- Default value: *random uuid token*

### `consul_acl_master_token_display`

Expand Down
1 change: 0 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ consul_acl_agent_master_token: "{{ lookup('env','CONSUL_ACL_AGENT_MASTER_TOKEN')

### Server ACL settings ###
consul_acl_default_policy: "{{ lookup('env','CONSUL_ACL_DEFAULT_POLICY') | default('allow', true) }}"
consul_acl_master_token: "{{ lookup('env','CONSUL_ACL_MASTER_TOKEN') | default('42424242-4242-4242-4242-424242424242', true) }}"
consul_acl_master_token_display: "{{ lookup('env','CONSUL_ACL_MASTER_TOKEN_DISPLAY') | default(false, true) }}"
consul_acl_replication_enable: "{{ lookup('env','CONSUL_ACL_REPLICATION_ENABLE') | default('',true) }}"
consul_acl_replication_token: "{{ lookup('env','CONSUL_ACL_REPLICATION_TOKEN') | default('', true) }}"
Expand Down
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@
when:
- consul_encrypt_enable

- name: Create Consul configuration
import_tasks: config.yml

- name: Create ACL configuration
include_tasks: acl.yml
when: consul_acl_enable | bool

- name: Create Consul configuration
import_tasks: config.yml

- name: Create TLS configuration
include_tasks: tls.yml
when: consul_tls_enable | bool
Expand Down

0 comments on commit 870d29a

Please sign in to comment.