Updated kickstart
This commit is contained in:
@@ -6,6 +6,19 @@ locals {
|
|||||||
buildtime = formatdate("YYYY-MM-DD hh:mm ZZZ", timestamp())
|
buildtime = formatdate("YYYY-MM-DD hh:mm ZZZ", timestamp())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
packer {
|
||||||
|
required_plugins {
|
||||||
|
ansible = {
|
||||||
|
version = ">= 1.1.3"
|
||||||
|
source = "github.com/hashicorp/ansible"
|
||||||
|
}
|
||||||
|
name = {
|
||||||
|
version = "~> 1"
|
||||||
|
source = "github.com/hashicorp/proxmox"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
# SOURCE
|
# SOURCE
|
||||||
##################################################################################
|
##################################################################################
|
||||||
@@ -38,7 +51,7 @@ source "proxmox-iso" "fedora-kickstart" {
|
|||||||
"e",
|
"e",
|
||||||
"<down><down><down><left>",
|
"<down><down><down><left>",
|
||||||
# leave a space from last arg
|
# leave a space from last arg
|
||||||
" inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks1.cfg <f10>"
|
" inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg <f10>"
|
||||||
]
|
]
|
||||||
|
|
||||||
boot_wait = "${var.vm_boot_wait}"
|
boot_wait = "${var.vm_boot_wait}"
|
||||||
|
|||||||
@@ -1,39 +1,55 @@
|
|||||||
# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_an_advanced_rhel_installation/kickstart-commands-and-options-reference_installing-rhel-as-an-experienced-user
|
# Kickstart file for Fedora 41 Server (Text-based Installation)
|
||||||
#cdrom
|
#
|
||||||
# License agreement
|
# For use with the Fedora Server netinstall ISO.
|
||||||
eula --agreed
|
# Boot the installer with:
|
||||||
# Use network installation
|
# linux /isolinux/vmlinuz inst.ks=http://<server>/<path>/ks.cfg
|
||||||
#url --url="https://mirror.rackspace.com/centos-stream/9-stream/BaseOS/x86_64/os/"
|
#
|
||||||
#repo --name="AppStream" --baseurl=http://mirror.rackspace.com/centos-stream/9-stream/BaseOS/x86_64/os/../../../AppStream/x86_64/os/
|
# For a local file on a USB drive, you can use:
|
||||||
|
# linux /isolinux/vmlinuz inst.ks=hd:LABEL=<USB_LABEL>:/ks.cfg
|
||||||
|
|
||||||
# Use text mode install
|
# Use text mode install
|
||||||
text
|
text
|
||||||
|
|
||||||
# Disable Initial Setup on first boot
|
# Disable Initial Setup on first boot
|
||||||
firstboot --disable
|
firstboot --disable
|
||||||
|
|
||||||
# Keyboard layout
|
# Keyboard layout
|
||||||
keyboard --vckeymap=us --xlayouts='us'
|
keyboard --vckeymap=us --xlayouts='us'
|
||||||
|
|
||||||
# System language
|
# System language
|
||||||
lang en_US.UTF-8
|
lang en_US.UTF-8
|
||||||
|
|
||||||
# Network information
|
# Network information
|
||||||
network --bootproto=dhcp --device=link --activate
|
network --bootproto=dhcp --device=link --activate
|
||||||
network --hostname=fedora.localdomain
|
network --hostname=fedora.localdomain
|
||||||
|
|
||||||
# Root password
|
# Root password
|
||||||
rootpw $5$CXpezfLKTajPP7yI$VM8STd3QaHBTKMe2DLTmK5p.lEGbUYYZV8jGG3nxX2/ --iscrypted
|
rootpw $5$CXpezfLKTajPP7yI$VM8STd3QaHBTKMe2DLTmK5p.lEGbUYYZV8jGG3nxX2/ --iscrypted
|
||||||
|
|
||||||
# SELinux configuration
|
# SELinux configuration
|
||||||
selinux --enforcing
|
selinux --enforcing
|
||||||
|
|
||||||
# Do not configure the X Window System
|
# Do not configure the X Window System
|
||||||
skipx
|
skipx
|
||||||
|
|
||||||
# System timezone
|
# System timezone
|
||||||
timezone US/Chicago --utc
|
timezone US/Chicago --utc
|
||||||
# Add a user named packer
|
|
||||||
|
# Add a user named wed
|
||||||
user --groups=wheel --name=wed --password=$5$UOpZHG55fWCHlNSp$nFnpaVLb9enbQTebHo4SKBqolGr39SMYo2ZshHCe2d3 --iscrypted --gecos="wed"
|
user --groups=wheel --name=wed --password=$5$UOpZHG55fWCHlNSp$nFnpaVLb9enbQTebHo4SKBqolGr39SMYo2ZshHCe2d3 --iscrypted --gecos="wed"
|
||||||
|
|
||||||
# System bootloader configuration
|
# System bootloader configuration
|
||||||
bootloader --location=mbr --append="crashkernel=auto"
|
bootloader --location=mbr --append="crashkernel=auto"
|
||||||
|
|
||||||
# Clear the Master Boot Record
|
# Clear the Master Boot Record
|
||||||
zerombr
|
zerombr
|
||||||
|
|
||||||
# Remove partitions
|
# Remove partitions
|
||||||
clearpart --all --initlabel
|
clearpart --all --initlabel
|
||||||
|
|
||||||
# Automatically create partitions using LVM
|
# Automatically create partitions using LVM
|
||||||
autopart --type=lvm
|
autopart --type=lvm
|
||||||
|
|
||||||
# Reboot after successful installation
|
# Reboot after successful installation
|
||||||
reboot
|
reboot
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user