|
34 | 34 | # Optional: The default_host can be designated for newly created host groups. Run:
|
35 | 35 | # -e "merge_default_host=deployTarget"
|
36 | 36 | #
|
37 |
| -# Copyright (c) 2019-2020, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. |
| 37 | +# Copyright (c) 2019-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. |
38 | 38 | # SPDX-License-Identifier: Apache-2.0
|
39 | 39 | #
|
40 | 40 | ####################################################################
|
|
661 | 661 | SANMOUNT: '{{ "{{ SAS_CONFIG_ROOT }}/data/sasdatasvrc" }}'
|
662 | 662 | SERVICE_NAME: cpspostgres
|
663 | 663 | when: cps_invocation|length > 0 and cpspostgres_props_exist.changed == False and ha_properties_exist.changed == True and merge_default_host is defined and perms_override_property_exists.changed == True
|
664 |
| - |
| 664 | + |
| 665 | + # case 3-2-3 For 19w43 to 23w44 adding cps |
| 666 | + - name: Move CommonPlanningService Invocation variables to INVOCATION_VARIABLES |
| 667 | + blockinfile: |
| 668 | + path: "{{ merged_vars_yml }}" |
| 669 | + insertafter: "{{ merge_default_host }}:" |
| 670 | + block: |3 |
| 671 | + cpsdatasvrc: |
| 672 | + - NODE_NUMBER: '0' |
| 673 | + PG_PORT: '5442' |
| 674 | + SANMOUNT: '{{ "{{ SAS_CONFIG_ROOT }}/data/sasdatasvrc" }}' |
| 675 | + SERVICE_NAME: cpspostgres |
| 676 | + cpspgpoolc: |
| 677 | + - HA_PGPOOL_VIRTUAL_IP: '' |
| 678 | + HA_PGPOOL_WATCHDOG_PORT: '' |
| 679 | + HA_PGPOOL_HEARTBEAT_PORT: '' |
| 680 | + PERMS_OVERRIDE: 'false' |
| 681 | + POOL_NUMBER: '0' |
| 682 | + PCP_PORT: '5440' |
| 683 | + PGPOOL_PORT: '5441' |
| 684 | + SANMOUNT: '{{ "{{ SAS_CONFIG_ROOT }}/data/sasdatasvrc" }}' |
| 685 | + SERVICE_NAME: cpspostgres |
| 686 | + when: cps_invocation|length > 0 and cpspostgres_props_exist.changed == False and merge_default_host is defined and curr_pgpool_heartbeat_property_exists.changed == False and ha_properties_exist.changed == True |
| 687 | + |
665 | 688 | - name: Check whether the NODE_TYPE property exists in the merged vars.yml
|
666 | 689 | lineinfile:
|
667 | 690 | path: "{{ merged_vars_yml }}"
|
|
0 commit comments