From 01b56fbd5d9b2583b183d2129428cc7374fc96b7 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Mon, 22 Apr 2024 16:54:43 +0200 Subject: [PATCH] Install redis-sentinal package before redis When a redis-sentinal package was installed it could alter previously applied requested permissions and ownerships of files. Ensure that redis-sentinal package is installed before directory permissions and ownerships are set. --- manifests/sentinel.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/sentinel.pp b/manifests/sentinel.pp index ba240c70..2813802b 100644 --- a/manifests/sentinel.pp +++ b/manifests/sentinel.pp @@ -194,12 +194,13 @@ $auth_pass } - require 'redis' + contain 'redis' if $package_name != $redis::package_name { ensure_packages([$package_name], { ensure => $package_ensure }) + Package[$package_name] -> Class['redis'] } Package[$package_name] -> File[$config_file_orig]