|
7 | 7 | if($::osfamily == 'Debian') {
|
8 | 8 | Apt::Source {
|
9 | 9 | location => 'http://apt.puppetlabs.com',
|
10 |
| - key => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30', |
11 |
| - key_content => template('puppet/pgp.key'), |
| 10 | + key => { |
| 11 | + 'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30', |
| 12 | + 'server' => 'pgp.mit.edu', |
| 13 | + }, |
12 | 14 | }
|
13 | 15 | apt::source { 'puppetlabs': repos => 'main' }
|
14 | 16 | apt::source { 'puppetlabs-deps': repos => 'dependencies' }
|
15 |
| - } elsif $::osfamily == 'Redhat' { |
16 |
| - if $::operatingsystem == 'Fedora' { |
17 |
| - $ostype='fedora' |
18 |
| - $prefix='f' |
19 |
| - } else { |
20 |
| - $ostype='el' |
21 |
| - $prefix='' |
22 |
| - } |
23 |
| - yumrepo { 'puppetlabs-deps': |
24 |
| - baseurl => "http://yum.puppetlabs.com/${ostype}/${prefix}\$releasever/dependencies/\$basearch", |
25 |
| - descr => 'Puppet Labs Dependencies $releasever - $basearch ', |
26 |
| - enabled => '1', |
27 |
| - gpgcheck => '1', |
28 |
| - gpgkey => 'http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs', |
29 |
| - } |
30 |
| - |
31 |
| - yumrepo { 'puppetlabs': |
32 |
| - baseurl => "http://yum.puppetlabs.com/${ostype}/${prefix}\$releasever/products/\$basearch", |
33 |
| - descr => 'Puppet Labs Products $releasever - $basearch', |
34 |
| - enabled => '1', |
35 |
| - gpgcheck => '1', |
36 |
| - gpgkey => 'http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs', |
37 |
| - } |
| 17 | + } elsif $::osfamily == 'Redhat' { |
| 18 | + if $::operatingsystem == 'Fedora' { |
| 19 | + $ostype='fedora' |
| 20 | + $prefix='f' |
38 | 21 | } else {
|
39 |
| - 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', |
40 | 39 | }
|
| 40 | + } else { |
| 41 | + fail("Unsupported osfamily ${::osfamily}") |
| 42 | + } |
41 | 43 | }
|
0 commit comments