Updated templates

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5749 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-04-13 03:30:05 +00:00
parent ca4e5e2fbf
commit 4d91b4be21
2 changed files with 27 additions and 1 deletions

View File

@ -4,7 +4,7 @@ install
url --url replace_url
key --skip
lang en_US.UTF-8
network --device eth0 --mtu=1500 --bootproto static --ip replace_ip --netmask replace_netmask --gateway replace_gateway --nameserver replace_nameserver --hostname replace_hostname
network --bootproto dhcp
rootpw replace_rootpw
firewall --disabled
authconfig --enableshadow --enablemd5

View File

@ -1081,4 +1081,30 @@
<zfcp>
<devices config:type="list"/>
</zfcp>
<configure>
<scripts>
<post-scripts config:type="list">
<script>
<filename>post.sh</filename>
<interpreter>shell</interpreter>
<source>
<![CDATA[
#!/bin/sh
# Set MAC address
cat /etc/sysconfig/network/ifcfg-replace_device | grep -v "LLADDR" | grep -v "UNIQUE" > /tmp/ifcfg-replace_device
echo LLADDR='replace_lladdr' >> /tmp/ifcfg-replace_device
echo UNIQUE='' >> /tmp/ifcfg-replace_device
cat /tmp/ifcfg-replace_device > /etc/sysconfig/network/ifcfg-replace_device
# Set layer = 2
cat /etc/sysconfig/hardware/hwcfg-replace_device | grep -v "QETH_LAYER2_SUPPORT" > /tmp/hwcfg-replace_device
echo QETH_LAYER2_SUPPORT='1' >> /tmp/hwcfg-replace_device
cat /tmp/hwcfg-replace_device > /etc/sysconfig/hardware/hwcfg-replace_device
]]>
</source>
</script>
</post-scripts>
</scripts>
</configure>
</profile>