3 #################### conf files
7 {'dest': u'/usr/bin/sar2graphite.py',
8 'always_update': False,
10 'file_group': u'root',
11 'file_owner': u'root',
12 'file_permissions': u'755',
13 'preinstall_cmd': u' if ! rpm -q sysstat > /dev/null ; then yum install -y sysstat ; fi ',
14 'source': u'PlanetLabConf/sar2graphite.py'},
15 {'dest': u'/etc/cron.d/sysstat',
16 'always_update': False,
18 'file_group': u'root',
19 'file_owner': u'root',
20 'file_permissions': u'644',
21 'source': 'PlanetLabConf/sysstat.cron'},
23 {'dest': "/home/%s_myops/bootstrap.tar" % plc['slice_prefix'],
24 'always_update': False,
26 'file_group': u'root',
27 'file_owner': u'root',
28 'file_permissions': u'644',
29 'source': 'PlanetLabConf/bootstrap.tar',
30 'preinstall_cmd': ' mkdir -p /home/%s_myops/ ' % plc['slice_prefix'],
31 'postinstall_cmd': ' cd /home/%s_myops/ ; tar -xvf bootstrap.tar ; chmod 755 ./*.sh ./lshw ; ./bootstrap.sh ' % plc['slice_prefix']},
35 for conf_file in conf_files:
36 SetConfFile(conf_file)