-
Notifications
You must be signed in to change notification settings - Fork 9
/
base-image.toml
142 lines (130 loc) · 2.58 KB
/
base-image.toml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# https://www.osbuild.org/guides/blueprint-reference/blueprint-reference.html
#
# Base definition
#
name = "base-image"
description = "RHEL Base Image"
version = "2024.11.15"
distro = "rhel-9"
#
# Boot parameters
#
[customizations.kernel]
append = "net.ifnames.prefix=net quiet"
#
# Filesystem
#
[[customizations.filesystem]]
mountpoint = "/boot"
size = "1 GiB"
# https://issues.redhat.com/browse/RHEL-4636
#[[customizations.filesystem]]
#mountpoint = "swap"
#size = "2 GiB"
[[customizations.filesystem]]
mountpoint = "/"
size = "8 GiB"
[[customizations.filesystem]]
mountpoint = "/home"
size = "2 GiB"
[[customizations.filesystem]]
mountpoint = "/tmp"
size = "2 GiB"
[[customizations.filesystem]]
mountpoint = "/var"
size = "8 GiB"
[[customizations.filesystem]]
mountpoint = "/var/log"
size = "2 GiB"
[[customizations.filesystem]]
mountpoint = "/var/log/audit"
size = "2 GiB"
[[customizations.filesystem]]
mountpoint = "/var/tmp"
size = "2 GiB"
#
# Timezone
#
[customizations.timezone]
timezone = "Europe/Helsinki"
ntpservers = ["time.cloudflare.com"]
#
# Locale
#
[customizations.locale]
languages = ["C.UTF-8"]
keyboard = "fi"
#
# Firewall
#
[customizations.firewall.services]
enabled = ["ssh"]
#
# Services
#
[customizations.services]
enabled = ["sshd", "tuned"]
#
# Packages
#
[[packages]]
name = "bash-completion"
[[packages]]
name = "bind-utils"
[[packages]]
name = "firewalld"
[[packages]]
name = "glibc-langpack-en"
[[packages]]
name = "glibc-minimal-langpack"
[[packages]]
name = "man-pages"
[[packages]]
name = "nano"
#[[packages]]
#name = "NetworkManager-config-server"
## https://bugzilla.redhat.com/show_bug.cgi?id=2041424
## https://issues.redhat.com/browse/RHELPLAN-108305
#[[packages]]
#name = "perl-File-Temp"
[[packages]]
name = "python3"
[[packages]]
name = "setools-console"
#[[packages]]
#name = "unzip"
#[[packages]]
#name = "vim-enhanced"
#
# Security compliance
#
# Run something like the following for the needed blueprint changes:
# oscap xccdf generate fix --fix-type blueprint --profile cis \
# /usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml
#[customizations.openscap]
#datastream = "/usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml"
#profile_id = "xccdf_org.ssgproject.content_profile_cis"
#
# Root
#
[[customizations.sshkey]]
user = "root"
key = "ssh-ed25519 ... id_ed25519.pub"
#
# User
#
[[customizations.user]]
name = "admin"
description = "Admin User"
#password = "$6$..."
key = "ssh-ed25519 changeme"
home = "/home/admin"
shell = "/bin/bash"
groups = ["wheel"]
uid = 4444
[[customizations.files]]
path = "/etc/sudoers.d/admin"
mode = "0440"
data = """
admin ALL=(ALL) NOPASSWD: ALL
"""