]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
add bugs_search
authorStephen Gran <steve@lobefin.net>
Thu, 17 May 2012 07:11:45 +0000 (08:11 +0100)
committerStephen Gran <steve@lobefin.net>
Fri, 18 May 2012 19:10:18 +0000 (20:10 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/debian-org/misc/local.yaml
modules/roles/files/bugs_search/rsyncd.conf [new file with mode: 0644]
modules/roles/manifests/bugs_search.pp [new file with mode: 0644]
modules/roles/manifests/init.pp

index 60e4645c5d7c08574db3ca9beaddb05b85236025..8f101a482b72ad001ef890a016b621770e25714c 100644 (file)
@@ -147,6 +147,8 @@ services:
   bugsmaster:
   bugsmx:
     - busoni.debian.org
+  bugs_search:
+    - glinka.debian.org
   dbmaster:
     - draghi.debian.org
   ftp_master:
diff --git a/modules/roles/files/bugs_search/rsyncd.conf b/modules/roles/files/bugs_search/rsyncd.conf
new file mode 100644 (file)
index 0000000..008e1b1
--- /dev/null
@@ -0,0 +1,29 @@
+uid = nobody
+gid = nogroup
+max connections = 20
+syslog facility = daemon
+socket options = SO_KEEPALIVE
+timeout = 7200
+log file = /var/log/rsyncd/rsyncd.log
+
+[bts-spool-db]
+  comment = [bugs-mirror.debian.org] active bug spool
+  path = /srv/bugs.debian.org/spool/db-h
+  read only = true
+
+[bts-spool-archive]
+  comment = [bugs-mirror.debian.org] archived bug spool
+  path = /srv/bugs.debian.org/spool/archive
+  read only = true
+
+[bts-spool-index]
+  comment = [bugs-mirror.debian.org] bug index files
+  path = /srv/bugs.debian.org/spool
+  exclude = db-h archive
+  read only = true
+
+[bts-versions]
+  comment = [bugs-mirror.debian.org] bts package version information
+  path = /srv/bugs.debian.org/versions
+  exclude = archive cl-data lock queue bin
+  read only = true
diff --git a/modules/roles/manifests/bugs_search.pp b/modules/roles/manifests/bugs_search.pp
new file mode 100644 (file)
index 0000000..9be0a9c
--- /dev/null
@@ -0,0 +1,7 @@
+class roles::bugs_search {
+
+       rsync::site { 'bugs_search':
+               source      => 'puppet:///modules/roles/bugs_search/rsyncd.conf',
+               max_clients => 100,
+       }
+}
index d4bc6834504f7af8b7fa845be2e72e58a593ecd2..437a5a508df606b1d8bd0f31e0998af27d5f5a0e 100644 (file)
@@ -16,6 +16,10 @@ class roles {
                include buildd
        }
 
+       if getfromhash($site::nodeinfo, 'bugs_search') {
+               include roles::bugs_search
+       }
+
        if getfromhash($site::nodeinfo, 'ftp_master') {
                include roles::ftp_master
                include roles::dakmaster