Skip to content

Instantly share code, notes, and snippets.

@caasi
Created July 22, 2021 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caasi/353e786ffaef8c000a49fe33151fd1cd to your computer and use it in GitHub Desktop.
Save caasi/353e786ffaef8c000a49fe33151fd1cd to your computer and use it in GitHub Desktop.
--- /etc/cloud/cloud.cfg 2019-09-12 07:42:33.236106056 +0000
+++ /etc/cloud/cloud.cfg.dpkg-new 2021-05-11 17:22:24.000000000 +0000
@@ -12,7 +12,7 @@
disable_root: true
# This will cause the set+update hostname module to not operate (if true)
-preserve_hostname: true
+preserve_hostname: false
# Example datasource config
# datasource:
@@ -21,6 +21,8 @@
# timeout: 5 # (defaults to 50 seconds)
# max_wait: 10 # (defaults to 120 seconds)
+
+
# The modules that run in the 'init' stage
cloud_init_modules:
- migrator
@@ -45,7 +47,6 @@
# this can be used by upstart jobs for 'start on cloud-config'.
- emit_upstart
- snap
- - snap_config # DEPRECATED- Drop in version 18.2
- ssh-import-id
- locale
- set-passwords
@@ -61,7 +62,6 @@
# The modules that run in the 'final' stage
cloud_final_modules:
- - snappy # DEPRECATED- Drop in version 18.2
- package-update-upgrade-install
- fan
- landscape
@@ -71,6 +71,8 @@
- chef
- mcollective
- salt-minion
+ - reset_rmc
+ - refresh_rmc_and_interface
- rightscale_userdata
- scripts-vendor
- scripts-per-once
@@ -96,6 +98,8 @@
groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
+ network:
+ renderers: ['netplan', 'eni', 'sysconfig']
# Automatically discover the best ntp_client
ntp_client: auto
# Other config here will be given to the distro class and/or path classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment