Skip to content

Commit 0528bbb

Browse files
committed
Allow user to specify private IP address of cluster network in AWS deployment
1 parent 5adf5b9 commit 0528bbb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

roles/aws_controllers/tasks/aws_vmanage_ec2_instance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
description: Network interface for SD-WAN Controller
4545
security_groups: "{{ aws_security_group_config.group_id }}"
4646
region: "{{ aws_region }}"
47+
private_ip_address: "{{ cluster_private_ip if subnet_item.tags.Name | regex_search('cluster') and cluster_private_ip else omit }}"
4748
tags:
4849
Name: "nic-{{ subnet_item.tags.Name }}"
4950
Creator: "{{ aws_tag_creator }}"

roles/aws_controllers/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
site_id: "{{ instance_item.site_id }}"
8787
persona: "{{ instance_item.persona }}"
8888
volume_snapshots: "{{ instance_item.volume_snapshots | default([]) }}"
89+
cluster_private_ip: "{{ instance_item.cluster_private_ip | default(omit) }}"
8990
loop: "{{ vmanage_instances }}"
9091
loop_control:
9192
loop_var: instance_item

0 commit comments

Comments
 (0)