diff --git a/gen-cloud-init/Makefile b/gen-cloud-init/Makefile index 2383983..3742b51 100644 --- a/gen-cloud-init/Makefile +++ b/gen-cloud-init/Makefile @@ -5,6 +5,10 @@ install-dependencies-ubuntu: apt update apt install -y ruby genisoimage cloud-init +install-dependencies-debian: + apt update + apt install -y ruby genisoimage cloud-init + install-dependencies-rhel: dnf install ruby genisoimage -y @@ -54,5 +58,12 @@ ubuntu: deploy-ubuntu: cp -fv ubuntu-master-init.iso ./isos/ +alpine: + cp -fv user-data-alpine user-data + cp -fv meta-data-alpine meta-data + bash gen-hostname-and-instance-id.sh + bash ./build.sh alpine-master-init.iso +deploy-alpine: + cp -fv alpine-master-init.iso ./isos/ diff --git a/gen-cloud-init/meta-data-alpine b/gen-cloud-init/meta-data-alpine new file mode 100644 index 0000000..a943fb2 --- /dev/null +++ b/gen-cloud-init/meta-data-alpine @@ -0,0 +1 @@ +local-hostname: alpine diff --git a/gen-cloud-init/user-data-alpine b/gen-cloud-init/user-data-alpine new file mode 100644 index 0000000..8f60cbc --- /dev/null +++ b/gen-cloud-init/user-data-alpine @@ -0,0 +1,19 @@ +#cloud-config + +package_update: false +package_upgrade: false +package_reboot_if_required: false +#package_reboot: true + +ssh_pwauth: true +password: ###PASSWORD### +ssh_authorized_keys: +- ###SSH_KEY_1### +- ###SSH_KEY_2### +- ###SSH_KEY_3### + +chpasswd: + expire: false + +users: +- default