From 88c8e159bc68a58a491bb640db8b6e4b208a9f00 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 21 Oct 2024 16:13:51 +0200 Subject: [PATCH] Set permissions on redis --- manifests/redis_cluster.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/redis_cluster.pp b/manifests/redis_cluster.pp index a567830..75c0fac 100644 --- a/manifests/redis_cluster.pp +++ b/manifests/redis_cluster.pp @@ -17,4 +17,10 @@ class sunetdrive::redis_cluster ( content => template('sunetdrive/redis_cluster/reset_cluster.erb.sh'), mode => '0700', } + exec { 'set_permissions_directory': + command => 'chown -R 999:root /opt/redis/node-*' + } + exec { 'set_permissions_files': + command => 'chown -R 999:99 /opt/redis/node-*/*' + } }