From 7cd5360a5f028f1d2f5da2de5b0b5bb45e0430d8 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 25 Aug 2022 11:18:06 +0900 Subject: [PATCH] Remove remaining hard-code of username in each manifest This is follow-up of f781eb9e34501b651d3f2069fc8848e7cacef679 and replaces the remaining hard-coded user name by the central definition in swift::params. Change-Id: I285e7fec6d679b04016009519675bc29ed4e759e --- manifests/storage/cron/recon.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/storage/cron/recon.pp b/manifests/storage/cron/recon.pp index 4bb362df..7237eeb4 100644 --- a/manifests/storage/cron/recon.pp +++ b/manifests/storage/cron/recon.pp @@ -51,10 +51,10 @@ class swift::storage::cron::recon( $month = '*', $weekday = '*', $configfile = '/etc/swift/object-server.conf', - $user = 'swift' -) { + $user = $::swift::params::user +) inherits swift::params { + include swift::deps - include swift::params cron { 'swift-recon-cron': command => "swift-recon-cron ${configfile}",