File tree 3 files changed +11
-16
lines changed
3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,6 @@ class { 'foreman::cli':
63
63
it_behaves_like 'an idempotent resource' do
64
64
let ( :manifest ) do
65
65
<<-PUPPET
66
- yumrepo { 'katello':
67
- baseurl => "http://yum.theforeman.org/katello/nightly/katello/el${facts['os']['release']['major']}/x86_64/",
68
- gpgcheck => 0,
69
- }
70
-
71
66
class { 'foreman::cli':
72
67
foreman_url => 'https://foreman.example.com',
73
68
username => 'admin',
@@ -77,8 +72,6 @@ class { 'foreman::cli':
77
72
include foreman::cli::katello
78
73
include foreman::cli::virt_who_configure
79
74
include foreman::cli::rh_cloud
80
-
81
- Yumrepo['katello'] -> Class['foreman::cli::katello']
82
75
PUPPET
83
76
end
84
77
end
Original file line number Diff line number Diff line change 6
6
it_behaves_like 'an idempotent resource' do
7
7
let ( :manifest ) do
8
8
<<-PUPPET
9
- yumrepo { 'katello':
10
- baseurl => "http://yum.theforeman.org/katello/nightly/katello/el${facts['os']['release']['major']}/x86_64/",
11
- gpgcheck => 0,
12
- }
13
- yumrepo { 'candlepin':
14
- baseurl => "https://yum.theforeman.org/candlepin/4.4/el${facts['os']['release']['major']}/x86_64/",
15
- gpgcheck => 0,
16
- }
17
-
18
9
include foreman
19
10
include foreman::plugin::rh_cloud
20
11
PUPPET
Original file line number Diff line number Diff line change 2
2
repo => ' nightly' ,
3
3
}
4
4
5
+ if $facts [' os' ][' family' ] == ' RedHat' {
6
+ yumrepo { 'katello' :
7
+ baseurl => " http://yum.theforeman.org/katello/nightly/katello/el${facts['os']['release']['major']}/x86_64/" ,
8
+ gpgcheck => 0,
9
+ }
10
+ yumrepo { 'candlepin' :
11
+ baseurl => " https://yum.theforeman.org/candlepin/4.4/el${facts['os']['release']['major']}/x86_64/" ,
12
+ gpgcheck => 0,
13
+ }
14
+ }
15
+
5
16
# Not /etc/foreman because purging removes that
6
17
$directory = ' /etc/foreman-certs'
7
18
$certificate = " ${directory} /certificate.pem"
You can’t perform that action at this time.
0 commit comments