File tree 2 files changed +1
-28
lines changed
2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change 9
9
' RedHat' : {
10
10
unless $powerdns::custom_epel {
11
11
include epel
12
+ Class[' epel' ] -> Yumrepo[' powerdns' ]
12
13
}
13
14
14
15
Yumrepo[' powerdns' ] -> Package <| title == $powerdns::authoritative_package_name |>
15
16
Yumrepo[' powerdns-recursor' ] -> Package <| title == $powerdns::recursor_package_name |>
16
17
17
- if ($facts [' os' ][' name' ] == ' Rocky' ) {
18
- $mirrorlist = " https://mirrors.rockylinux.org/mirrorlist?arch=\$ basearch&repo=PowerTools-\$ releasever"
19
- $gpgkey = ' file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial'
20
- } else {
21
- $mirrorlist = " http://mirrorlist.centos.org/?release=\$ releasever&arch=\$ basearch&repo=PowerTools&infra=\$ infra"
22
- $gpgkey = ' file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial'
23
- }
24
-
25
- yumrepo { 'powertools' :
26
- ensure => ' present' ,
27
- descr => ' PowerTools' ,
28
- mirrorlist => $mirrorlist ,
29
- enabled => ' true' ,
30
- gpgkey => $gpgkey ,
31
- gpgcheck => ' true' ,
32
- }
33
-
34
18
yumrepo { 'powerdns' :
35
19
name => ' powerdns' ,
36
20
descr => " PowerDNS repository for PowerDNS Authoritative - version ${powerdns::authoritative_version} " ,
Original file line number Diff line number Diff line change 108
108
it { is_expected . to contain_class ( 'powerdns::repo' ) }
109
109
case facts [ :osfamily ]
110
110
when 'RedHat'
111
- it { is_expected . to contain_yumrepo ( 'powertools' ) }
112
- if facts [ :operatingsystem ] != 'Rocky'
113
- it {
114
- is_expected . to contain_yumrepo ( 'powertools' ) . with ( 'mirrorlist' => 'http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra' )
115
- }
116
- end
117
- if facts [ :operatingsystem ] == 'Rocky'
118
- it {
119
- is_expected . to contain_yumrepo ( 'powertools' ) . with ( 'mirrorlist' => 'https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=PowerTools-$releasever' )
120
- }
121
- end
122
111
it { is_expected . to contain_yumrepo ( 'powerdns' ) }
123
112
it { is_expected . to contain_yumrepo ( 'powerdns' ) . with ( 'baseurl' => 'http://repo.powerdns.com/centos/$basearch/$releasever/auth-48' ) }
124
113
it { is_expected . to contain_yumrepo ( 'powerdns-recursor' ) }
You can’t perform that action at this time.
0 commit comments