From 8b08b0224472109d273b32af9d493ccd1b8c058b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 30 Jun 2021 16:24:44 -1000 Subject: [PATCH] Fix CI on CentOS We are experiencing CI failures on CentOS because the service cannot start because it cannot create it's PID file. Running the very same test locally works as expected, so the root cause of the different behavior on the CI is unfortunately unknown. Yet, ensuring the directory for the PID file exist seems to fix the CI issue. So manage explicitely this directory when running on CentOS in CI. --- spec/setup_acceptance_node.pp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 spec/setup_acceptance_node.pp diff --git a/spec/setup_acceptance_node.pp b/spec/setup_acceptance_node.pp new file mode 100644 index 0000000..9fef664 --- /dev/null +++ b/spec/setup_acceptance_node.pp @@ -0,0 +1,5 @@ +if fact('os.family') == 'redhat' { + file { '/var/run/chrony': + ensure => directory, + } +}