Use ensure_packages to avoid problems with puppet redeclaring resources
authorTollef Fog Heen <tfheen@err.no>
Thu, 1 Feb 2018 18:38:11 +0000 (19:38 +0100)
committerTollef Fog Heen <tfheen@err.no>
Thu, 1 Feb 2018 18:38:31 +0000 (19:38 +0100)
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':