Files
puppet-ironic/manifests/db/sync.pp
Takashi Kajinami 31a2a62c53 Revert "ironic upgrade: change ownership for ironic-dbsync.log"
This reverts the commit 179690bb93 and
removes the logic to ensure the log file is owned by the ironic user,
as we have been using the ironic user for several cycles and expect
the file is already owned by the proper user.

Change-Id: Ic33db931df0473d352a6840f4c83dba0ff248e07
2022-02-20 19:49:18 +09:00

41 lines
974 B
Puppet

#
# Class to execute ironic dbsync
#
# == Parameters
#
# [*extra_params*]
# (Optional) String of extra command line parameters to append
# to the ironic-dbsync command.
# Defaults to undef
#
# [*db_sync_timeout*]
# (Optional) Timeout for the execution of the db_sync
# Defaults to 300
#
class ironic::db::sync(
$extra_params = undef,
$db_sync_timeout = 300,
) {
include ironic::deps
include ironic::params
exec { 'ironic-dbsync':
command => "${::ironic::params::dbsync_command} ${extra_params}",
path => '/usr/bin',
user => $::ironic::params::user,
refreshonly => true,
try_sleep => 5,
tries => 10,
timeout => $db_sync_timeout,
logoutput => on_failure,
subscribe => [
Anchor['ironic::install::end'],
Anchor['ironic::config::end'],
Anchor['ironic::dbsync::begin']
],
notify => Anchor['ironic::dbsync::end'],
tag => 'openstack-db',
}
}