jmginer

proxmox-cloudbase_init

Dec 16th, 2021 (edited)
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. Here is an example of the format that proxmox generates.
  2. Proxmox generates a cd / dvd drive named config-2 with the following files:
  3.  
  4. /OPENSTACK/CONTENT/0000 #network config
  5. /OPENSTACK/LATEST/META_DATA.JSON #link to network config
  6. /OPENSTACK/LATEST/USER_DATA #hostname, new user,etc
  7.  
  8.  
  9. ----content file 0000----
  10. auto lo
  11. iface lo inet loopback
  12.  
  13. dns_nameservers 8.8.8.8
  14. auto eth0
  15. iface eth0 inet dhcp
  16.  
  17. ----content file META_DATA.JSON----
  18. {
  19. "uuid": "b05c9c5f540dc5ef8b8e3adb1eb3f29fc9193a8d",
  20. "network_config": { "content_path": "/content/0000" }
  21. }
  22.  
  23. ----content file USER_DATA----
  24. #cloud-config
  25. hostname: testPBS
  26. manage_etc_hosts: true
  27. user: usertest
  28. password: $5$lXJ79pFq$PYISfu4s3SpK6PpPGoH7U8fHOfPuXYAVsBayAgCkfe5
  29. chpasswd:
  30. expire: False
  31. users:
  32. - default
  33. package_upgrade: true
  34.  
  35.  
Add Comment
Please, Sign In to add comment