From b2fd1f9c4bcc44ce3800d401afd1260dce7c98c4 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Tue, 22 Mar 2022 18:59:19 +0100 Subject: [PATCH] Avoid Type=notify for services squid was timing out on startup on CentOS 8 --- spec/acceptance/class_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/acceptance/class_spec.rb b/spec/acceptance/class_spec.rb index d3ec1ae..3cec6b1 100644 --- a/spec/acceptance/class_spec.rb +++ b/spec/acceptance/class_spec.rb @@ -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':