Remove remaining hard-code of username in each manifest

This is follow-up of f781eb9e34 and
replaces the remaining hard-coded user name by the central definition
in swift::params.

Change-Id: I285e7fec6d679b04016009519675bc29ed4e759e
This commit is contained in:
Takashi Kajinami
2022-08-25 11:18:06 +09:00
parent 48fc395d6f
commit 7cd5360a5f

View File

@@ -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}",