From 107536ee5271db0bdd400984d1092847cfbf8d34 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Wed, 20 May 2020 13:42:19 +0900 Subject: [PATCH] new: [packer] Initial http dir --- http/meta-data | 0 http/user-data | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 http/meta-data create mode 100644 http/user-data diff --git a/http/meta-data b/http/meta-data new file mode 100644 index 0000000..e69de29 diff --git a/http/user-data b/http/user-data new file mode 100644 index 0000000..65f545e --- /dev/null +++ b/http/user-data @@ -0,0 +1,20 @@ +#cloud-config +autoinstall: + version: 1 + identity: + hostname: misp-vm + username: 'misp' + password: '$6$Zw5jtOmRPBqrzFT7$st/15FZrcYhlt7bgv70ILUsPfzEuFumiZF.CdXJ9VdVXXLHI4WIjJ6MS/5g3410L1ogCO5O7B7ro.XEFZ2P0o0' + network: + network: + version: 2 + ethernets: + ens33: + dhcp4: true + dhcp-identifier: mac + ssh: + install-server: true + late-commands: + - touch /target/etc/cloud/cloud-init.disabled + - sed -i 's/^#*\(send dhcp-client-identifier\).*$/\1 = hardware;/' /target/etc/dhcp/dhclient.conf + - 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml'