Skip to content

Instantly share code, notes, and snippets.

config:
cloud-init.user-data: |-
#cloud-config
users:
- default
system_info:
default_user:
name: cloud-user
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
config:
cloud-init.network-config: |-
network:
version: 2
ethernets:
eth0:
dhcp4: true
nameservers:
addresses:
- 1.1.1.1
config:
user.network-config: |
version: 1
config:
- type: nameserver
address: [1.1.1.1,8.8.8.8]
description: Network config DHCP v1
devices: {}
name: net-v1