/
base.xml
115 lines (84 loc) · 2.21 KB
/
base.xml
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
<?xml version="1.0" standalone="no"?>
<stack>
<description>
Base class for all nodes.
</description>
<si_copyright>
Copyright (c) 2006 - 2017 StackIQ Inc.
All rights reserved. stacki(r) v4.0 stacki.com
https://github.com/Teradata/stacki/blob/master/LICENSE.txt
</si_copyright>
<copyright>
Copyright (c) 2000 - 2010 The Regents of the University of California
All rights reserved. Rocks(r) v5.4 www.rocksclusters.org
https://github.com/Teradata/stacki/blob/master/LICENSE-ROCKS.txt
</copyright>
<native lang="kickstart">
unsupported_hardware
install
%include /tmp/partition-info
lang &Kickstart_Lang;
keyboard &Kickstart_Keyboard;
timezone --utc &Kickstart_Timezone;
<eval shell="python" mode="xml">
if '&boot_device;' != '' and '&release;' == '6.x':
print "bootloader --location=none"
elif '&boot_device;' != '' and '&release;' == '7.x':
print "bootloader --location=mbr --boot-drive=&boot_device;"
else:
print "bootloader --location=mbr"
</eval>
</native>
<package cond="'&release;' == '7.x'">net-tools</package>
<package>foundation-rcs</package>
<package>mlocate</package>
<package>vim</package>
<package>pciutils</package>
<package>ipmitool</package>
<package>OpenIPMI</package>
<package>grub2</package>
<package>grub2-tools</package>
<package>wget</package>
<package>bridge-utils</package>
<post>
/sbin/chkconfig stack-pre on
/sbin/chkconfig stack-post on
</post>
<post>
<file name="/tmp/mdmonitor"
expr="sed -e 's/--user=root//' /etc/rc.d/init.d/mdmonitor"/>
<file name="/etc/rc.d/init.d/mdmonitor" perms="755"
expr="cat /tmp/mdmonitor"/>
rm /tmp/mdmonitor
</post>
<post>
/sbin/chkconfig NetworkManager off
</post>
<!-- Rsyslog Configuration file -->
<post>
<file name="/etc/rsyslog.d/stacki.conf">
/*
Turn off escape character parsing.
This keeps tabs and newlines intact.
*/
$EscapeControlCharactersOnReceive off
# Send local0 facility to /var/log/local0
local0.* /var/log/local0
/*
If we're calling this from StackI
command line, stop processing now
*/
if $programname == 'SCL' then ~
</file>
</post>
<post>
<file name="/etc/stack-release">
stacki release &version; (&release;)
</file>
</post>
<boot order="post">
mkdir -p /var/log/stacki/ks
mv /tmp/ks-script* /var/log/stacki/ks
updatedb
</boot>
</stack>