Skip to content

Commit

Permalink
Avoid Type=notify for services
Browse files Browse the repository at this point in the history
squid was timing out on startup on CentOS 8
  • Loading branch information
traylenator committed Mar 22, 2022
1 parent 180aae1 commit b2fd1f9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
context 'configure http_access' do
it 'works idempotently with no errors' do
pp = <<-EOS
# The default Type=notify is problematic on docker
if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] != '7' {
systemd::dropin_file{'simple.conf':
ensure => present,
unit => 'squid.service',
content => "[Service]\nType=simple\n",
before => Service['squid'],
}
}
class { 'squid':}
squid::http_port{'3128':}
squid::acl{'our_networks':
Expand Down

0 comments on commit b2fd1f9

Please sign in to comment.