Skip to content

Commit

Permalink
Merge pull request #217 from mj/master
Browse files Browse the repository at this point in the history
Always install from the stable release class on Debian and Ubuntu
  • Loading branch information
kenyon committed Sep 15, 2023
2 parents 837dc9a + 15a2231 commit 060279c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions manifests/install.pp
Expand Up @@ -85,22 +85,12 @@
}
'Debian': {
if $telegraf::manage_repo {
if $facts['os']['name'] == 'Raspbian' {
$distro = $facts['os']['family'].downcase
} else {
$distro = $facts['os']['name'].downcase
}
if $facts.dig('os','distro','codename') {
$release = $facts['os']['distro']['codename']
} else {
$release = $facts['os']['lsb']['codename']
}
apt::source { 'influxdata':
ensure => $telegraf::ensure_status,
comment => 'Mirror for InfluxData packages',
location => "${telegraf::repo_location}${distro}",
release => $release,
repos => $telegraf::repo_type,
location => "${telegraf::repo_location}debian",
release => 'stable',
repos => 'main',
key => {
'id' => '9D539D90D3328DC7D6C8D3B9D8FF8E1F7DF8B07E',
'source' => "${telegraf::repo_location}influxdata-archive_compat.key",
Expand Down

0 comments on commit 060279c

Please sign in to comment.