Add scripts to create myops-getqueryview:
[myops.git] / web / db-config.d / 030-conf_files_myops
1 # -*-python-*-
2 # $Id: 030-conf_files$
3 #################### conf files
4
5 conf_files = [
6
7 {'dest': u'/usr/bin/sar2graphite.py',
8         'always_update': False,
9     'enabled': True,
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,
17         'enabled': True,
18         'file_group': u'root',
19         'file_owner': u'root',
20         'file_permissions': u'644',
21         'source': 'PlanetLabConf/sysstat.cron'},
22
23 {'dest': "/home/%s_myops/bootstrap.tar" % plc['slice_prefix'],
24         'always_update': False,
25         'enabled': True,
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']},
32
33     ]
34
35 for conf_file in conf_files:
36         SetConfFile(conf_file)