Use ensure_packages to avoid problems with puppet redeclaring resources
[mirror/dsa-puppet.git] / modules / roles / manifests / mirror_health.pp
index ec1102d..ebc195e 100644 (file)
@@ -5,9 +5,7 @@ define roles::mirror_health (
        $health_url     = '',
        $check_interval = 60,
 ) {
-       package { 'python3-requests':
-               ensure   => installed,
-       }
+       ensure_packages(['python3-requests'], { ensure => 'installed' })
 
         # XXX: avoid duplicating this?
        file { '/usr/local/sbin/mirror-health':