Skip to content

Instantly share code, notes, and snippets.

View gabrik's full-sized avatar
🛰️
🦀

Gabriele Baldoni gabrik

🛰️
🦀
View GitHub Profile
@gabrik
gabrik / create_config.sh
Created September 26, 2018 16:49
Cloud Images Configurator
#!/bin/sh
# This will generate a openstack-style config drive image suitable for
# use with cloud-init. You may optionally pass in an ssh public key
# (using the -k/--ssh-key option) and a user-data blog (using the
# -u/--user-data option).
usage () {
echo "usage: ${0##*/}: [--ssh-key <pubkey>] [--vendor-data <file>] [--user-data <file>] [--uuid <uuid>] [--hostname
<hostname>] <imagename>"