]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/buildd/manifests/init.pp
disable proposed repo on zandonai
[dsa-puppet.git] / modules / buildd / manifests / init.pp
index 8fa6c2363d13c0c5af93e772893d6b831a75c50b..4fd831ee43ee78720c7c6ffb0e850709919aa043 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
        }
@@ -40,16 +47,21 @@ class buildd ($ensure=present) {
                default => 'wheezy'
        }
 
+       $buildd_apt_url = $::debarchitecture ? {
+               /^sparc$/ => 'http://buildd.debian.org/apt/',
+               default   => 'https://buildd.debian.org/apt/',
+       }
+
        site::aptrepo { 'buildd.debian.org':
                key        => 'puppet:///modules/buildd/buildd.debian.org.gpg',
-               url        => 'https://buildd.debian.org/apt/',
+               url        => $buildd_apt_url,
                suite      => $suite,
                components => 'main',
                require    => Package['apt-transport-https'],
        }
 
        $buildd_prop_ensure = $::hostname ? {
-               /^(alkman|brahms|porpora|zandonai)$/ => 'present',
+               /^(alkman)$/ => 'present',
                default => 'absent',
        }