Skip to content

Commit

Permalink
add overlay network parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Artyom Bakhtin <[email protected]>
  • Loading branch information
bakhtin committed Apr 25, 2019
1 parent 9ddb1ba commit 010941b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions deploy/ansible/roles/iroha-docker/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ iroha_deploy_dir: /opt/iroha-deploy
# The network will be created automatically if deploying locally or with `iroha_overlay_network`
# set to `false`
iroha_network_name: iroha-net
iroha_network_address: '10.10.111.0/24'
iroha_network_gateway: '10.10.111.1'

# The role is incompatible with Iroha versions below RC2 since keys format has changed.
# Apply the patch (files/old-keys-format.patch) if you need support for previous Iroha versions.
Expand Down
2 changes: 1 addition & 1 deletion deploy/ansible/roles/iroha-docker/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Attachable overlay network cannot be created with a `docker_network` module
- name: create Docker network
shell: "docker network create -d overlay --attachable {{ iroha_network_name }} || true"
shell: "docker network create -d overlay --attachable {{ iroha_network_name }} --gateway {{ iroha_network_gateway }} --subnet {{ iroha_network_address }} || true"
when: iroha_overlay_network
run_once: yes

Expand Down

0 comments on commit 010941b

Please sign in to comment.