packer vsphere-iso centos examples
Example: packer vsphere-iso centos examples
cmdline
eula --agreed
logging --level=info
selinux --disabled
firewall --disabled
poweroff
auth --enableshadow --passalgo=sha512
cdrom
firstboot --disabled
keyboard --vckeymap=gb --xlayouts='gb'
lang en_GB.UTF-8
network --onboot=no --device=link --bootproto=static --ip={{ ip }} --netmask={{ netmask }} --gateway={{ gateway }} --nameserver={{ dns_servers }} --hostname={{ hostname.domain }} --noipv6
rootpw --iscrypted XYZZZZZZZZZZZZZZZZ
services --enabled=NetworkManager,sshd,chronyd
timezone Europe/London --isUtc
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm
clearpart --none --initlabel
%packages
@^minimal
@core
chrony
%end
%addon com_redhat_kdump --disable --reserve-mb='auto'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end
%post --log=/root/ks-post.log
yum install -y epel-release
yum install -y open-vm-tools
yum install -y perl
%end