github.com/SUSE/skuba@v1.4.17/ci/infra/libvirt/cloud-init/common.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  # WARNING!!! Do not use cloud-init packages module when SUSE CaaSP Registraion
    30  # Code is provided. In this case repositories will be added in runcmd module 
    31  # with SUSEConnect command after packages module is ran
    32  #packages:
    33  
    34  bootcmd:
    35    - ip link set dev eth0 mtu 1400
    36    # Hostnames from DHCP - otherwise localhost will be used
    37    - /usr/bin/sed -ie "s#DHCLIENT_SET_HOSTNAME=\"no\"#DHCLIENT_SET_HOSTNAME=\"yes\"#" /etc/sysconfig/network/dhcp
    38    - netconfig update -f
    39  
    40  runcmd:
    41  ${register_scc}
    42  ${register_rmt}
    43  ${commands}
    44  
    45  final_message: "The system is finally up, after $UPTIME seconds"