diff options
author | Michal Ptacek <m.ptacek@partner.samsung.com> | 2019-05-28 13:59:07 +0000 |
---|---|---|
committer | Michal Ptacek <m.ptacek@partner.samsung.com> | 2019-05-28 13:59:07 +0000 |
commit | fff4f53c26495d75682e3d80c4dc0a8686f5e0c7 (patch) | |
tree | a14a41cc30802fb780d96bea046994fc3c43a0fa /patches/onap-dublin-patch-role | |
parent | 1a6a0793f5dbefb226ebcfb1e2a542ae2272ff9b (diff) |
Add needed pypi patching for oof
OOF component recently introduced new internet dependency
and it's downloading flask and requests pip packages.
This patch is needed for fixing this in offline platform.
Change-Id: I5bb707bf13af30f6df5cfd42cee75e2d1839821e
Issue-ID: OPTFRA-509
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Diffstat (limited to 'patches/onap-dublin-patch-role')
-rw-r--r-- | patches/onap-dublin-patch-role/tasks/main.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/onap-dublin-patch-role/tasks/main.yml b/patches/onap-dublin-patch-role/tasks/main.yml index fd0ba3c7..fb81f200 100644 --- a/patches/onap-dublin-patch-role/tasks/main.yml +++ b/patches/onap-dublin-patch-role/tasks/main.yml @@ -8,6 +8,13 @@ - common/dgbuilder/templates/deployment.yaml register: npm_files_check +- name: Check presence of files for nexus domain resolving + stat: + path: "{{ app_helm_charts_infra_directory }}/{{ item }}" + with_items: + - oof/charts/oof-cmso/charts/oof-cmso-service/resources/config/msosimulator.sh + register: hosts_files_check + - name: Patch OOM - set npm registry lineinfile: path: "{{ item.stat.path }}" @@ -18,3 +25,12 @@ with_items: "{{ npm_files_check.results }}" when: item.stat.exists +- 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;' + backrefs: yes + state: present + with_items: "{{ hosts_files_check.results }}" + when: item.stat.exists |