Closed ja9fuchs closed 4 months ago
This solves a problem with the vars[] construct, which did not resolve nested variables.
vars[]
Previously the nested variable names were passed as {{ ... }} string values in the SAP HA role cluster resource setup.
{{ ... }}
- agent: ocf:heartbeat:Filesystem id: rsc_fs_DEF_ASCS02 instance_attrs: - attrs: - name: device value: '{{ nfs_mount_point | default('''') }}/usr/sap/DEF/ASCS02' - name: directory value: /usr/sap/DEF/ASCS02 - name: fstype value: '{{ nfs_mount_point_type | default('''') }}' - name: options value: '{{ nfs_mount_point_opts | default('''') }}' - name: force_unmount value: safe
- agent: ocf:heartbeat:Filesystem
id: rsc_fs_DEF_ASCS02
instance_attrs:
- attrs:
- name: device
value: '{{ nfs_mount_point | default('''') }}/usr/sap/DEF/ASCS02'
- name: directory
value: /usr/sap/DEF/ASCS02
- name: fstype
value: '{{ nfs_mount_point_type | default('''') }}'
- name: options
value: '{{ nfs_mount_point_opts | default('''') }}'
- name: force_unmount
value: safe
Now it resolves correctly:
- agent: ocf:heartbeat:Filesystem id: rsc_fs_DEF_ASCS02 instance_attrs: - attrs: - name: device value: <...my-EFS-ID...>.amazonaws.com:/usr/sap/DEF/ASCS02 - name: directory value: /usr/sap/DEF/ASCS02 - name: fstype value: nfs - name: options value: defaults - name: force_unmount value: safe
value: <...my-EFS-ID...>.amazonaws.com:/usr/sap/DEF/ASCS02
value: nfs
value: defaults
This solves a problem with the
vars[]
construct, which did not resolve nested variables.Previously the nested variable names were passed as
{{ ... }}
string values in the SAP HA role cluster resource setup.- agent: ocf:heartbeat:Filesystem
id: rsc_fs_DEF_ASCS02
instance_attrs:
- attrs:
- name: device
value: '{{ nfs_mount_point | default('''') }}/usr/sap/DEF/ASCS02'
- name: directory
value: /usr/sap/DEF/ASCS02
- name: fstype
value: '{{ nfs_mount_point_type | default('''') }}'
- name: options
value: '{{ nfs_mount_point_opts | default('''') }}'
- name: force_unmount
value: safe
Now it resolves correctly:
- agent: ocf:heartbeat:Filesystem
id: rsc_fs_DEF_ASCS02
instance_attrs:
- attrs:
- name: device
value: <...my-EFS-ID...>.amazonaws.com:/usr/sap/DEF/ASCS02
- name: directory
value: /usr/sap/DEF/ASCS02
- name: fstype
value: nfs
- name: options
value: defaults
- name: force_unmount
value: safe