github.com/SUSE/skuba@v1.4.17/ci/infra/vmware/cloud-init/lb.tpl (about) 1 #cloud-config 2 3 # set locale 4 locale: en_US.UTF-8 5 6 # set timezone 7 timezone: Etc/UTC 8 9 ssh_authorized_keys: 10 ${authorized_keys} 11 12 ntp: 13 enabled: true 14 ntp_client: chrony 15 config: 16 confpath: /etc/chrony.conf 17 servers: 18 ${ntp_servers} 19 20 # need to disable gpg checks because the cloud image has an untrusted repo 21 zypper: 22 repos: 23 ${repositories} 24 config: 25 gpgcheck: "off" 26 solver.onlyRequires: "true" 27 download.use_deltarpm: "true" 28 29 # need to remove the standard docker packages that are pre-installed on the 30 # cloud image because they conflict with the kubic- ones that are pulled by 31 # the kubernetes packages 32 packages: 33 - haproxy 34 35 # set hostname 36 hostname: ${hostname} 37 38 runcmd: 39 # Since we are currently inside of the cloud-init systemd unit, trying to 40 # start another service by either `enable --now` or `start` will create a 41 # deadlock. Instead, we have to use the `--no-block-` flag. 42 # The template machine should have been cleaned up, so no machine-id exists 43 - [ dbus-uuidgen, --ensure ] 44 - [ systemd-machine-id-setup ] 45 # With a new machine-id generated the journald daemon will work and can be restarted 46 # Without a new machine-id it should be in a failed state 47 - [ systemctl, restart, systemd-journald ] 48 # LB firewall is not disabled via skuba, so we need to manually disable it 49 - [ systemctl, disable, firewalld, --now ] 50 # Set node's hostname from DHCP server 51 - sed -i -e '/^DHCLIENT_SET_HOSTNAME/s/^.*$/DHCLIENT_SET_HOSTNAME=\"${hostname_from_dhcp}\"/' /etc/sysconfig/network/dhcp 52 - systemctl restart wicked 53 54 final_message: "The system is finally up, after $UPTIME seconds"