diff options
author | 2019-06-05 16:14:00 +0000 | |
---|---|---|
committer | 2019-06-07 15:19:05 +0000 | |
commit | 863926ef36dff968391ec98bddc9c832cd14408e (patch) | |
tree | 8cd115c5ce3162e10aa774ac604072010ce2fd21 /patches/onap-patch-role/tasks | |
parent | 3cd75cd8d71f471a0217f525bb8e4ed5315266a8 (diff) |
Fixing mso-simulator patching
Original patch did not work as /etc/hosts file is administrated
by kubernetes. That msosimulator.sh is also sourced into configMap
and wrongly transferred back to shell script. This patch is
providing smarter way for patching /etc/hosts file which is
still needed.
Change-Id: I52595f7bd5231893621e08a2fd355bdb57057222
Issue-ID: OOM-1869
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Diffstat (limited to 'patches/onap-patch-role/tasks')
-rw-r--r-- | patches/onap-patch-role/tasks/main.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/onap-patch-role/tasks/main.yml b/patches/onap-patch-role/tasks/main.yml index 38d0ab92..474b8ed4 100644 --- a/patches/onap-patch-role/tasks/main.yml +++ b/patches/onap-patch-role/tasks/main.yml @@ -12,7 +12,7 @@ stat: path: "{{ app_helm_charts_infra_directory }}/{{ item }}" loop: - - oof/charts/oof-cmso/charts/oof-cmso-service/resources/config/msosimulator.sh + - oof/charts/oof-cmso/charts/oof-cmso-service/templates/deployment.yaml register: hosts_files_check - name: Patch OOM - set npm registry @@ -28,8 +28,8 @@ - name: Patch OOM - nexus domain resolving lineinfile: path: "{{ item.stat.path }}" - regexp: '^(.*)HOSTS_FILE_RECORD' - line: '\g<1>{{ cluster_ip }} {{ simulated_hosts.nexus | join(" ") }} >> /etc/hosts;' + regexp: '^(.*)INFRA_CLUSTER_IP' + line: '\g<1>{{ cluster_ip }}' backrefs: yes state: present loop: "{{ hosts_files_check.results }}" |