summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/icinga2_common.pp
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-07-20 15:37:00 +0200
committerJan Dittberner <jandd@cacert.org>2019-07-20 15:37:00 +0200
commite55e91b55cd7129b036dead06d6ef5ec1d7c8ed9 (patch)
tree2a802d795061664b389927274d9e30a4ce9774f8 /sitemodules/profiles/manifests/icinga2_common.pp
parent5ebdbc5e5b44d9ff4e904e163474d92f7a801f3b (diff)
downloadcacert-puppet-e55e91b55cd7129b036dead06d6ef5ec1d7c8ed9.tar.gz
cacert-puppet-e55e91b55cd7129b036dead06d6ef5ec1d7c8ed9.tar.xz
cacert-puppet-e55e91b55cd7129b036dead06d6ef5ec1d7c8ed9.zip
Use virtual resource for dependency
Diffstat (limited to 'sitemodules/profiles/manifests/icinga2_common.pp')
-rw-r--r--sitemodules/profiles/manifests/icinga2_common.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sitemodules/profiles/manifests/icinga2_common.pp b/sitemodules/profiles/manifests/icinga2_common.pp
index ac4001b..c1c9be2 100644
--- a/sitemodules/profiles/manifests/icinga2_common.pp
+++ b/sitemodules/profiles/manifests/icinga2_common.pp
@@ -26,10 +26,10 @@ class profiles::icinga2_common (
],
priority => 500,
release => 'stretch-backports',
- before => Package['icinga2', 'icinga2-ido-pgsql'],
- }
- package { 'icinga2':
- ensure => latest,
}
+ Apt::Pin['icinga2_backports'] -> Package <| name == 'icinga2' or name == 'icinga2-ido-pgsql' |>
+ }
+ package { 'icinga2':
+ ensure => latest,
}
}