remove unneeded runtime dir; create data dir using pillar value
This commit is contained in:
parent
e1b0ba47d2
commit
9256fc3509
1 changed files with 3 additions and 9 deletions
|
@ -13,7 +13,7 @@ consul-bin-dir:
|
||||||
consul-user:
|
consul-user:
|
||||||
group.present:
|
group.present:
|
||||||
- name: consul
|
- name: consul
|
||||||
user.present:
|
user.present:
|
||||||
- name: consul
|
- name: consul
|
||||||
- createhome: false
|
- createhome: false
|
||||||
- system: true
|
- system: true
|
||||||
|
@ -29,18 +29,12 @@ consul-config-dir:
|
||||||
- user: consul
|
- user: consul
|
||||||
- group: consul
|
- group: consul
|
||||||
|
|
||||||
consul-runtime-dir:
|
|
||||||
file.directory:
|
|
||||||
- name: /var/consul
|
|
||||||
- user: consul
|
|
||||||
- group: consul
|
|
||||||
|
|
||||||
consul-data-dir:
|
consul-data-dir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /usr/local/share/consul
|
- name: {{ consul.config.data_dir }}
|
||||||
- user: consul
|
- user: consul
|
||||||
- group: consul
|
- group: consul
|
||||||
- makedirs:
|
- makedirs: True
|
||||||
|
|
||||||
# Install agent
|
# Install agent
|
||||||
consul-download:
|
consul-download:
|
||||||
|
|
Loading…
Reference in a new issue