Skip to content

Commit

Permalink
Merge pull request #724 from /issues/688
Browse files Browse the repository at this point in the history
remove code for puppet < 7
  • Loading branch information
bastelfreak authored May 18, 2024
2 parents aff27e1 + a0f13f0 commit 44e45dd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@
}),
notify => $notify,
}
if versioncmp($facts['puppetversion'],'6.1.0') < 0 {
# Puppet 5 doesn't have https://tickets.puppetlabs.com/browse/PUP-3483
# and camptocamp/systemd only creates this relationship when managing the service
Class['systemd::systemctl::daemon_reload'] -> Class['prometheus::run_service']
}
}
'sysv', 'sles': {
file { "/etc/init.d/${prometheus::server::service_name}":
Expand Down
2 changes: 0 additions & 2 deletions spec/defines/daemon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@
)
}

it { is_expected.to contain_class('systemd::systemctl::daemon_reload').that_comes_before('Service[smurf_exporter]') } if Gem::Version.new(facts[:puppetversion]) < Gem::Version.new('6.1.0')

context 'with overidden bin_name' do
let(:params) do
super().merge(bin_name: 'notsmurf_exporter')
Expand Down
7 changes: 0 additions & 7 deletions spec/setup_acceptance_node.pp
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# Needed for os.distro.codebase fact on ubuntu 16/18 on puppet 6
if $facts['os']['name'] == 'Ubuntu' and versioncmp($facts['puppetversion'], '7.0.0') < 0 {
package{'lsb-release':
ensure => present,
}
}

file_line { '/etc/hosts-squid':
path => '/etc/hosts',
line => "${facts['squid_ip']} squid",
Expand Down

0 comments on commit 44e45dd

Please sign in to comment.