Skip to content

Commit 8bb77b0

Browse files
Merge pull request #107 from sassoftware/pr-depenbdat-3086-1
fix: Merge-playbook incorrectly updates vars.yml when adding on CPS (…
2 parents 3fc00ed + f9de7ae commit 8bb77b0

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

playbooks/merge-playbook/merge-viya-deployment-files.yml

+25-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# Optional: The default_host can be designated for newly created host groups. Run:
3535
# -e "merge_default_host=deployTarget"
3636
#
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.
3838
# SPDX-License-Identifier: Apache-2.0
3939
#
4040
####################################################################
@@ -661,7 +661,30 @@
661661
SANMOUNT: '{{ "{{ SAS_CONFIG_ROOT }}/data/sasdatasvrc" }}'
662662
SERVICE_NAME: cpspostgres
663663
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+
665688
- name: Check whether the NODE_TYPE property exists in the merged vars.yml
666689
lineinfile:
667690
path: "{{ merged_vars_yml }}"

0 commit comments

Comments
 (0)