Use notify, not notice for debugging
authorTollef Fog Heen <tfheen@err.no>
Fri, 2 Feb 2018 05:52:45 +0000 (06:52 +0100)
committerTollef Fog Heen <tfheen@err.no>
Fri, 2 Feb 2018 05:52:45 +0000 (06:52 +0100)
modules/roles/manifests/security_mirror.pp

index 9ac9270..ba0a322 100644 (file)
@@ -37,11 +37,11 @@ class roles::security_mirror {
        }
 
        $mirrors = hiera_hash('roles::security_mirror',[])
-       notice("Mirrors: ${mirrors}")
+       notify { "Mirrors: ${mirrors}": }
        $fastly_mirrors = $mirrors.filter |$h| { $h[1]['fastly-backend'] }
-       notice("Fastly Mirrors: ${fastly_mirrors}")
+       notify { "Fastly Mirrors: ${fastly_mirrors}": }
        $hosts_to_check = $fastly_mirrors.map |$h| { $h[1]['service-hostname'] }
-       notice("Fastly Mirrors: ${hosts_to_check}")
+       notify {"Fastly Mirrors: ${hosts_to_check}": }
 
         roles::mirror_health { 'security':
                check_hosts   => $hosts_to_check,