Provide a default configuration file for buildds
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 15 Aug 2015 11:30:23 +0000 (13:30 +0200)
committerHéctor Orón Martínez <zumbi@debian.org>
Sat, 15 Aug 2015 18:32:05 +0000 (20:32 +0200)
We can provide a /etc/buildd/buildd.conf file on buildds to reduce a
bit the amount of configuration to be done in $HOME/.builddrc. It
currently mostly includes upload configuration.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
buildd.conf [new file with mode: 0644]
modules/buildd/files/buildd.conf [new file with mode: 0644]
modules/buildd/manifests/init.pp

diff --git a/buildd.conf b/buildd.conf
new file mode 100644 (file)
index 0000000..5b1c470
--- /dev/null
@@ -0,0 +1,16 @@
+$nice_level = 0;
+$should_build_msgs = 0;
+$log_queued_messages = 1;
+
+$upload_queues = [
+        {
+                dupload_local_queue_dir => "upload",
+                dupload_archive_name => "rsync-ftp-master",
+        },
+        {
+                dupload_local_queue_dir => "upload-security",
+                dupload_archive_name => "security",
+        }
+];
+
+1;
diff --git a/modules/buildd/files/buildd.conf b/modules/buildd/files/buildd.conf
new file mode 100644 (file)
index 0000000..a4398bd
--- /dev/null
@@ -0,0 +1,14 @@
+$nice_level = 0;
+$should_build_msgs = 0;
+$log_queued_messages = 1;
+
+$upload_queues = [
+        {
+                dupload_local_queue_dir => "upload",
+                dupload_archive_name => "rsync-ftp-master",
+        },
+        {
+                dupload_local_queue_dir => "upload-security",
+                dupload_archive_name => "security",
+        }
+];
index 5c6a301..ee60baa 100644 (file)
@@ -23,6 +23,13 @@ class buildd ($ensure=present) {
                        source  => 'puppet:///modules/buildd/dupload.conf',
                        require => Package['dupload'],
                }
+               package { 'buildd':
+                       ensure => installed,
+               }
+               file { '/etc/buildd/buildd.conf':
+                       source  => 'puppet:///modules/buildd/buildd.conf',
+                       require => Package['buildd'],
+               }
                site::linux_module { 'dm_snapshot': }
                include ferm::ftp_conntrack
        }