rhizo_base: Require apt-transport-https before apt sources

The package apt-transport-https is required to successfully add some
of the debian repos. This commit moves the package resource
installation into the rhizo_base::apt::debian class instead of the
rhizo_base:📦:debian class to break a dependency cycle that
would otherwise exist if rhizo_base::apt::debian depended on all of
rhizo_base:📦:debian.
This commit is contained in:
Matt Johnson 2019-07-14 23:16:10 -05:00 committed by Keith Whyte
parent f1cc836270
commit 57de111236
2 changed files with 7 additions and 2 deletions

View file

@ -71,6 +71,10 @@ class rhizo_base::apt::ubuntu inherits rhizo_base::apt::common {
class rhizo_base::apt::debian inherits rhizo_base::apt::common {
package {'apt-transport-https':
ensure => installed,
}
apt::source { 'freeswitch':
location => 'http://files.freeswitch.org/repo/deb/freeswitch-1.6/',
release => 'jessie',
@ -89,7 +93,8 @@ class rhizo_base::apt::debian inherits rhizo_base::apt::common {
key => {
'id' => '9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280',
'source' => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key'
}
},
require => Package['apt-transport-https'],
}
apt::source { 'irontec':