Skip to content

Instantly share code, notes, and snippets.

@ar45
Created October 24, 2018 00:53
Show Gist options
  • Save ar45/2716f86f171097e5995c11a17b5b73f9 to your computer and use it in GitHub Desktop.
Save ar45/2716f86f171097e5995c11a17b5b73f9 to your computer and use it in GitHub Desktop.
Parse and dump cloud init config
sudo python3  -c "from cloudinit.stages import *; import pprint; import json; i=Init();i.fetch();m=Modules(i);print(json.dumps(m.cfg, indent=4))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment