технология_cloud-init

This is an old revision of the document!


Технология Cloud-init

# cat meta-data
local-hostname: node1
# cat network-config
version: 2
ethernets:
  ens3:
    dhcp4: false
    addresses:
      - 10.5.12.217/24
    gateway4: 10.5.12.254
    nameservers:
      search: [isp.un, corp.un]
      addresses: [8.8.8.8, 4.4.4.4]
# cat user-data
#cloud-config
ssh_pwauth: True
users:
  - name: student
    sudo: ALL=(ALL) NOPASSWD:ALL
#    plain_text_passwd: 'password'
    passwd: '$1$ycyfWkhi$hDr9nyte7elqQcyh07/j0/'
    shell: /bin/bash
    lock-passwd: false
    chpasswd: { expire: False }
package_update: true
packages:
  - qemu-guest-agent
runcmd:
  - [ systemctl, enable, --now, qemu-guest-agent ]
технология_cloud-init.1720528858.txt.gz · Last modified: 2024/07/09 15:40 by val