summaryrefslogtreecommitdiffstats
path: root/patches/onap-casablanca-patch-role/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'patches/onap-casablanca-patch-role/tasks/main.yml')
-rw-r--r--patches/onap-casablanca-patch-role/tasks/main.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/onap-casablanca-patch-role/tasks/main.yml b/patches/onap-casablanca-patch-role/tasks/main.yml
new file mode 100644
index 00000000..a7064b16
--- /dev/null
+++ b/patches/onap-casablanca-patch-role/tasks/main.yml
@@ -0,0 +1,24 @@
+---
+# This role contains patching logic for OOM charts
+# and is valid until OOM-1610 is implemented
+- name: Patch OOM - nexus domain resolving
+ lineinfile:
+ path: "{{ app_helm_charts_infra_directory }}/{{ item }}"
+ regexp: '^(.*)HOSTS_FILE_RECORD'
+ line: '\g<1>{{ cluster_ip }} {{ simulated_hosts.nexus | join(" ") }} >> /etc/hosts;'
+ backrefs: yes
+ state: present
+ with_items:
+ - common/dgbuilder/templates/deployment.yaml
+ - sdnc/charts/sdnc-portal/templates/deployment.yaml
+
+- name: Patch OOM - set npm registry
+ lineinfile:
+ path: "{{ app_helm_charts_infra_directory }}/{{ item }}"
+ regexp: '^(.*)NPM_REGISTRY_RECORD'
+ line: '\g<1>npm set registry "http://nexus.{{ ansible_nodename }}/repository/npm-private/";'
+ backrefs: yes
+ state: present
+ with_items:
+ - common/dgbuilder/templates/deployment.yaml
+ - sdnc/charts/sdnc-portal/templates/deployment.yaml