]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/buildd/manifests/init.pp
refactor module
[dsa-puppet.git] / modules / buildd / manifests / init.pp
index 2ddf0663e779d29035051dacc8f3040bd7bd0185..8d0b2c0e96052c53606869d483739934856e4cc9 100644 (file)
@@ -24,7 +24,7 @@ class buildd ($ensure=present) {
                        require => Package['dupload'],
                }
                site::linux_module { 'dm_snapshot': }
-               ferm::module { 'nf_conntrack_ftp': }
+               include ferm::ftp_conntrack
        }
 
        site::aptrepo { 'buildd':
@@ -46,28 +46,19 @@ class buildd ($ensure=present) {
                require    => Package['apt-transport-https'],
        }
 
+       $buildd_prop_ensure = $::hostname ? {
+               /^(alkman|barber|brahms|porpora|zandonai)$/ => 'present',
+               default => 'absent',
+       }
+
        site::aptrepo { 'buildd.debian.org-proposed':
-               ensure     => $::hostname ? {
-                                            /^(alkman|barber|brahms|porpora|zandonai)$/ => 'present',
-                                            default => 'absent',
-                                           },
+               ensure     => $buildd_prop_ensure,
                url        => 'https://buildd.debian.org/apt/',
                suite      => "${suite}-proposed",
                components => 'main',
                require    => Package['apt-transport-https'],
        }
 
-       #site::aptrepo { 'buildd.debian.org-experimental':
-       #       ensure     => $::hostname ? {
-       #                                    /^(xxxx)$/ => 'present',
-       #                                    default => 'absent',
-       #                                   },
-       #       url        => 'https://buildd.debian.org/apt/',
-       #       suite      => "${suite}-experimental",
-       #       components => 'main',
-       #       require    => Package['apt-transport-https'],
-       #}
-
        # 'bad' extension
        file { '/etc/apt/preferences.d/buildd.debian.org':
                ensure => absent,