new: [packer] Initial http dir

20.04
Steve Clement 2020-05-20 13:42:19 +09:00
parent 612f56f975
commit 107536ee52
No known key found for this signature in database
GPG Key ID: 69A20F509BE4AEE9
2 changed files with 20 additions and 0 deletions

0
http/meta-data Normal file
View File

20
http/user-data Normal file
View File

@ -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'