[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master 15/18] Add minimal dak.conf examples



Signed-off-by: Mark Hymers <mhy@debian.org>
---
 setup/dak-minimal.conf.template |   73 +++++++++++++++++++++++++++++++++++++++
 setup/init_core                 |    2 +-
 setup/init_minimal_conf         |    8 ++++
 3 files changed, 82 insertions(+), 1 deletions(-)
 create mode 100644 setup/dak-minimal.conf.template
 create mode 100755 setup/init_minimal_conf

diff --git a/setup/dak-minimal.conf.template b/setup/dak-minimal.conf.template
new file mode 100644
index 0000000..7f4c9df
--- /dev/null
+++ b/setup/dak-minimal.conf.template
@@ -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;
+  };
+};
diff --git a/setup/init_core b/setup/init_core
index dd6c075..c409cdf 100755
--- a/setup/init_core
+++ b/setup/init_core
@@ -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
index 0000000..82400f4
--- /dev/null
+++ b/setup/init_minimal_conf
@@ -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
-- 
1.7.2.5



Reply to: