[debian-edu-commits] debian-edu/ 02/14: Add tool to setup Cfengine3.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Sat Jan 6 23:46:40 UTC 2018


This is an automated email from the git hooks/post-receive script.

schweer-guest pushed a commit to branch master
in repository debian-edu-config.

commit 7de247c0f6e36196b694b5a60430b5e1855e20ab
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Sat Jan 6 23:26:39 2018 +0100

    Add tool to setup Cfengine3.
---
 share/debian-edu-config/tools/setup-cfengine3 | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/share/debian-edu-config/tools/setup-cfengine3 b/share/debian-edu-config/tools/setup-cfengine3
new file mode 100755
index 0000000..3de8b15
--- /dev/null
+++ b/share/debian-edu-config/tools/setup-cfengine3
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# Basic setup of cfengine3 as local policy server.
+# Used in d-e-c/.../d-i/finish-install during installation inside d-i and
+# d-e-c/...ltsp/.../Debian-custom/032-edu-pkgs during LTSP chroot installation.
+# Update all configuration files upon upgrades.
+#
+if [ ! -d /var/lib/cfengine3/inputs/debian-edu ] ; then
+    echo "localhost" > /var/lib/cfengine3/policy_server.dat
+    chmod 644 /var/lib/cfengine3/policy_server.dat
+    cp -r /var/lib/cfengine3/masterfiles/* /var/lib/cfengine3/inputs
+    mkdir -p /var/lib/cfengine3/inputs/debian-edu
+fi
+cp /etc/cfengine3/debian-edu/promises.cf /var/lib/cfengine3/inputs
+cp /etc/cfengine3/debian-edu/edu.cf /var/lib/cfengine3/inputs/debian-edu
+cp /etc/cfengine3/debian-edu/cf.* /var/lib/cfengine3/inputs/debian-edu
+echo ""
+echo " Log files are available in /var/log/cfengine3/."
+echo ""
+echo " 'cf-agent -I' is used at installation time inside d-i."
+echo " If needed, use 'cf-agent -I -D installation' to repair promises."
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list