From 46b503f7b02f9aabad953776c2d8b4eb02859dda Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Fri, 1 Jun 2018 08:08:30 -0600 Subject: [PATCH] Make fix redis service setup Debian only This is an improvemen tonI1b37524ff1071d87e8a7df2fa3bca66aed162d1b so that it only disables the service management when debian is used. Change-Id: Ib69317e48f4c8b9e2eb69bcb31c8245db7b286ed --- manifests/redis.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/manifests/redis.pp b/manifests/redis.pp index fe731534a..c2948d797 100644 --- a/manifests/redis.pp +++ b/manifests/redis.pp @@ -1,8 +1,17 @@ class openstack_integration::redis { include ::openstack_integration::config + # due to issues in OpenStack CI with the redis package, we need to disable + # the service enable flag. The service still starts but the management of + # the service with systemd errors. + if ($::os_package_type == 'debian') { + $service_enable = false + } else { + $service_enable = true + } + class { '::redis': bind => $::openstack_integration::config::host, - service_enable => false + service_enable => $service_enable } }