Skip to content

Commit 587c392

Browse files
author
Anandkumar Patel
committed
make swarm_container_name an env
1 parent fbc2974 commit 587c392

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

ansible/group_vars/all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ shiva_port: 3000
109109
# swarm
110110
swarm_master_port: 2375
111111
swarm_host_address: "{{ hostvars[groups['swarm-manager'][0]]['ansible_default_ipv4']['address'] }}"
112+
swarm_container_name: swarm
112113

113114
# navi/link
114115
navi_mongo_database: navi

ansible/group_vars/alpha-mavis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ container_envs: >
2727
-e CONSUL_HOST={{ consul_host_address }}
2828
-e CONSUL_PORT={{ consul_api_port }}
2929
-e DOCKER_CERT_PATH=/etc/ssl/docker
30+
-e SWARM_CONTAINER_NAME={{ swarm_container_name }}
3031
3132
container_run_opts: >
3233
-h {{ name }}

ansible/group_vars/alpha-swarm-deamon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ container_tag: 1.0.0
88
log_driver: json-file
99

1010
container_run_opts: >
11-
--name swarm
11+
--name {{ swarm_container_name }}
1212
-d
1313
1414
container_run_args: >

0 commit comments

Comments
 (0)