removed centos8 json example and kickstart
This commit is contained in:
parent
43b251dfaf
commit
00934875d1
@ -1,43 +0,0 @@
|
||||
{
|
||||
"variables": {
|
||||
"sr_name": "",
|
||||
"sr_iso_name": "",
|
||||
"remote_host": "{{env `XAPI_HOST`}}",
|
||||
"remote_username": "{{env `XAPI_USERNAME`}}",
|
||||
"remote_password": "{{env `XAPI_PASSWORD`}}"
|
||||
},
|
||||
"builders": [
|
||||
{
|
||||
"type": "xenserver-iso",
|
||||
"sr_name": "{{user `sr_name`}}",
|
||||
"sr_iso_name": "{{user `sr_iso_name`}}",
|
||||
"remote_host": "{{user `remote_host`}}",
|
||||
"remote_username": "{{user `remote_username`}}",
|
||||
"remote_password": "{{user `remote_password`}}",
|
||||
"vm_memory": "4096",
|
||||
"boot_command": [
|
||||
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks-centos8.cfg<enter><wait>"
|
||||
],
|
||||
"boot_wait": "10s",
|
||||
"disk_size": 40960,
|
||||
"http_directory": "examples/http/centos8",
|
||||
"iso_checksum": "07a8e59c42cc086ec4c49bdce4fae5a17b077dea",
|
||||
"iso_checksum_type": "sha1",
|
||||
"iso_url": "http://mirrors.ocf.berkeley.edu/centos/8.3.2011/isos/x86_64/CentOS-8.3.2011-x86_64-boot.iso",
|
||||
"iso_name": "CentOS-8.3.2011-x86_64-boot.iso",
|
||||
"tools_iso_name": "guest-tools.iso",
|
||||
"vm_other_config": {
|
||||
"conversionvm":"true"
|
||||
},
|
||||
"output_directory": "packer-centos-8.3-x86_64-xenserver",
|
||||
"shutdown_command": "/sbin/shutdown",
|
||||
"ssh_username": "vagrant",
|
||||
"ssh_password": "vagrant",
|
||||
"ssh_wait_timeout": "10000s",
|
||||
"ssh_agent_auth": false,
|
||||
"vm_name": "packer-centos-8.3-x86_64-{{isotime}}",
|
||||
"vm_description": "Build time: {{isotime}}",
|
||||
"keep_vm": "always"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,74 +0,0 @@
|
||||
install
|
||||
# TODO: Figure out why cdrom does not work
|
||||
# cdrom
|
||||
# TODO: parameterize this from the packer config file
|
||||
url --url="http://mirror.centos.org/centos/8.3.2011/BaseOS/x86_64/os/"
|
||||
lang en_US.UTF-8
|
||||
keyboard us
|
||||
network --bootproto=dhcp
|
||||
rootpw vagrant
|
||||
firewall --disabled
|
||||
selinux --permissive
|
||||
timezone UTC
|
||||
bootloader --location=mbr
|
||||
text
|
||||
skipx
|
||||
zerombr
|
||||
clearpart --all --initlabel
|
||||
autopart
|
||||
auth --enableshadow --passalgo=sha512 --kickstart
|
||||
firstboot --disabled
|
||||
eula --agreed
|
||||
services --enabled=NetworkManager,sshd
|
||||
user --name=vagrant --plaintext --password=vagrant --groups=wheel
|
||||
reboot
|
||||
|
||||
%packages --ignoremissing --excludedocs
|
||||
openssh-clients
|
||||
sudo
|
||||
net-tools
|
||||
wget
|
||||
curl
|
||||
|
||||
# unnecessary firmware
|
||||
-aic94xx-firmware
|
||||
-atmel-firmware
|
||||
-b43-openfwwf
|
||||
-bfa-firmware
|
||||
-ipw2100-firmware
|
||||
-ipw2200-firmware
|
||||
-ivtv-firmware
|
||||
-iwl100-firmware
|
||||
-iwl1000-firmware
|
||||
-iwl3945-firmware
|
||||
-iwl4965-firmware
|
||||
-iwl5000-firmware
|
||||
-iwl5150-firmware
|
||||
-iwl6000-firmware
|
||||
-iwl6000g2a-firmware
|
||||
-iwl6050-firmware
|
||||
-libertas-usb8388-firmware
|
||||
-ql2100-firmware
|
||||
-ql2200-firmware
|
||||
-ql23xx-firmware
|
||||
-ql2400-firmware
|
||||
-ql2500-firmware
|
||||
-rt61pci-firmware
|
||||
-rt73usb-firmware
|
||||
-xorg-x11-drv-ati-firmware
|
||||
-zd1211-firmware
|
||||
%end
|
||||
|
||||
%post
|
||||
yum update -y
|
||||
|
||||
# update root certs
|
||||
wget -O/etc/pki/tls/certs/ca-bundle.crt http://curl.haxx.se/ca/cacert.pem
|
||||
|
||||
# sudo
|
||||
yum install -y sudo
|
||||
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
|
||||
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
||||
|
||||
yum clean all
|
||||
%end
|
Loading…
Reference in New Issue
Block a user