-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathnode.xml
More file actions
65 lines (48 loc) · 1.48 KB
/
node.xml
File metadata and controls
65 lines (48 loc) · 1.48 KB
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
<stack:stack>
<stack:description>
A node is a machine in the cluster. Node's are on a private network
and get DHCP/NIS state from the frontend.
</stack:description>
<stack:copyright>
Copyright (c) 2006 - 2019 Teradata
All rights reserved. Stacki(r) v5.x stacki.com
https://github.com/Teradata/stacki/blob/master/LICENSE.txt
</stack:copyright>
<stack:rocks>
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
</stack:rocks>
<stack:native stack:cond="os == 'redhat'" stack:lang="kickstart">
rootpw --iscrypted &Kickstart_PrivateRootPassword;
</stack:native>
<stack:package>stack-config</stack:package>
<!-- configure IP forwarding -->
<stack:script stack:stage="install-post" stack:shell="/opt/stack/bin/python3">
f = open('/etc/sysctl.conf', 'r+')
output = ''
#
# strip out any line that has net.ipv4.ip_forward = 1 in it
#
for line in f.readlines():
if 'net.ipv4.ip_forward' in line:
continue
output = output + line
#
# add net.ipv4.ip_forward
#
output = output + '\nnet.ipv4.ip_forward = 1\n'
#
# rewrite /etc/sysctl.conf
#
f.truncate()
f.write(output)
f.close()
</stack:script>
<stack:script stack:cond="release == 'redhat7' or os == 'sles'" stack:stage="install-post">
<stack:file stack:name="/etc/man_db.conf" stack:mode="append">
MANDATORY_MANPATH /opt/stack/man
MANDATORY_MANPATH /opt/stack/share/man
</stack:file>
</stack:script>
</stack:stack>