Skip to content

Commit

Permalink
Merge pull request #116 from Icinga/combat-repo
Browse files Browse the repository at this point in the history
Remove combat repo file names
  • Loading branch information
lbetz committed Feb 25, 2024
2 parents 260b79a + 62aa587 commit 409da0d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
8 changes: 1 addition & 7 deletions manifests/repos/apt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
Apt::Source['backports'] -> Package <| title != 'apt-transport-https' |>
}

# fix issue 21, 33
file { ['/etc/apt/sources.list.d/netways-plugins.list', '/etc/apt/sources.list.d/netways-extras.list']:
ensure => 'absent',
}

$repos.each |String $repo_name, Hash $repo_config| {
if $managed[$repo_name] {
if $repo_config['key'] and !$repo_config['key']['id'] {
Expand All @@ -34,8 +29,7 @@

Apt::Source[$repo_name] -> Package <| title != 'apt-transport-https' |>
apt::source { $repo_name:
* => { ensure => present } + $_repo_config,
require => File['/etc/apt/sources.list.d/netways-plugins.list', '/etc/apt/sources.list.d/netways-extras.list'],
* => { ensure => present } + $_repo_config,
}
}
}
Expand Down
8 changes: 1 addition & 7 deletions manifests/repos/yum.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,11 @@
warning("Repository CRB isn't available on ${facts['os']['name']} ${facts['os']['release']['major']}.")
}

# fix issue 21, 33
file { ['/etc/yum.repos.d/netways-plugins.repo', '/etc/yum.repos.d/netways-extras.repo']:
ensure => 'absent',
}

$repos.each |String $repo_name, Hash $repo_config| {
if $repo_name in keys($managed) and $managed[$repo_name] {
Yumrepo[$repo_name] -> Package <| |>
yumrepo { $repo_name:
* => $repo_config,
require => File['/etc/yum.repos.d/netways-plugins.repo', '/etc/yum.repos.d/netways-extras.repo'],
* => $repo_config,
}
}
}
Expand Down
6 changes: 0 additions & 6 deletions manifests/repos/zypper.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
$repos = $icinga::repos::list
$managed = $icinga::repos::managed

# fix issue 21, 33
file { ['/etc/zypp/repos.d/netways-plugins.repo', '/etc/zypp/repos.d/netways-extras.repo']:
ensure => 'absent',
}

$repos.each |String $repo_name, Hash $repo_config| {
if $repo_name in keys($managed) and $managed[$repo_name] {
if $repo_config['proxy'] {
Expand All @@ -31,7 +26,6 @@

-> zypprepo { $repo_name:
* => delete($repo_config, 'proxy'),
require => File['/etc/zypp/repos.d/netways-plugins.repo', '/etc/zypp/repos.d/netways-extras.repo'],
}

-> file_line { "add proxy settings to ${repo_name}":
Expand Down

0 comments on commit 409da0d

Please sign in to comment.