Skip to content

Commit

Permalink
Support Puppet 7
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Jul 26, 2021
1 parent bdbcecd commit ab5fe2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 5.5.8 < 7.0.0"
"version_requirement": ">= 5.5.8 < 8.0.0"
}
],
"operatingsystem_support": [
Expand Down
4 changes: 3 additions & 1 deletion spec/acceptance/puppetserver_latest_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class { 'puppet':
}
# Puppet 5 + puppet/systemd 3 workaround
if $puppet::server_max_open_files and versioncmp($facts['puppetversion'], '6.1') < 0 {
# Also a possible systemd bug on Ubuntu 20.04
# https://github.com/theforeman/puppet-puppet/pull/779#issuecomment-886847275
if $puppet::server_max_open_files and (versioncmp($facts['puppetversion'], '6.1') < 0 or $facts['os']['name'] == 'Ubuntu' && $facts['os']['release']['major'] == '20.04') {
exec { 'puppetserver-systemctl-daemon-reload':
command => 'systemctl daemon-reload',
refreshonly => true,
Expand Down

0 comments on commit ab5fe2a

Please sign in to comment.