-
Notifications
You must be signed in to change notification settings - Fork 11
/
build_iso.yml
85 lines (73 loc) · 2.19 KB
/
build_iso.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
- name: Build custom ISO
hosts: all
vars:
#
# Base configuration
#
# Using packer_ variables for compatibility,
# xorrisofs not Packer is used to build image
packer_builder: iso
packer_target: rhel_9_5
packer_target_pretty: Custom RHEL 9.5
image_name: custom.iso
# Build options
do_cleanup: true
use_force: false
#
# OS configuration
#
boot_password: "{{ image_password }}"
root_password: "{{ image_password }}"
# Autopartitioning does not support
# creating BIOS/UEFI-compatible images
bios_uefi_boot: true
# One of: auto/custom/default/single
partitioning: default
disable_ipv6: true
selinux: enforcing
#fips_enable: true
#security_profile: cis
boot_parameters: net.ifnames.prefix=net quiet
# hostname not used with ISO, set the ip= boot parameter instead
ntp_servers: time.cloudflare.com
timezone: Europe/Helsinki
keyboard: fi
create_admin: true
admin_user:
uid: 4444
gid: 4444
name: admin
group: admin
groups: wheel
home: /home/admin
gecos: Admin User
#ssh_key: ssh-ed25519 ... admin@image
passwordless_sudo: true
root_permit_local: true
root_permit_ssh: "prohibit-password"
root_permit_override_security_policy: false
#root_ssh_key: ssh-ed25519 ... root@image
#
# Builder configurations
#
# Builder: ISO (not a Packer builder)
# Set ip= to create fully automated ISO for one particular server only
# Use 'ip=' for generic ISO and require typing IP info on boot from ISO
iso_boot_parameters: inst.geoloc=0 ip=192.168.122.123::192.168.122.1:255.255.255.0:server.example.com:net0:none
output_directory: /tmp/iso_images
# Apply boot config fix needed on UEFI with RHEL ISO
# images booting from USB sticks. This requires sudo.
iso_boot_usb_fix: false
#
# OS installer configuration
#
iso:
rhel_8_10:
url: file:///VirtualMachines/boot/rhel-8.10-x86_64-dvd.iso
checksum: "none"
rhel_9_5:
url: file:///VirtualMachines/boot/rhel-9.5-x86_64-dvd.iso
checksum: "none"
roles:
- myllynen.ansible_packer.ansible_packer