diff options
author | 2020-12-30 15:21:11 +0100 | |
---|---|---|
committer | 2021-01-07 10:34:50 +0000 | |
commit | aaa7d9652eb58dd47327a99e70451b08f682356f (patch) | |
tree | 568d0dbe3c0e18462c295a5e2be708aedb2a5fd9 /deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_securitygroup/tasks/create_securitygroup.yml | |
parent | f7dd723294912e4bb4484859ac263ab9270d70c6 (diff) |
Allow using multiple remote IP prefixes for security groups
This patch is required for allowing machine-to-machine traffic within
ONAP cluster with no Vagrant operator involvement.
Issue-ID: INT-1601
Change-Id: I0159b3176ecb3e5783f4f87b9b507824fc411b2b
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_securitygroup/tasks/create_securitygroup.yml')
-rw-r--r-- | deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_securitygroup/tasks/create_securitygroup.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_securitygroup/tasks/create_securitygroup.yml b/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_securitygroup/tasks/create_securitygroup.yml index d6b78d1f4..bd8abf564 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_securitygroup/tasks/create_securitygroup.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_securitygroup/tasks/create_securitygroup.yml @@ -8,7 +8,8 @@ os_security_group_rule: security_group: "{{ secgrp.name }}" protocol: icmp - remote_ip_prefix: "{{ secgrp.remote_ip_prefix }}" + remote_ip_prefix: "{{ item }}" + loop: "{{ secgrp.remote_ip_prefix }}" - name: "Create {{ secgrp.name }} security group rule for SSH" os_security_group_rule: @@ -16,4 +17,5 @@ protocol: tcp port_range_min: 22 port_range_max: 22 - remote_ip_prefix: "{{ secgrp.remote_ip_prefix }}" + remote_ip_prefix: "{{ item }}" + loop: "{{ secgrp.remote_ip_prefix }}" |