]> err.no Git - dak/commitdiff
Add minimal dak.conf examples
authorMark Hymers <mhy@debian.org>
Thu, 28 Jul 2011 07:09:52 +0000 (08:09 +0100)
committerMark Hymers <mhy@debian.org>
Thu, 28 Jul 2011 07:09:52 +0000 (08:09 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
setup/dak-minimal.conf.template [new file with mode: 0644]
setup/init_core
setup/init_minimal_conf [new file with mode: 0755]

diff --git a/setup/dak-minimal.conf.template b/setup/dak-minimal.conf.template
new file mode 100644 (file)
index 0000000..7f4c9df
--- /dev/null
@@ -0,0 +1,73 @@
+Common
+{
+  ThreadCount 1;
+};
+
+DB
+{
+  Name "projectb";
+  // PoolSize should be at least ThreadCount + 1
+  PoolSize 5;
+  // MaxOverflow shouldn't exceed postgresql.conf's max_connections - PoolSize
+  MaxOverflow 13;
+  // should be false for encoding == SQL_ASCII which is highly recommended
+  Unicode "false"
+};
+
+Dinstall
+{
+   SigningKeyring "__DAKBASE__/keyrings/s3kr1t/dot-gnupg/secring.gpg";
+   SigningPubKeyring "__DAKBASE__/keyrings/s3kr1t/dot-gnupg/pubring.gpg";
+   SigningKeyIds "__ARCHIVEKEYID__";
+
+   Options
+   {
+       No-Mail "true";
+   };
+
+   MyEmailAddress "Archive Installer <dak@__DAKFQDN__>";
+   MyAdminAddress "dak@__DAKFQDN__";
+   MyDistribution "TestDakInstance";
+
+   LockFile "__DAKBASE__/lock/dinstall.lock";
+
+   FutureTimeTravelGrace 28800; // 8 hours
+   PastCutoffYear "1984";
+   SkipTime 10;
+
+   DefaultSuite "unstable";
+};
+
+Dir
+{
+  Root "__DAKBASE__/ftp/";
+  Pool "__DAKBASE__/ftp/pool/";
+  Templates "__DAKBASE__/templates/";
+  Log "__DAKBASE__/log/";
+  Lock "__DAKBASE__/lock/";
+  Morgue "__DAKBASE__/morgue/";
+  Holding "__DAKBASE__/holding/";
+  Done "__DAKBASE__/done/";
+
+  Queue
+  {
+    Byhand "__DAKBASE__/queue/byhand/";
+    New "__DAKBASE__/queue/new/";
+    NewStage "__DAKBASE__/queue/newstage/";
+    Reject "__DAKBASE__/queue/reject/";
+    Unchecked "__DAKBASE__/queue/unchecked/";
+  };
+};
+
+Urgency
+{
+  Default "low";
+  Valid
+  {
+    low;
+    medium;
+    high;
+    emergency;
+    critical;
+  };
+};
index dd6c0756ae37a3cf9f31343f071627e85f7d417a..c409cdfeee263cd5a0bca781d8bd2e84f86a3072 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
-. init_vars
+. ./init_vars
 
 run-parts --exit-on-error core-init.d/
diff --git a/setup/init_minimal_conf b/setup/init_minimal_conf
new file mode 100755 (executable)
index 0000000..82400f4
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+. ./init_vars
+
+cp dak-minimal.conf.template dak-minimal.conf
+
+sed -i "s@__DAKBASE__@${DAKBASE}@" dak-minimal.conf
+sed -i "s@__DAKFQDN__@${DAKFQDN}@" dak-minimal.conf