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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
технология_cloud-init [2024/07/09 15:38]
val created
технология_cloud-init [2024/07/17 11:50] (current)
val
Line 1: Line 1:
 ====== Технология Cloud-init ====== ====== Технология Cloud-init ======
 +
 +  * [[https://​spacevm.ru/​docs/​6.5/​base/​operator_guide/​domains/​cloud_init/​|Cloud-init - это программа,​ запускающаяся на ВМ при загрузке]]
 +
 +  * [[https://​cloudinit.readthedocs.io/​en/​latest/​tutorial/​qemu.html|Core tutorial with QEMU]] пример smbios
 +
 +  * [[https://​cloudinit.readthedocs.io/​en/​0.7.7/​topics/​datasources.html#​no-cloud|Datasources - No cloud]] user-data and meta-data files
 +  * [[https://​cloudinit.readthedocs.io/​en/​latest/​reference/​datasources/​nocloud.html|Datasources - NoCloud]] filesystem volume labelled CIDATA
 +
 +  * [[https://​cloudinit.readthedocs.io/​en/​latest/​reference/​modules.html|Module reference]]
 +
 +  * [[https://​stackoverflow.com/​questions/​23065673/​how-to-re-run-cloud-init-without-reboot|How to re-run cloud-init without reboot]]
 +
 <​code>​ <​code>​
 +# cat meta-data
 +</​code><​code>​
 +local-hostname:​ node1
 +</​code><​code>​
 +# cat network-config
 +</​code><​code>​
 +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]
 +</​code><​code>​
 +# cat user-data
 +</​code><​code>​
 +#​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 ]
  
 </​code>​ </​code>​
технология_cloud-init.1720528724.txt.gz · Last modified: 2024/07/09 15:38 by val