-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathslc6-base-x86_64.tdl
66 lines (58 loc) · 1.71 KB
/
slc6-base-x86_64.tdl
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
<template>
<name>SLC6 Base - x86_64</name>
<description>SLC6 Base - x86_64</description>
<os>
<name>SLC-6</name>
<version>7</version>
<arch>x86_64</arch>
<install type='url'>
<url>http://linuxsoft.cern.ch/cern/slc6X/x86_64/</url>
</install>
</os>
<packages>
<package name='heat-cfntools'/>
<package name='virt-what'/>
<package name='tuned'/>
</packages>
<commands>
<command name='grub'>
exec >>/root/customize.log 2>&1
# Make sure the boot sequence is verbose
[ -f /boot/grub/grub.conf ] && /usr/bin/perl -ni -e "s/ rhgb//;s/ quiet//;print" /boot/grub/grub.conf || :
[ -f /boot/grub2/grub.cfg ] && /usr/bin/perl -ni -e "s/ rhgb//;s/ quiet//;print" /boot/grub2/grub.cfg || :
</command>
<command name='tuned'>
exec >>/root/customize.log 2>&1
/usr/bin/tuned-adm profile virtual-guest || :
</command>
<command name='de-contextualize'>
exec >>/root/customize.log 2>&1
#
# Install cloud-init and friends
#
/usr/bin/yum install cloud-init -y --enablerepo=slc6-rhcommon
if [ -e /etc/cloud/cloud.cfg ]; then
/bin/sed -i 's|cloud-user|root|' /etc/cloud/cloud.cfg
/bin/sed -i 's|^disable_root: 1|disable_root: 0|' /etc/cloud/cloud.cfg
# XXXX cloud.cfg is missing the "growpart" module, which has been added in
# XXXX the "cloud_init_modules" section in cloud-init-0.7.2-5
# XXXX https://bugzilla.redhat.com/show_bug.cgi?id=966888
fi
/usr/bin/yum install cloud-utils dracut-modules-growroot -y
#
# Enable DHCPv6 for eth0
#
echo DHCPV6C=\"yes\" >> /etc/sysconfig/network-scripts/ifcfg-eth0
#
# clean YUM repo's
#
/usr/bin/yum clean all --enablerepo=*
#
# Remove and lock root password
#
/usr/bin/passwd -d root || :
/usr/bin/passwd -l root || :
:
</command>
</commands>
</template>