Skip to content

Commit 6d3cbc2

Browse files
author
Patrick Robinson
committed
Fix indentation
1 parent 4b467bd commit 6d3cbc2

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

manifests/repo/puppetlabs.pp

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@
1414
}
1515
apt::source { 'puppetlabs': repos => 'main' }
1616
apt::source { 'puppetlabs-deps': repos => 'dependencies' }
17-
} elsif $::osfamily == 'Redhat' {
18-
if $::operatingsystem == 'Fedora' {
19-
$ostype='fedora'
20-
$prefix='f'
21-
} else {
22-
$ostype='el'
23-
$prefix=''
24-
}
25-
yumrepo { 'puppetlabs-deps':
26-
baseurl => "http://yum.puppetlabs.com/${ostype}/${prefix}\$releasever/dependencies/\$basearch",
27-
descr => 'Puppet Labs Dependencies $releasever - $basearch ',
28-
enabled => '1',
29-
gpgcheck => '1',
30-
gpgkey => 'http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs',
31-
}
32-
33-
yumrepo { 'puppetlabs':
34-
baseurl => "http://yum.puppetlabs.com/${ostype}/${prefix}\$releasever/products/\$basearch",
35-
descr => 'Puppet Labs Products $releasever - $basearch',
36-
enabled => '1',
37-
gpgcheck => '1',
38-
gpgkey => 'http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs',
39-
}
17+
} elsif $::osfamily == 'Redhat' {
18+
if $::operatingsystem == 'Fedora' {
19+
$ostype='fedora'
20+
$prefix='f'
4021
} else {
41-
fail("Unsupported osfamily ${::osfamily}")
22+
$ostype='el'
23+
$prefix=''
24+
}
25+
yumrepo { 'puppetlabs-deps':
26+
baseurl => "http://yum.puppetlabs.com/${ostype}/${prefix}\$releasever/dependencies/\$basearch",
27+
descr => 'Puppet Labs Dependencies $releasever - $basearch ',
28+
enabled => '1',
29+
gpgcheck => '1',
30+
gpgkey => 'http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs',
31+
}
32+
33+
yumrepo { 'puppetlabs':
34+
baseurl => "http://yum.puppetlabs.com/${ostype}/${prefix}\$releasever/products/\$basearch",
35+
descr => 'Puppet Labs Products $releasever - $basearch',
36+
enabled => '1',
37+
gpgcheck => '1',
38+
gpgkey => 'http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs',
4239
}
40+
} else {
41+
fail("Unsupported osfamily ${::osfamily}")
42+
}
4343
}

0 commit comments

Comments
 (0)