Skip to content

Commit b3121d9

Browse files
committed
Add Ansible workaround for CLOUD_NETCONFIG_MANAGE on 16
Temporary add workaround to be able to configure CLOUD_NETCONFIG_MANAGE=no in 16.0 waiting for fix for bsc#1253223
1 parent 5eac1e9 commit b3121d9

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

ansible/playbooks/tasks/azure-cluster-bootstrap.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,31 @@
141141
regexp: '^CLOUD_NETCONFIG_MANAGE='
142142
line: 'CLOUD_NETCONFIG_MANAGE="no"'
143143
backup: true
144+
when: ansible_distribution_major_version != '16'
144145

145-
- name: Slurp SBD config
146+
- name: Ensure 'CLOUD_NETCONFIG_MANAGE' is disabled for eth0 for SLES 16.0
147+
ansible.builtin.lineinfile:
148+
path: /usr/etc/default/cloud-netconfig
149+
regexp: '^CLOUD_NETCONFIG_MANAGE='
150+
line: 'CLOUD_NETCONFIG_MANAGE="no"'
151+
backup: true
152+
when: ansible_distribution_major_version == '16'
153+
154+
# Workaround for bsc#1253223
155+
- name: Create symbolic between /usr/etc/default/cloud-netconfig and /etc/default/cloud-netconfig
156+
ansible.builtin.file:
157+
src: /usr/etc/default/cloud-netconfig
158+
dest: /etc/default/cloud-netconfig
159+
state: link
160+
when: ansible_distribution_major_version == '16'
161+
162+
- name: Softfail for old cloud-regionsrv-client in 15sp2
163+
ansible.builtin.debug:
164+
msg:
165+
- "[OSADO][softfail] bsc#1253223 cloud-netconfig does not read /usr/etc/default/cloud-netconfig"
166+
when: ansible_distribution_major_version == '16'
167+
168+
- name: Slurp SBD config
146169
ansible.builtin.slurp:
147170
src: /etc/sysconfig/sbd
148171
register: sbd_slurp

ansible/playbooks/tasks/client-sbd-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
changed_when: false
2929

3030
# Insert the the full by-id address in the list of each discovered disk that is of the type LIO-ORG (default Linux iSCSI server)
31-
3231
- name: Set iscsi facts
3332
ansible.builtin.set_fact:
3433
sbd_list: "{{ sbd_list + [iscsi_prefix + item | split(' ') | last] }}"

0 commit comments

Comments
 (0)