# Class: icinga-rpm-snapshot # # Configure Icinga repositories. # # Parameters: # # Actions: # # Requires: # # Sample Usage: # # include icinga-rpm-snapshot # class icinga-rpm-snapshot { yumrepo { 'icinga-rpm-snapshot': mirrorlist => "http://packages.icinga.org/epel/6/snapshot/ICINGA-snapshot.repo", # baseurl is required, otherwise mirrorlist errors by yum baseurl => "http://packages.icinga.org/epel/6/snapshot/", enabled => '1', gpgcheck => '1', gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ICINGA', descr => "Icinga Snapshot Packages for Enterprise Linux 6 - ${::architecture}" } file { "/etc/pki/rpm-gpg/RPM-GPG-KEY-ICINGA": ensure => present, owner => 'root', group => 'root', mode => '0644', source => "puppet:////vagrant/.vagrant-puppet/files/etc/pki/rpm-gpg/RPM-GPG-KEY-ICINGA" } icinga-rpm-snapshot::key { "RPM-GPG-KEY-ICINGA": path => "/etc/pki/rpm-gpg/RPM-GPG-KEY-ICINGA", before => Yumrepo['icinga-rpm-snapshot'] } }