From fbd1137105ab47680bfce9de7e04be6d230e3fbc Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Thu, 22 May 2014 16:19:02 -0400 Subject: [PATCH] Refactor common lines --- manifests/object/storage.pp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/manifests/object/storage.pp b/manifests/object/storage.pp index e1426f8e..04593016 100644 --- a/manifests/object/storage.pp +++ b/manifests/object/storage.pp @@ -73,12 +73,9 @@ allow_versions = on log_facility => 'LOG_LOCAL6', } - swift::storage::filter::recon { 'object': } - swift::storage::filter::recon { 'container': } - swift::storage::filter::recon { 'account': } - swift::storage::filter::healthcheck { 'object': } - swift::storage::filter::healthcheck { 'container': } - swift::storage::filter::healthcheck { 'account': } + $swift_components = ['account', 'container', 'object'] + swift::storage::filter::recon { $swift_components : } + swift::storage::filter::healthcheck { $swift_components : } $object_nodes = flatten([ range('sdc','sdd')]) swift::storage::xfs { $object_nodes: }