User Tools

Site Tools


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

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
технология_cloud-init [2024/07/09 15:40]
val
технология_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 # cat meta-data
Line 9: Line 21:
 version: 2 version: 2
 ethernets: ethernets:
-  ​ens3: +#  ​ens3: 
-    dhcp4: false +  ​enp1s0:​ 
-    addresses:​ +    dhcp4: true 
-      - 10.5.12.217/24 +   ​dhcp4:​ false 
-    ​gateway410.5.12.254 +   ​addresses:​ 
-    nameservers:​ +     ​- ​192.168.X.201/24 
-      search: [isp.un, ​corp.un] +   routes: 
-      addresses: [8.8.8.8, 4.4.4.4]+#      - to: default 
 +#        via: 192.168.X.1 
 +   ​nameservers:​ 
 +     ​search:​ [isp.un, ​corpX.un] 
 +     ​addresses:​ [192.168.X.10]
 </​code><​code>​ </​code><​code>​
 # cat user-data # cat user-data
Line 28: Line 44:
     passwd: '​$1$ycyfWkhi$hDr9nyte7elqQcyh07/​j0/'​     passwd: '​$1$ycyfWkhi$hDr9nyte7elqQcyh07/​j0/'​
     shell: /bin/bash     shell: /bin/bash
-    ​lock-passwd: false +    ​lock_passwd: false
-    chpasswd: { expire: False }+
 package_update:​ true package_update:​ true
 packages: packages:
технология_cloud-init.1720528858.txt.gz · Last modified: 2024/07/09 15:40 by val