to support pl_mom mail lists
[nodeconfig.git] / PlanetLabConf / RootResources / pl_conf.py
1 # RootResources/pl_conf
2
3 PL_CONF_VINIT = """#!/bin/sh
4
5 # crond needs syslogd running
6 /sbin/chkconfig syslog on
7
8 # use crond to check for updates
9 /sbin/chkconfig crond on
10
11 cat <<EOF >/etc/cron.daily/yum-upgrade
12 #!/bin/sh
13
14 rm -f /var/lib/rpm/__db*
15 yum -y upgrade
16 EOF
17 chmod a+x /etc/cron.daily/yum-upgrade
18
19 PACKAGE=sidewinder-PlanetLab-SCS
20 rm -f /var/lib/rpm/__db*
21 yum -y install $PACKAGE
22 """
23
24 try:
25     pl_conf = RootSlice(nm_vserver_flags = "static",
26                         nm_cpu_share = 32,
27                         nm_initscript = PL_CONF_VINIT)
28 except:
29     pass