Skip to content

Commit

Permalink
Uses new puppetlabs/apt syntax; also lets Ubuntu install package. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtreminio authored and baurmatt committed Jan 16, 2019
1 parent 23fb75b commit e26b06d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
6 changes: 4 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@

case $::osfamily {
'Debian' : {
$os = downcase($::operatingsystem)

$key_signature = '434975BD900CCBE4F7EE1B1ED208507CA14F4FCA'
$package_name = 'erlang-nox'
$local_repo_location = undef
$remote_repo_key_location = 'http://packages.erlang-solutions.com/debian/erlang_solutions.asc'
$remote_repo_location = 'http://packages.erlang-solutions.com/debian'
$remote_repo_key_location = "http://packages.erlang-solutions.com/${os}/erlang_solutions.asc"
$remote_repo_location = "http://packages.erlang-solutions.com/${os}"
$repos = 'contrib'
}
'RedHat', 'SUSE', 'Archlinux' : {
Expand Down
18 changes: 10 additions & 8 deletions manifests/repo/apt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@
$repos = $erlang::repos,
) {

Class['erlang::repo::apt'] -> Package<| title == $package_name |>

apt::source { 'erlang':
include_src => false,
key => $key_signature,
key_source => $remote_repo_key_location,
location => $remote_repo_location,
repos => $repos,
::apt::source { 'erlang':
include => { 'src' => false },
key => {
'id' => $key_signature,
'server' => 'hkp://keyserver.ubuntu.com:80',
'source' => $remote_repo_key_location,
},
location => $remote_repo_location,
release => $::lsbdistcodename,
repos => $repos,
}

}

0 comments on commit e26b06d

Please sign in to comment.