Skip to content

Commit

Permalink
Merge 4bd7ea2 into ad9e836
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Oct 31, 2018
2 parents ad9e836 + 4bd7ea2 commit bc6ea0b
Showing 1 changed file with 9 additions and 24 deletions.
33 changes: 9 additions & 24 deletions manifests/repo/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,24 @@

assert_private()

include '::apt'
include 'apt'

create_resources(::apt::key, { 'php::repo::debian' => {
id => $key['id'],
source => $key['source'],
}})

::apt::source { "source_php_${release}":
apt::source { "source_php_${release}":
location => $location,
release => $release,
repos => $repos,
include => {
'src' => $include_src,
'deb' => true,
},
require => Apt::Key['php::repo::debian'],
key => $key,
}

if ($dotdeb) {
# both repositories are required to work correctly
# See: http://www.dotdeb.org/instructions/
if $release == 'wheezy-php56' {
::apt::source { 'dotdeb-wheezy':
apt::source { 'dotdeb-wheezy':
location => $location,
release => 'wheezy',
repos => $repos,
Expand All @@ -73,27 +68,17 @@
}

if ($sury and $php::globals::php_version == '7.1') {
# Required packages for PHP 7.1 repository
ensure_packages(['lsb-release', 'ca-certificates'], {'ensure' => 'present'})

# Add PHP 7.1 key + repository
apt::key { 'php::repo::debian-php71':
id => 'DF3D585DB8F0EB658690A554AC0E47584A7A714D',
source => 'https://packages.sury.org/php/apt.gpg',
}

::apt::source { 'source_php_71':
apt::source { 'source_php_71':
location => 'https://packages.sury.org/php/',
release => $facts['os']['distro']['codename'],
repos => 'main',
include => {
'src' => $include_src,
'deb' => true,
},
require => [
Apt::Key['php::repo::debian-php71'],
Package['apt-transport-https', 'lsb-release', 'ca-certificates']
],
key => {
id => 'DF3D585DB8F0EB658690A554AC0E47584A7A714D',
source => 'https://packages.sury.org/php/apt.gpg',
},
}
}
}

0 comments on commit bc6ea0b

Please sign in to comment.