-
Notifications
You must be signed in to change notification settings - Fork 266
/
create_hdd_sap.xml.ep
300 lines (300 loc) · 10.4 KB
/
create_hdd_sap.xml.ep
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<suse_register>
<do_registration config:type="boolean">true</do_registration>
<install_updates config:type="boolean">true</install_updates>
<slp_discovery t="boolean">false</slp_discovery>
% if ($check_var->('SLE_PRODUCT', 'sles4sap')) {
<reg_code><%= $get_var->('SCC_REGCODE_SLES4SAP') %></reg_code>
% } else {
<reg_code><%= $get_var->('SCC_REGCODE') %></reg_code>
% }
<reg_server><%= $get_var->('SCC_URL') %></reg_server>
% if (keys %$addons) {
<addons config:type="list">
% while (my ($key, $addon) = each (%$addons)) {
<addon>
<name><%= $addon->{name} %></name>
<version><%= $addon->{version} %></version>
<arch><%= $addon->{arch} %></arch>
% if ($key eq 'we' and $check_var->('SLE_PRODUCT', 'sles')) {
<reg_code><%= $get_var->('SCC_REGCODE_WE') %></reg_code>
% }
% if ($key eq 'we' and $check_var->('SLE_PRODUCT', 'sled')) {
<reg_code><%= $get_var->('SCC_REGCODE') %></reg_code>
% }
% if ($key eq 'rt') {
<reg_code><%= $get_var->('SCC_REGCODE_RT') %></reg_code>
% }
% if ($key eq 'ltss') {
<reg_code><%= $get_var->('SCC_REGCODE_LTSS') %></reg_code>
% }
% if ($key eq 'ha') {
% if ($check_var->('SLE_PRODUCT', 'sles4sap')) {
<reg_code><%= $get_var->('SCC_REGCODE_SLES4SAP') %></reg_code>
% } else {
<reg_code><%= $get_var->('SCC_REGCODE_HA') %></reg_code>
% }
% }
</addon>
% }
% if ($check_var->('SLE_PRODUCT', 'sles4sap')) {
<addon>
<name>sle-module-sap-applications</name>
<version>{{VERSION}}</version>
<arch>{{ARCH}}</arch>
</addon>
% }
</addons>
%}
</suse_register>
<bootloader>
<global>
<timeout config:type="integer">-1</timeout>
</global>
% if ($check_var->('UEFI', '1')) {
<loader_type>grub2-efi</loader_type>
% }
% unless ($check_var->('UEFI', '1')) {
<loader_type>grub2</loader_type>
% }
</bootloader>
<general>
<mode>
% if ($check_var->('BACKEND', 'ipmi') or $check_var->('BACKEND', 'svirt')) {
<final_reboot config:type="boolean">true</final_reboot>
% }
<confirm config:type="boolean">false</confirm>
</mode>
<signature-handling>
<accept_unsigned_file config:type="boolean">true</accept_unsigned_file>
<accept_unknown_gpg_key config:type="boolean">true</accept_unknown_gpg_key>
<accept_non_trusted_gpg_key config:type="boolean">true</accept_non_trusted_gpg_key>
<import_gpg_key config:type="boolean">true</import_gpg_key>
</signature-handling>
</general>
<partitioning config:type="list">
<drive>
<disklabel>gpt</disklabel>
<initialize config:type="boolean">true</initialize>
% if ($check_var->('ARCH', 's390x')) {
<enable_snapshots config:type="boolean">true</enable_snapshots>
<type config:type="symbol">CT_DISK</type>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">true</format>
<filesystem config:type="symbol">ext2</filesystem>
<mount>/boot/zipl</mount>
<fstopt>acl,user_xattr</fstopt>
<mountby config:type="symbol">path</mountby>
<partition_id config:type="integer">131</partition_id>
<partition_nr config:type="integer">1</partition_nr>
<partition_type>primary</partition_type>
<size>500M</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<filesystem config:type="symbol">swap</filesystem>
<format config:type="boolean">true</format>
<mount>swap</mount>
<mountby config:type="symbol">uuid</mountby>
<partition_id config:type="integer">130</partition_id>
<partition_nr config:type="integer">2</partition_nr>
<partition_type>primary</partition_type>
<size>2G</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">true</format>
<mount>/</mount>
<mountby config:type="symbol">uuid</mountby>
<partition_id config:type="integer">131</partition_id>
<partition_nr config:type="integer">3</partition_nr>
<partition_type>primary</partition_type>
<size>max</size>
</partition>
</partitions>
% }
% unless ($check_var->('ARCH', 's390x')) {
<partitions config:type="list">
% if ($check_var->('ARCH', 'aarch64') or $check_var->('UEFI', '1')) {
<partition>
<mountby config:type="symbol">uuid</mountby>
<create config:type="boolean">true</create>
<filesystem config:type="symbol">vfat</filesystem>
<format config:type="boolean">true</format>
<fstopt>umask=0002,utf8=true</fstopt>
<mount>/boot/efi</mount>
<size>512M</size>
</partition>
% }
<partition>
<create config:type="boolean">true</create>
<filesystem config:type="symbol">swap</filesystem>
<format config:type="boolean">true</format>
<mount>swap</mount>
<mountby config:type="symbol">uuid</mountby>
<partition_id config:type="integer">130</partition_id>
<resize config:type="boolean">false</resize>
<size>2G</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<create_subvolumes config:type="boolean">true</create_subvolumes>
<filesystem config:type="symbol">btrfs</filesystem>
<format config:type="boolean">true</format>
<mount>/</mount>
<mountby config:type="symbol">uuid</mountby>
<partition_id config:type="integer">131</partition_id>
<resize config:type="boolean">false</resize>
<size>max</size>
</partition>
</partitions>
% }
<use>all</use>
</drive>
</partitioning>
<networking>
<interfaces config:type="list">
<interface>
<bootproto>dhcp</bootproto>
<device>eth0</device>
<dhclient_set_default_route>yes</dhclient_set_default_route>
<startmode>auto</startmode>
</interface>
</interfaces>
</networking>
<firewall>
<enable_firewall config:type="boolean">true</enable_firewall>
<start_firewall config:type="boolean">true</start_firewall>
</firewall>
<report>
<errors>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">0</timeout>
</errors>
<messages>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">0</timeout>
</messages>
<warnings>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">0</timeout>
</warnings>
<yesno_messages>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">0</timeout>
</yesno_messages>
</report>
<keyboard>
<keyboard_values>
<delay/>
<discaps config:type="boolean">false</discaps>
<numlock>bios</numlock>
<rate/>
</keyboard_values>
<keymap>english-us</keymap>
</keyboard>
<language>
<language>en_US</language>
<languages/>
</language>
<ntp-client>
<ntp_policy>auto</ntp_policy>
</ntp-client>
<software>
<products config:type="list">
% if ($check_var->('SLE_PRODUCT','sles4sap')) {
<product>SLES_SAP</product>
% } else {
<product><%= uc $get_var->('SLE_PRODUCT') %></product>
% }
</products>
<packages config:type="list">
<!-- Workaround for bsc#1202234: [addon]-release packages are missing after autoyast installation. -->
% foreach (values %$addons) {
<package><%= lc($_->{name}) %>-release</package>
% }
<!-- end of workaround -->
% if ($check_var->('SLE_PRODUCT', 'sles4sap')) {
<package>sle-module-sap-applications-release</package>
% }
</packages>
<patterns config:type="list">
% for my $pattern (@$patterns) {
<pattern><%= $pattern %></pattern>
% }
</patterns>
</software>
<services-manager>
% if ($check_var->('DESKTOP', 'gnome')) {
<default_target>graphical</default_target>
% }
% if ($check_var->('DESKTOP', 'textmode')) {
<default_target>multi-user</default_target>
% }
<services>
<disable config:type="list"/>
<enable config:type="list">
<service>sshd</service>
</enable>
</services>
</services-manager>
<timezone>
<hwclock>UTC</hwclock>
<timezone>Europe/Berlin</timezone>
</timezone>
<users config:type="list">
% unless ($check_var->('ROOTONLY', '1')) {
<user config:type="map">
<authorized_keys config:type="list"/>
<encrypted config:type="boolean">true</encrypted>
% if ($check_var->('ARCH', 'ppc64le')) {
<fullname>Bernhard M. Wiedemann</fullname>
% }
% unless ($check_var->('ARCH', 'ppc64le')) {
<fullname>bernhard</fullname>
% }
<gid>100</gid>
<home>/home/bernhard</home>
<password_settings config:type="map">
<expire/>
<flag/>
<inact>-1</inact>
<max>99999</max>
<min>0</min>
<warn>7</warn>
</password_settings>
<shell>/bin/bash</shell>
<uid>1000</uid>
<user_password>$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/</user_password>
<username>bernhard</username>
</user>
% }
<user config:type="map">
<authorized_keys config:type="list"/>
<encrypted config:type="boolean">true</encrypted>
<fullname>root</fullname>
<gid>0</gid>
<home>/root</home>
<password_settings config:type="map">
<expire/>
<flag/>
<inact/>
<max/>
<min/>
<warn/>
</password_settings>
<shell>/bin/bash</shell>
<uid>0</uid>
<user_password>$6$gdDHoMtVLjs4CCzf$2tSvAdgvqrKo84pA59bEjZRh7IGMfv4u0Yl4hrRzPgFPWLd8RXWdn/boT7yM3K3BlTk57qyR0TZ/nMb9rlpzx1</user_password>
<username>root</username>
</user>
</users>
</profile>