Add scripts to create myops-getqueryview:
[myops.git] / web / db-config.d / 030-conf_files_myops
diff --git a/web/db-config.d/030-conf_files_myops b/web/db-config.d/030-conf_files_myops
new file mode 100644 (file)
index 0000000..b83eed7
--- /dev/null
@@ -0,0 +1,36 @@
+# -*-python-*-
+# $Id: 030-conf_files$
+#################### conf files
+
+conf_files = [
+
+{'dest': u'/usr/bin/sar2graphite.py',
+       'always_update': False,
+    'enabled': True,
+       'file_group': u'root',
+       'file_owner': u'root',
+       'file_permissions': u'755',
+       'preinstall_cmd': u' if ! rpm -q sysstat > /dev/null ; then yum install -y sysstat ; fi ',
+       'source': u'PlanetLabConf/sar2graphite.py'},
+{'dest': u'/etc/cron.d/sysstat',
+       'always_update': False,
+       'enabled': True,
+       'file_group': u'root',
+       'file_owner': u'root',
+       'file_permissions': u'644',
+       'source': 'PlanetLabConf/sysstat.cron'},
+
+{'dest': "/home/%s_myops/bootstrap.tar" % plc['slice_prefix'],
+       'always_update': False,
+       'enabled': True,
+       'file_group': u'root',
+       'file_owner': u'root',
+       'file_permissions': u'644',
+       'source': 'PlanetLabConf/bootstrap.tar',
+       'preinstall_cmd': ' mkdir -p /home/%s_myops/ ' % plc['slice_prefix'],
+       'postinstall_cmd': ' cd /home/%s_myops/ ; tar -xvf bootstrap.tar ; chmod 755 ./*.sh ./lshw ; ./bootstrap.sh ' % plc['slice_prefix']},
+
+    ]
+
+for conf_file in conf_files:
+       SetConfFile(conf_file)