summaryrefslogtreecommitdiffstats
path: root/system/cfengine/config
diff options
context:
space:
mode:
author Menno Duursma <druiloor@zonnet.nl>2010-05-11 15:18:34 +0200
committer Robby Workman <rworkman@slackbuilds.org>2010-05-11 15:18:34 +0200
commit5c160af0fa05ff3b602b4f6db3fc67f1431f9ab4 (patch)
tree5b121c5ef09bcffce7f011c171493bb4431d5153 /system/cfengine/config
parent62b4c461d93a90c64db1e492bbe0679c4e60b950 (diff)
downloadslackbuilds-5c160af0fa05ff3b602b4f6db3fc67f1431f9ab4.tar.gz
slackbuilds-5c160af0fa05ff3b602b4f6db3fc67f1431f9ab4.tar.xz
system/cfengine: Initial import
Diffstat (limited to 'system/cfengine/config')
-rw-r--r--system/cfengine/config/cfagent.conf16
-rw-r--r--system/cfengine/config/cfrun.hosts1
-rw-r--r--system/cfengine/config/cfservd.conf11
-rw-r--r--system/cfengine/config/update.conf25
4 files changed, 53 insertions, 0 deletions
diff --git a/system/cfengine/config/cfagent.conf b/system/cfengine/config/cfagent.conf
new file mode 100644
index 0000000000..6fe5bc7e27
--- /dev/null
+++ b/system/cfengine/config/cfagent.conf
@@ -0,0 +1,16 @@
+control:
+
+ actionsequence = ( processes )
+ domain = ( localhost )
+ access = ( root )
+ # Where cfexecd sends reports
+ smtpserver = ( localhost )
+ sysadm = ( root@localhost )
+
+processes:
+
+ # Make sure these processes are always running
+ "cfenvd" restart "/usr/sbin/cfenvd"
+ "cfservd" restart "/usr/sbin/cfservd"
+ "cfexecd" restart "/usr/sbin/cfexecd"
+
diff --git a/system/cfengine/config/cfrun.hosts b/system/cfengine/config/cfrun.hosts
new file mode 100644
index 0000000000..2fbb50c4a8
--- /dev/null
+++ b/system/cfengine/config/cfrun.hosts
@@ -0,0 +1 @@
+localhost
diff --git a/system/cfengine/config/cfservd.conf b/system/cfengine/config/cfservd.conf
new file mode 100644
index 0000000000..84bd910599
--- /dev/null
+++ b/system/cfengine/config/cfservd.conf
@@ -0,0 +1,11 @@
+control:
+
+ domain = ( localhost )
+ AllowUsers = ( root )
+ cfrunCommand = ( "/usr/sbin/cfagent" )
+
+admit:
+
+ /usr/sbin/cfagent localhost
+ /var/cfengine/masterfiles localhost
+
diff --git a/system/cfengine/config/update.conf b/system/cfengine/config/update.conf
new file mode 100644
index 0000000000..096e433d52
--- /dev/null
+++ b/system/cfengine/config/update.conf
@@ -0,0 +1,25 @@
+control:
+
+ actionsequence = ( copy tidy )
+ domain = ( localhost )
+ workdir = ( /var/cfengine )
+ policyhost = ( localhost )
+ master_cfinput = ( /var/cfengine/masterfiles )
+
+copy:
+
+ $(master_cfinput)
+ dest=$(workdir)/inputs
+ r=inf
+ mode=644
+ type=binary
+ ignore=*.lst
+ ignore=*~
+ ignore=#*
+ ignore=RCS
+ ignore=CVS
+ server=$(policyhost)
+
+tidy:
+
+ $(workdir)/outputs pattern=* age=7