blob: d3b92e5bd346497b52705e7e412d50cbc9d91ac6 [file] [log] [blame]
Michal Ptacek5a269d22019-01-28 13:03:16 +00001---
2# This role contains patching logic for OOM charts
3# and is valid until OOM-1610 is implemented
4- name: Patch OOM - nexus domain resolving
5 lineinfile:
6 path: "{{ app_helm_charts_infra_directory }}/{{ item }}"
7 regexp: '^(.*)HOSTS_FILE_RECORD'
8 line: '\g<1>{{ cluster_ip }} {{ simulated_hosts.nexus | join(" ") }} >> /etc/hosts;'
9 backrefs: yes
10 state: present
11 with_items:
12 - common/dgbuilder/templates/deployment.yaml
13 - sdnc/charts/sdnc-portal/templates/deployment.yaml
14
15- name: Patch OOM - set npm registry
16 lineinfile:
17 path: "{{ app_helm_charts_infra_directory }}/{{ item }}"
18 regexp: '^(.*)NPM_REGISTRY_RECORD'
19 line: '\g<1>npm set registry "http://nexus.{{ ansible_nodename }}/repository/npm-private/";'
20 backrefs: yes
21 state: present
22 with_items:
23 - common/dgbuilder/templates/deployment.yaml
24 - sdnc/charts/sdnc-portal/templates/deployment.yaml
Michal Ptacek80567252019-01-29 17:17:12 +000025
26- name: Patch OOM - set cert path for cloudify
27 lineinfile:
28 path: "{{ app_helm_charts_infra_directory }}/{{ item }}"
29 regexp: '^(.*)CERT_PATH'
30 line: '\g<1>/etc/pki/ca-trust/source/anchors'
31 backrefs: yes
32 state: present
33 with_items:
34 - dcaegen2/charts/dcae-cloudify-manager/templates/deployment.yaml