[icinga-checkins] icinga.org: puppet-icinga2/develop: add switch for yum base url to repo class when os is amazon linux

git at icinga.org git at icinga.org
Wed Jul 13 09:39:52 CEST 2016


Module: puppet-icinga2
Branch: develop
Commit: 3c45666a109d60e667bdf2041d73b1539014bca9
URL:    https://git.icinga.org/?p=puppet-icinga2.git;a=commit;h=3c45666a109d60e667bdf2041d73b1539014bca9

Author: Robert Waffen <robert.waffen at mybet.com>
Date:   Mon Jul 11 14:30:31 2016 +0200

add switch for yum base url to repo class when os is amazon linux

---

 manifests/repo.pp |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/manifests/repo.pp b/manifests/repo.pp
index 0665d10..2b7a84e 100644
--- a/manifests/repo.pp
+++ b/manifests/repo.pp
@@ -12,7 +12,13 @@ class icinga2::repo {
       Class['icinga2::repo::apt'] -> Class['icinga2::install']
     }
     'RedHat': {
-      include icinga2::repo::yum
+      if $::operatingsystem == 'Amazon' {
+        class { 'icinga2::repo::yum':
+          baseurl => 'http://packages.icinga.org/epel/6/release/',
+        }
+      } else {
+        include icinga2::repo::yum
+      }
       Class['icinga2::repo::yum'] -> Class['icinga2::install']
     }
     default: {



More information about the icinga-checkins mailing list