Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Commit 062a750

Browse files
committed
Merge pull request #130 from AblionGE/add_repo_pulp
add pulp repo
2 parents 51b162b + f862c5c commit 062a750

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

manifests/repo/pulp.pp

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# = Class: yum::repo::pulp
2+
#
3+
# This class installs the pulp repo for CentOS7
4+
#
5+
class yum::repo::pulp {
6+
if $::operatingsystemmajrelease !~ /^(5|6|7)$/ {
7+
warning('The module \'Yum::Repo::Pulp\' works only for RHEL 5,6 and 7.')
8+
}
9+
10+
yum::managed_yumrepo { 'pulp-2-stable':
11+
descr => 'Pulp 2 Production Releases',
12+
baseurl => "https://repos.fedorapeople.org/repos/pulp/pulp/stable/2/${::operatingsystemmajrelease}/${::architecture}/",
13+
enabled => 1,
14+
gpgcheck => 1,
15+
gpgkey => 'https://repos.fedorapeople.org/repos/pulp/pulp/GPG-RPM-KEY-pulp-2',
16+
failovermethod => 'priority',
17+
priority => 10,
18+
mirrorlist => absent,
19+
}
20+
}

0 commit comments

Comments
 (0)