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

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

# cat meta-data
local-hostname: node1
# cat network-config
version: 2
ethernets:
#  ens3:
  enp1s0:
    dhcp4: true
#    dhcp4: false
#    addresses:
#      - 192.168.X.201/24
#    routes:
#      - to: default
#        via: 192.168.X.1
#    nameservers:
#      search: [isp.un, corpX.un]
#      addresses: [192.168.X.10]
# 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
package_update: true
packages:
  - qemu-guest-agent
runcmd:
  - [ systemctl, enable, --now, qemu-guest-agent ]
технология_cloud-init.txt · Last modified: 2024/07/17 11:50 by val