|
9 | 9 | # install_puppet |
10 | 10 | if host['platform'] =~ %r{el-(5|6|7)} |
11 | 11 | relver = Regexp.last_match(1) |
12 | | - on host, "rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-pc1-el-#{relver}.noarch.rpm" |
| 12 | + on host, "rpm -ivh http://yum.puppetlabs.com/puppet5/puppet5-release-el-#{relver}.noarch.rpm" |
13 | 13 | on host, 'yum install -y puppetserver' |
14 | 14 | elsif host['platform'] =~ %r{fedora-(\d+)} |
15 | 15 | relver = Regexp.last_match(1) |
16 | | - on host, "rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-pc1-fedora-#{relver}.noarch.rpm" |
| 16 | + on host, "rpm -ivh http://yum.puppetlabs.com/puppet5/puppet5-release-fedora-#{relver}.noarch.rpm" |
17 | 17 | on host, 'yum install -y puppetserver' |
18 | 18 | elsif host['platform'] =~ %r{(ubuntu|debian)} |
19 | 19 | unless host.check_for_package 'curl' |
20 | 20 | on host, 'apt-get install -y curl' |
21 | 21 | end |
| 22 | + # For openjdk8 |
| 23 | + if host['platform'].version == '8' |
| 24 | + create_remote_file(host, |
| 25 | + "/etc/apt/sources.list.d/jessie-backports.list", |
| 26 | + "deb http://httpredir.debian.org/debian jessie-backports main") |
| 27 | + on host, 'apt-get -y -m update' |
| 28 | + on host, 'apt-get install -y -t jessie-backports openjdk-8-jre-headless' |
| 29 | + end |
22 | 30 | on host, 'apt-get install apt-transport-https --assume-yes' |
23 | | - on host, 'curl -O http://apt.puppetlabs.com/puppetlabs-release-pc1-$(lsb_release -c -s).deb' |
24 | | - on host, 'dpkg -i puppetlabs-release-pc1-$(lsb_release -c -s).deb' |
| 31 | + on host, 'curl -O http://apt.puppetlabs.com/puppet5-release-$(lsb_release -c -s).deb' |
| 32 | + on host, 'dpkg -i puppet5-release-$(lsb_release -c -s).deb' |
25 | 33 | on host, 'apt-get -y -m update' |
26 | 34 | on host, 'apt-get install -y puppetserver' |
27 | 35 | else |
|
0 commit comments