hcoop: add testing server busted, allow admins to configure apache
[hcoop/domtool2.git] / configDefault / domtool.cfg
dissimilarity index 82%
index d237b52..70d1fcd 100644 (file)
@@ -1,40 +1,45 @@
-val libRoot = "/home/adamc/cvs/domtool2/lib"
-val resultRoot = "/home/adamc/domtool"
-val tmpDir = "/tmp/domtool"
-
-val cat = "/bin/cat"
-val cp = "/bin/cp"
-val diff = "/usr/bin/diff"
-val rm = "/bin/rm"
-
-val defaultNs = "ns.hcoop.net"
-
-val defaultRefresh = 172800
-val defaultRetry = 900
-val defaultExpiry = 1209600
-val defaultMinimum = 3600
-
-val nodeIps = [("this", "127.0.0.1"), ("kirillov", "127.0.0.1")]
-val defaultNode = "this"
-
-val aclFile = "/home/adamc/fake/acl"
-
-val testUser = "adamc"
-
-val defaultDomain = "hcoop.net"
-
-val dispatcher = "localhost"
-val dispatcherPort = 1234
-val slavePort = 1235
-val queueSize = 5
-
-val bufSize = 1024
-
-val trustStore = "/home/adamc/fake/TrustKey.pem"
-val serverCert = "/home/adamc/fake/servercert.pem"
-val serverKey = "/home/adamc/fake/serverkey.pem"
-
-val certDir = "/home/adamc/fake/certs"
-val keyDir = "/home/adamc/fake/keys"
-
-val dispatcherName = "hcoop.net"
+open ConfigCore
+
+val libRoot = ConfigCore.sharedRoot ^ "/lib"
+val resultRoot = ConfigCore.sharedRoot ^ "/nodes"
+val tmpDir = "/tmp/domtool"
+val oldResultRoot = ConfigCore.sharedRoot ^ "/nodes.old"
+
+val domtool_publish = ConfigCore.installPrefix ^ "/sbin/domtool-publish"
+
+val nodeIps = [("outpost", "151.236.216.192", "2a01:7e00::f03c:91ff:fe70:7c62"), ("gibran", "142.93.177.82", "2604:a880:800:c1::99:5001"), ("marsh", "45.55.52.66", "2604:a880:800:a1::13a3:f001"), ("minsky", "104.248.1.95", "2604:a880:800:c1::b1:5001"), ("shelob", "68.183.54.165", "2604:a880:800:c1::d:3001"), ("lovelace", "68.183.58.241", "2604:a880:800:c1::c2:7001"), ("busted", "64.225.6.23", "2604:a880:800:c1::1fe:7001")]
+val dispatcherName = "gibran"
+
+val dnsNodes_all = ["outpost", "gibran"]
+val dnsNodes_admin = []
+
+val mailNodes_all = ["minsky"]
+val mailNodes_admin = [ ]
+
+val aclFile = ConfigCore.sharedRoot ^ "/acl"
+
+val testUser = "test"
+
+val defaultDomain = "hcoop.net"
+
+val dispatcherPort = 1234
+val slavePort = 1235
+val queueSize = 5
+
+val bufSize = 1024
+
+val trustStore = ConfigCore.sharedRoot ^ "/TrustStore.pem"
+
+val certDir = ConfigCore.sharedRoot ^ "/certs"
+val keyDir = ConfigCore.sharedRoot ^ "/keys"
+val caDir = "/etc/domtool/ca"
+
+fun domtoolDir user =
+    case user of
+       "domtool" => ConfigCore.sharedRoot ^ "/.domtool"
+      | _ => OS.Path.joinDirFile {dir = Posix.SysDB.Passwd.home (Posix.SysDB.getpwnam user),
+                                 file = ".domtool"}
+
+val worldReadable = ["/usr/share/moin", "/usr/share/apache/icons", "/afs/hcoop.net/common/app/moin/installed"]
+
+val publish_reusers = ConfigCore.sudo ^ " " ^ domtool_publish ^ " users"