Michal Ptacek | 5a269d2 | 2019-01-28 13:03:16 +0000 | [diff] [blame] | 1 | --- |
| 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 Ptacek | 8056725 | 2019-01-29 17:17:12 +0000 | [diff] [blame] | 25 | |
| 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 |