From 407859e730b279c1880175f46907d260f72c11b4 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 15 Jul 2024 23:16:28 +0000 Subject: [PATCH] Added a newer version of the ovs script from github --- gen-cloud-init/Makefile | 9 +++++++++ gen-cloud-init/meta-data-alpine-ovs | 1 + gen-cloud-init/user-data-alpine-ovs | 27 +++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 gen-cloud-init/meta-data-alpine-ovs create mode 100644 gen-cloud-init/user-data-alpine-ovs diff --git a/gen-cloud-init/Makefile b/gen-cloud-init/Makefile index 3742b51..8e6e75f 100644 --- a/gen-cloud-init/Makefile +++ b/gen-cloud-init/Makefile @@ -67,3 +67,12 @@ alpine: deploy-alpine: cp -fv alpine-master-init.iso ./isos/ +alpine-ovs: + cp -fv user-data-alpine-ovs user-data + cp -fv meta-data-alpine-ovs meta-data + bash gen-hostname-and-instance-id.sh + bash ./build.sh alpine-ovs-master-init.iso + +deploy-alpine-ovs: + cp -fv alpine-ovs-master-init.iso ./isos/ + diff --git a/gen-cloud-init/meta-data-alpine-ovs b/gen-cloud-init/meta-data-alpine-ovs new file mode 100644 index 0000000..a943fb2 --- /dev/null +++ b/gen-cloud-init/meta-data-alpine-ovs @@ -0,0 +1 @@ +local-hostname: alpine diff --git a/gen-cloud-init/user-data-alpine-ovs b/gen-cloud-init/user-data-alpine-ovs new file mode 100644 index 0000000..b8986a2 --- /dev/null +++ b/gen-cloud-init/user-data-alpine-ovs @@ -0,0 +1,27 @@ +#cloud-config + +package_update: true +package_upgrade: false +package_reboot_if_required: false +#package_reboot: true + +packages: + - wget + +ssh_pwauth: true +password: ###PASSWORD### +ssh_authorized_keys: +- ###SSH_KEY_1### +- ###SSH_KEY_2### +- ###SSH_KEY_3### + +chpasswd: + expire: false + +users: +- default + + +runcmd: + - [wget, https://gist.githubusercontent.com/elico/bb51c4b7b3edc83c6f804170090752b6/raw/f2db74effe0d3b6cf605bf218105737f43bdf30c/alpine-vm-install-openvswitch.sh, -O, /tmp/alpine-vm-install-openvswitch.sh] + - [sh, /tmp/alpine-vm-install-openvswitch.sh]