summaryrefslogtreecommitdiffstats
path: root/tools/cicdansible/roles/install/tasks
diff options
context:
space:
mode:
authorDenis Kasanic <d.kasanic@partner.samsung.com>2019-12-04 13:40:07 +0100
committerDenis Kasanic <d.kasanic@partner.samsung.com>2019-12-18 10:24:58 +0000
commitfd2a5066ec0a3f13fb52b6d0bb2fb84e52dc31a8 (patch)
treed5332ab5e04cf097221b47541a4d99427a0feeb9 /tools/cicdansible/roles/install/tasks
parent610ddff2d54cece28af56cc7bbf01ed524ecce9c (diff)
Add robot config at onap install
Change onap network cidr to /16 due to robot hardcoded config. Adding onap network id to configuration at installation part. Adding optional connection to demo usecases network at deploy step Update patch scripts for specify network and kubernetes namespace Enable config_drive parameter at openstack instances deploying to get openstack metadata Issue-ID: OOM-1996 Signed-off-by: Denis Kasanic <d.kasanic@partner.samsung.com> Change-Id: I4403e8ca0f385060ac815372ffd91eda60026ddb
Diffstat (limited to 'tools/cicdansible/roles/install/tasks')
-rw-r--r--tools/cicdansible/roles/install/tasks/install.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/cicdansible/roles/install/tasks/install.yml b/tools/cicdansible/roles/install/tasks/install.yml
index 141ea7ae..529e2acf 100644
--- a/tools/cicdansible/roles/install/tasks/install.yml
+++ b/tools/cicdansible/roles/install/tasks/install.yml
@@ -23,6 +23,17 @@
copy:
content: "{{ application_config | b64decode }}"
dest: "{{ installer_deploy_path }}/ansible/application/application_overrides.yml"
+ # add onap network configuration to overrides
+- name: "inject onap network information to config overrides"
+ replace:
+ path: "{{ installer_deploy_path }}/ansible/application/application_overrides.yml"
+ regexp: '({{ item.key }}:)\s?.*'
+ replace: '\1 {{ item.value }}'
+ loop: "{{ lines|dict2items }}"
+ vars:
+ lines:
+ openStackPrivateNetId: "{{ (hostvars['localhost'].heat_stack.stack.outputs | selectattr('output_key', 'equalto', 'network_id') | list).0.output_value }}"
+ openStackPrivateSubnetId: "{{ (hostvars['localhost'].heat_stack.stack.outputs | selectattr('output_key', 'equalto', 'subnet_id') | list).0.output_value }}"
# This generates a file with locations of resource files in resource host, we
# do it only to allow manually running offline installer without
# typing them by hand. We cannot use