Add deployment mechanism for hotfixes to nodes in chosen nodegroups.
[nodeconfig.git] / db-config.d / 030-conf_files_hotfixes
diff --git a/db-config.d/030-conf_files_hotfixes b/db-config.d/030-conf_files_hotfixes
new file mode 100644 (file)
index 0000000..69b237b
--- /dev/null
@@ -0,0 +1,20 @@
+#/usr/bin/env plcsh
+
+conf_files = [
+    { 'source': 'PlanetLabConf/hotfixes.php',
+    'dest': '/tmp/hotfixes.tar',
+    'file_owner': 'root',
+    'file_group': 'root'
+    'file_permissions': '644',
+    'enabled': True,
+    'preinstall_cmd': '',
+    'postinstall_cmd': 'tar -C / -xf /tmp/hotfixes.tar',
+    'error_cmd': '',
+    'ignore_cmd_errors': False,
+    'always_update': False},
+ ]
+
+for conf_file in conf_files:
+       SetConfFile(conf_file)
+
+