icinga2/.vagrant-puppet/modules/icinga-rpm-snapshot/manifests/init.pp

40 lines
1008 B
Puppet
Raw Normal View History

2013-10-13 17:15:35 +02:00
# 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
2013-10-15 10:12:30 +02:00
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}"
2013-10-13 17:15:35 +02:00
}
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']
}
}