Re-factor source for laternc into it's own class
This commit is contained in:
parent
de9d0e70a1
commit
dc107c2cac
|
@ -41,29 +41,8 @@ class alternc::bureau (
|
||||||
content => template('alternc/alternc.response.erb'),
|
content => template('alternc/alternc.response.erb'),
|
||||||
}
|
}
|
||||||
if ($manage_sources) {
|
if ($manage_sources) {
|
||||||
# Upstream hasn't released anything into the stretch archives
|
include alternc::source
|
||||||
# or later. 2018.06.08
|
|
||||||
if ($facts['os']['lsb']['majdistrelease'] >= '8') {
|
|
||||||
$release = 'jessie'
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$release = $facts['os']['lsb']['distcodename']
|
|
||||||
}
|
|
||||||
apt::source { 'alternc':
|
|
||||||
location => 'http://debian.alternc.org',
|
|
||||||
release => $release,
|
|
||||||
key => {
|
|
||||||
id => '54E9B3EC75A6375C4670104BA4AFB8B58971F6F2',
|
|
||||||
source => 'https://debian.alternc.org/key.txt',
|
|
||||||
},
|
|
||||||
repos => 'main',
|
|
||||||
}
|
|
||||||
Apt::Source['alternc']
|
|
||||||
-> Package['alternc']
|
|
||||||
Apt::Source['alternc']
|
|
||||||
~> Class[Apt::Update]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package { 'acl':
|
package { 'acl':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
class alternc::source {
|
||||||
|
# Upstream hasn't released anything into the stretch archives
|
||||||
|
# or later. 2018.06.08
|
||||||
|
if ($facts['os']['lsb']['majdistrelease'] >= '8') {
|
||||||
|
$release = 'jessie'
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$release = $facts['os']['lsb']['distcodename']
|
||||||
|
}
|
||||||
|
apt::source { 'alternc':
|
||||||
|
location => 'http://debian.alternc.org',
|
||||||
|
release => $release,
|
||||||
|
key => {
|
||||||
|
id => '54E9B3EC75A6375C4670104BA4AFB8B58971F6F2',
|
||||||
|
source => 'https://debian.alternc.org/key.txt',
|
||||||
|
},
|
||||||
|
repos => 'main',
|
||||||
|
}
|
||||||
|
Apt::Source['alternc']
|
||||||
|
-> Package['alternc']
|
||||||
|
Apt::Source['alternc']
|
||||||
|
~> Class[Apt::Update]
|
||||||
|
}
|
Loading…
Reference in New Issue