Notify related services on config file change
Adds service restarts for the following: account-reaper, container-updater, object-updater, container-sync, (account/container/object)-auditor. Each will now be reloaded if their related config file is updated. Change-Id: I546bba253bbd0fe890fb77bb9a9f1e632fea242c
This commit is contained in:
parent
dae0934002
commit
2ffbf45277
@ -59,5 +59,6 @@ class swift::storage::account(
|
||||
config_file_name => $config_file_name,
|
||||
service_provider => $service_provider,
|
||||
require => Package['swift-account'],
|
||||
subscribe => File["/etc/swift/${config_file_name}"],
|
||||
}
|
||||
}
|
||||
|
@ -65,6 +65,7 @@ class swift::storage::container(
|
||||
config_file_name => $config_file_name,
|
||||
service_provider => $service_provider,
|
||||
require => Package['swift-container'],
|
||||
subscribe => File["/etc/swift/${config_file_name}"],
|
||||
}
|
||||
|
||||
if $::osfamily == 'Debian' {
|
||||
@ -75,6 +76,7 @@ class swift::storage::container(
|
||||
config_file_name => $config_file_name,
|
||||
service_provider => $service_provider,
|
||||
require => Package['swift-container'],
|
||||
subscribe => File["/etc/swift/${config_file_name}"],
|
||||
}
|
||||
Swift_config<| |> ~> Service['swift-container-sync']
|
||||
}
|
||||
|
@ -59,5 +59,6 @@ class swift::storage::object(
|
||||
config_file_name => $config_file_name,
|
||||
service_provider => $service_provider,
|
||||
require => Package['swift-object'],
|
||||
subscribe => File["/etc/swift/${config_file_name}"],
|
||||
}
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ define swift::storage::server(
|
||||
concat { "/etc/swift/${config_file_path}":
|
||||
owner => $owner,
|
||||
group => $group,
|
||||
notify => Service["swift-${type}-server", "swift-${type}-replicator"],
|
||||
notify => Service["swift-${type}-server", "swift-${type}-replicator", "swift-${type}-auditor"],
|
||||
require => Package['swift'],
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user