misp-packer/http/user-data

32 lines
800 B
Plaintext

#cloud-config
autoinstall:
version: 1
apt:
geoip: true
preserve_sources_list: true
identity:
hostname: misp-vm
username: 'misp'
password: '$6$Zw5jtOmRPBqrzFT7$st/15FZrcYhlt7bgv70ILUsPfzEuFumiZF.CdXJ9VdVXXLHI4WIjJ6MS/5g3410L1ogCO5O7B7ro.XEFZ2P0o0'
keyboard:
layout: us
variant: ''
locale: en_US
network:
network:
version: 2
ethernets:
ens33:
dhcp4: true
dhcp-identifier: mac
ssh:
allow-pw: true
authorized-keys: []
install-server: true
storage:
layout:
name: lvm
late-commands:
- 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'