|
21 | 21 | class one::prerequisites { |
22 | 22 | case $::osfamily { |
23 | 23 | 'RedHat': { |
24 | | - if ( $one::params::one_repo_enable == true ) { |
| 24 | + if ( $one::params::one_repo_enable == 'true' ) { |
25 | 25 | yumrepo { 'opennebula': |
26 | 26 | baseurl => 'http://downloads.opennebula.org/repo/4.10/CentOS/6/x86_64/', |
27 | 27 | descr => 'OpenNebula', |
|
31 | 31 | } |
32 | 32 | } |
33 | 33 | 'Debian' : { |
34 | | - if ($one::params::one_repo_enable == true) { |
35 | | - include ::apt |
36 | | - case $::operatingsystem { |
37 | | - 'Debian': { |
38 | | - $apt_location="4.10/Debian/${::lsbmajdistrelease}" |
39 | | - $apt_pin='-10' |
40 | | - } |
41 | | - 'Ubuntu': { |
42 | | - $apt_location="4.10/Ubuntu/${::lsbdistrelease}" |
43 | | - $apt_pin='500' |
44 | | - } |
45 | | - default: { fail("Unrecognized operating system ${::operatingsystem}") } |
46 | | - } |
| 34 | + if ($one::params::one_repo_enable == 'true') { |
| 35 | + include ::apt |
| 36 | + case $::operatingsystem { |
| 37 | + 'Debian': { |
| 38 | + $apt_location="4.10/Debian/${::lsbmajdistrelease}" |
| 39 | + $apt_pin='-10' |
| 40 | + } |
| 41 | + 'Ubuntu': { |
| 42 | + $apt_location="4.10/Ubuntu/${::lsbdistrelease}" |
| 43 | + $apt_pin='500' |
| 44 | + } |
| 45 | + default: { fail("Unrecognized operating system ${::operatingsystem}") } |
| 46 | + } |
47 | 47 |
|
48 | | - apt::source { 'one-official': |
49 | | - location => "http://downloads.opennebula.org/repo/${apt_location}", |
50 | | - release => 'stable', |
51 | | - repos => 'opennebula', |
52 | | - required_packages => 'debian-keyring debian-archive-keyring', |
53 | | - pin => $apt_pin, |
54 | | - include_src => false, |
55 | | - require => Apt::Key['one_repo_key'], |
56 | | - } |
| 48 | + apt::source { 'one-official': |
| 49 | + location => "http://downloads.opennebula.org/repo/${apt_location}", |
| 50 | + release => 'stable', |
| 51 | + repos => 'opennebula', |
| 52 | + required_packages => 'debian-keyring debian-archive-keyring', |
| 53 | + pin => $apt_pin, |
| 54 | + include_src => false, |
| 55 | + require => Apt::Key['one_repo_key'], |
| 56 | + } |
57 | 57 |
|
58 | | - apt::key { 'one_repo_key': |
59 | | - key => '85E16EBF', |
60 | | - key_source => 'http://downloads.opennebula.org/repo/Debian/repo.key', |
| 58 | + apt::key { 'one_repo_key': |
| 59 | + key => '85E16EBF', |
| 60 | + key_source => 'http://downloads.opennebula.org/repo/Debian/repo.key', |
| 61 | + } |
| 62 | + } |
61 | 63 | } |
62 | | - } |
63 | | - } |
64 | 64 | default: { |
65 | 65 | notice('We use opennebula from default OS repositories.') |
66 | 66 | } |
|
0 commit comments