Skip to content

Instantly share code, notes, and snippets.

View tobych's full-sized avatar

Toby Champion tobych

View GitHub Profile
@aw
aw / explain.md
Last active July 29, 2024 12:02
[SOLVED] Proxmox VE and cloud-init snippets etc

Proxmox VE 6.x release includes a feature to add custom cloud-init configs. Unfortunately there is poor documentation, so I had to figure this out by adding pieces of information together.

The custom cloud-init files (user-data, meta-data, network-config)

The cloud-init files need to be stored in a snippet. This is not very well documented:

  1. Go to Storage View -> Storage -> Add -> Directory
  2. Give it an ID such as snippets, and specify any path on your host such as /snippets
  3. Under Content choose Snippets and de-select Disk image (optional)
  4. Upload (scp/rsync/whatever) your user-data, meta-data, network-config files to your proxmox server in /snippets/snippets/ (the directory should be there if you followed steps 1-3)
@dcwangmit01
dcwangmit01 / gcloudInstanceTemplateResize.py
Last active July 9, 2017 07:00
Python script for resizing a gcloud instance template
"""Resize a gcloud instanceTemplate by creating a new one
Given an existing instanceTemplate name, copy it to a new name and
optionally set a new size and machineType.
This script can be used to resize google cloud container kubernetes
node instance templates. It is necessary because the gcloud container
instanceTemplate UI does not allow the resizing of disks for
kubernetes nodes, and the curl and REST examples don't seem to work as
of 03/28/2016.