add cont_ generic variables for managing state

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-03-23 10:30:29 +01:00
parent 020d513461
commit a7369a1739
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 7 additions and 5 deletions

View File

@ -9,8 +9,10 @@ beacon_node_total_nodes: 1
beacon_node_cont_tag: '{{ beacon_node_network }}-{{ beacon_node_build_flavour }}' beacon_node_cont_tag: '{{ beacon_node_network }}-{{ beacon_node_build_flavour }}'
beacon_node_cont_image: 'statusteam/nimbus_beacon_node:{{ beacon_node_cont_tag }}' beacon_node_cont_image: 'statusteam/nimbus_beacon_node:{{ beacon_node_cont_tag }}'
beacon_node_cont_vol: '/docker/beacon_node'
beacon_node_disovery_port: 9000 beacon_node_disovery_port: 9000
beacon_node_listening_port: 9000 beacon_node_listening_port: 9000
# general container management
cont_state: started
cont_recreate: false
cont_restart: false

View File

@ -12,9 +12,9 @@
image: '{{ beacon_node_cont_image }}' image: '{{ beacon_node_cont_image }}'
pull: true pull: true
restart_policy: always restart_policy: always
state: 'started' state: '{{ cont_state }}'
recreate: false recreate: '{{ cont_recreate }}'
restart: false restart: '{{ cont_restart }}'
ports: ports:
- '{{ public_tcp_port }}:{{ beacon_node_listening_port }}' - '{{ public_tcp_port }}:{{ beacon_node_listening_port }}'
- '{{ public_udp_port }}:{{ beacon_node_disovery_port }}/udp' - '{{ public_udp_port }}:{{ beacon_node_disovery_port }}/udp'