From 77e055299f7b29479199c1ea479509d331281a8a Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Thu, 28 Jul 2011 08:09:52 +0100 Subject: [PATCH] Add minimal dak.conf examples Signed-off-by: Mark Hymers --- setup/dak-minimal.conf.template | 73 +++++++++++++++++++++++++++++++++ setup/init_core | 2 +- setup/init_minimal_conf | 8 ++++ 3 files changed, 82 insertions(+), 1 deletion(-) 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 00000000..7f4c9dfa --- /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 "; + 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 dd6c0756..c409cdfe 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 00000000..82400f46 --- /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 -- 2.39.2