/
schema.pan
104 lines (94 loc) · 3.71 KB
/
schema.pan
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
# ${license-info}
# ${developer-info
# ${author-info}
# ${build-info}
# Structure for the component generating kickstart files.
unique template quattor/aii/ks/schema;
# X configuration on the KS file. Might deserve a component for
# itself.
type structure_ks_ksxinfo = {
"card" ? string # Graphics card driver
"monitor" ? string #
"noprobe" ? string
"vsync" ? long
"hsync" ? long
"defaultdesktop" : string with match (SELF, "^(GNOME|KDE)$")
"resolution" : string with match (SELF, "^[0-9]+x[0-9]+$")
"videoram" ? long
"startxonboot" : boolean = true
"depth" : long (1..32) = 24
};
type string_ksservice = string with match (SELF, "^(ssh|telnet|smtp|http|ftp)$");
# Information needed for configuring the firewall at installation-time.
type structure_ks_ksfirewall = {
"enabled" : boolean = true
"trusted" ? string []
"services" : string_ksservice[] = list ("ssh")
"ports" : long[] = list (7777)
};
# Information needed for logging into syslog
# Anaconda syslog uses UDP
type structure_ks_logging = {
"host" : type_hostname
"port" : type_port = 514
"level" ? string with match(SELF, "^(debug|warning|error|critical|info)$")
"console" : boolean = true # redirect AII ks logfile to console
# send AII ks logfile to host/port
"send_aiilogs" : boolean = false
# use legacy defaults
# via bash or netcat
"method" : string = 'netcat' with match(SELF, '^(bash|netcat)$')
# via tcp or udp
"protocol" : string = 'udp' with match(SELF, '^(tcp|udp)$')
};
# Information needed for creating the Kickstart file
type structure_ks_ks_info = {
"ackurl" : type_absoluteURI
"acklist" ? type_absoluteURI[]
"auth" : string[] = list ("enableshadow", "enablemd5")
"bootloader_location" : string = "mbr"
"bootloader_append" ? string
"bootdisk_order" ? string[] # From DESYs template
"clearmbr" : boolean = true
"enable_service" ? string[]
"enable_sshd" : boolean = false
"clearpart" ? string []
"driverdisk" ? type_absoluteURI[]
"email_success" : boolean = false
"firewall" ? structure_ks_ksfirewall
"installtype" : string
"installnumber" ? string
"lang" : string = "en_US.UTF-8"
# If you use more than one languages, mark the default one with "--default=your_lang"
"langsupport" ? string [] = list ("en_US.UTF-8")
"logging" ? structure_ks_logging
"mouse" ? string
"bootproto" : string with match (SELF, "static|dhcp")
"keyboard" : string = "us"
"node_profile" : type_absoluteURI
"rootpw" : string
"osinstall_protocol" : string with match (SELF, "^(https?|nfs|ftp)$")
"packages" : string []
"pre_install_script" ? type_absoluteURI
"post_install_script" ? type_absoluteURI
"post_reboot_script" ? type_absoluteURI
"repo" ? string[]
"timezone" : string
"selinux" ? string with match (SELF, "disabled|enforcing|permissive")
"xwindows" ? structure_ks_ksxinfo
"disable_service" ? string[]
"ignoredisk" ? string[]
# Base packages needed for a Quattor client to run (CAF, CCM...)
"base_packages" : string[]
# Repositories to disable while SPMA is not available
"disabled_repos" : string[] = list()
# Hooks for user customization are under: /system/ks/hooks/{pre_install,
# post_install, post_reboot and install}. They
# are optional.
"packages_args" : string[] = list("--ignoremissing","--resolvedeps")
"end_script" : string = ""
"part_label" : boolean = false # Does the "part" stanza support the --label option?
# Set to true if volgroup statement is required in KS config file (must not be present for SL6+)
'volgroup_required' : boolean = false
};
bind "/system/aii/osinstall/ks" = structure_ks_ks_info;