work around the missing python-psutil on kfreebsd
[mirror/dsa-puppet.git] / modules / buildd / manifests / init.pp
index ec575bf..e0a5ad8 100644 (file)
@@ -46,22 +46,26 @@ class buildd ($ensure=present) {
                require    => Package['apt-transport-https'],
        }
 
-       if $::hostname in [alkman,porpora,zandonai] {
-               site::aptrepo { 'buildd.debian.org-proposed':
-                       url        => 'https://buildd.debian.org/apt/',
-                       suite      => "${suite}-proposed",
-                       components => 'main',
-                       require    => Package['apt-transport-https'],
-               }
+       site::aptrepo { 'buildd.debian.org-proposed':
+               ensure     => $::hostname ? {
+                                            /^(alkman|barber|brahms|porpora|zandonai)$/ => 'present',
+                                            default => 'absent',
+                                           },
+               url        => 'https://buildd.debian.org/apt/',
+               suite      => "${suite}-proposed",
+               components => 'main',
+               require    => Package['apt-transport-https'],
        }
 
-       if $::hostname in [krenek] {
-               site::aptrepo { 'buildd.debian.org-experimental':
-                       url        => 'https://buildd.debian.org/apt/',
-                       suite      => "${suite}-experimental",
-                       components => 'main',
-                       require    => Package['apt-transport-https'],
-               }
+       site::aptrepo { 'buildd.debian.org-experimental':
+               ensure     => $::hostname ? {
+                                            /^(krenek)$/ => 'present',
+                                            default => 'absent',
+                                           },
+               url        => 'https://buildd.debian.org/apt/',
+               suite      => "${suite}-experimental",
+               components => 'main',
+               require    => Package['apt-transport-https'],
        }
 
        # 'bad' extension
@@ -77,7 +81,7 @@ class buildd ($ensure=present) {
                require => Package['debian.org']
        }
 
-       if $::lsbmajdistrelease >= 7 {
+       if ($::lsbmajdistrelease >= 7 and $::kernel == 'Linux') {
                package { 'python-psutil':
                        ensure => installed,
                }