|
29 | 29 | # __sap_ha_pacemaker_cluster_resource_primitives ha_cluster_resource_primitives |
30 | 30 | # __sap_ha_pacemaker_cluster_corosync_totem ha_cluster_totem |
31 | 31 |
|
| 32 | +# NOTE: noqa var-naming[no-role-prefix] is required when setting variable names for other roles. |
| 33 | + |
32 | 34 | # Combines SBD stonith options with ha_cluster if it was not imported as extra var. |
33 | 35 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Include SBD config into 'ha_cluster'" # noqa jinja[spacing] |
34 | 36 | when: |
|
43 | 45 |
|
44 | 46 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster'" |
45 | 47 | when: __sap_ha_pacemaker_cluster_ha_cluster is defined |
46 | | - ansible.builtin.set_fact: |
| 48 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
47 | 49 | ha_cluster: "{{ __sap_ha_pacemaker_cluster_ha_cluster }}" |
48 | 50 |
|
49 | 51 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_cluster_name'" |
50 | 52 | when: __sap_ha_pacemaker_cluster_cluster_name is defined |
51 | | - ansible.builtin.set_fact: |
| 53 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
52 | 54 | ha_cluster_cluster_name: "{{ __sap_ha_pacemaker_cluster_cluster_name }}" |
53 | 55 |
|
54 | 56 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_cluster_properties'" |
55 | 57 | when: __sap_ha_pacemaker_cluster_cluster_properties is defined |
56 | | - ansible.builtin.set_fact: |
| 58 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
57 | 59 | ha_cluster_cluster_properties: "{{ __sap_ha_pacemaker_cluster_cluster_properties }}" |
58 | 60 |
|
59 | 61 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_resource_defaults'" |
60 | 62 | when: __sap_ha_pacemaker_cluster_resource_defaults is defined |
61 | | - ansible.builtin.set_fact: |
| 63 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
62 | 64 | ha_cluster_resource_defaults: "{{ __sap_ha_pacemaker_cluster_resource_defaults }}" |
63 | 65 |
|
64 | 66 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_resource_operation_defaults'" |
65 | 67 | when: __sap_ha_pacemaker_cluster_resource_operation_defaults is defined |
66 | | - ansible.builtin.set_fact: |
| 68 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
67 | 69 | ha_cluster_resource_operation_defaults: "{{ __sap_ha_pacemaker_cluster_resource_operation_defaults }}" |
68 | 70 |
|
69 | 71 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_constraints_colocation'" |
70 | 72 | when: __sap_ha_pacemaker_cluster_constraints_colocation is defined |
71 | | - ansible.builtin.set_fact: |
| 73 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
72 | 74 | ha_cluster_constraints_colocation: "{{ __sap_ha_pacemaker_cluster_constraints_colocation }}" |
73 | 75 |
|
74 | 76 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_constraints_location'" |
75 | 77 | when: __sap_ha_pacemaker_cluster_constraints_location is defined |
76 | | - ansible.builtin.set_fact: |
| 78 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
77 | 79 | ha_cluster_constraints_location: "{{ __sap_ha_pacemaker_cluster_constraints_location }}" |
78 | 80 |
|
79 | 81 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_constraints_order'" |
80 | 82 | when: __sap_ha_pacemaker_cluster_constraints_order is defined |
81 | | - ansible.builtin.set_fact: |
| 83 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
82 | 84 | ha_cluster_constraints_order: "{{ __sap_ha_pacemaker_cluster_constraints_order }}" |
83 | 85 |
|
84 | 86 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_extra_packages'" |
85 | 87 | when: __sap_ha_pacemaker_cluster_extra_packages is defined |
86 | | - ansible.builtin.set_fact: |
| 88 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
87 | 89 | ha_cluster_extra_packages: "{{ __sap_ha_pacemaker_cluster_extra_packages }}" |
88 | 90 |
|
89 | 91 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_zypper_patterns'" |
90 | 92 | when: __sap_ha_pacemaker_cluster_zypper_patterns is defined and ansible_os_family == 'Suse' |
91 | | - ansible.builtin.set_fact: |
| 93 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
92 | 94 | ha_cluster_zypper_patterns: "{{ __sap_ha_pacemaker_cluster_zypper_patterns }}" |
93 | 95 |
|
94 | 96 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_fence_agent_packages'" |
95 | 97 | when: __sap_ha_pacemaker_cluster_fence_agent_packages is defined |
96 | | - ansible.builtin.set_fact: |
| 98 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
97 | 99 | ha_cluster_fence_agent_packages: "{{ __sap_ha_pacemaker_cluster_fence_agent_packages }}" |
98 | 100 |
|
99 | 101 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_hacluster_password'" |
100 | 102 | when: __sap_ha_pacemaker_cluster_hacluster_user_password is defined |
101 | | - ansible.builtin.set_fact: |
| 103 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
102 | 104 | ha_cluster_hacluster_password: "{{ __sap_ha_pacemaker_cluster_hacluster_user_password }}" |
103 | 105 | no_log: true # secure the credential |
104 | 106 |
|
105 | 107 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_repos'" |
106 | 108 | when: __sap_ha_pacemaker_cluster_repos is defined |
107 | | - ansible.builtin.set_fact: |
| 109 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
108 | 110 | __ha_cluster_repos: "{{ __sap_ha_pacemaker_cluster_repos }}" |
109 | 111 |
|
110 | 112 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_resource_clones'" |
111 | 113 | when: __sap_ha_pacemaker_cluster_resource_clones is defined |
112 | | - ansible.builtin.set_fact: |
| 114 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
113 | 115 | ha_cluster_resource_clones: "{{ __sap_ha_pacemaker_cluster_resource_clones }}" |
114 | 116 |
|
115 | 117 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_resource_groups'" |
116 | 118 | when: __sap_ha_pacemaker_cluster_resource_groups is defined |
117 | | - ansible.builtin.set_fact: |
| 119 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
118 | 120 | ha_cluster_resource_groups: "{{ __sap_ha_pacemaker_cluster_resource_groups }}" |
119 | 121 |
|
120 | 122 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_resource_primitives'" |
121 | 123 | when: __sap_ha_pacemaker_cluster_resource_primitives is defined |
122 | | - ansible.builtin.set_fact: |
| 124 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
123 | 125 | ha_cluster_resource_primitives: "{{ __sap_ha_pacemaker_cluster_resource_primitives }}" |
124 | 126 | no_log: true # be paranoid, there could be credentials in it |
125 | 127 |
|
126 | 128 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_totem'" |
127 | 129 | when: __sap_ha_pacemaker_cluster_corosync_totem is defined |
128 | | - ansible.builtin.set_fact: |
| 130 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
129 | 131 | ha_cluster_totem: "{{ __sap_ha_pacemaker_cluster_corosync_totem }}" |
130 | 132 |
|
131 | 133 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_transport'" |
132 | 134 | when: __sap_ha_pacemaker_cluster_corosync_transport is defined |
133 | | - ansible.builtin.set_fact: |
| 135 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
134 | 136 | ha_cluster_transport: "{{ __sap_ha_pacemaker_cluster_corosync_transport }}" |
135 | 137 |
|
136 | 138 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_sbd_options'" |
137 | 139 | when: __sap_ha_pacemaker_cluster_sbd_options is defined |
138 | | - ansible.builtin.set_fact: |
| 140 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
139 | 141 | ha_cluster_sbd_options: "{{ __sap_ha_pacemaker_cluster_sbd_options }}" |
140 | 142 |
|
141 | 143 | - name: "SAP HA Prepare Pacemaker - (ha_cluster) Define parameter 'ha_cluster_sbd_enabled'" |
142 | 144 | when: __sap_ha_pacemaker_cluster_sbd_enabled is defined |
143 | | - ansible.builtin.set_fact: |
| 145 | + ansible.builtin.set_fact: # noqa var-naming[no-role-prefix] |
144 | 146 | ha_cluster_sbd_enabled: "{{ __sap_ha_pacemaker_cluster_sbd_enabled }}" |
0 commit comments