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:
Adam Vinsh 2016-01-07 22:46:56 -05:00
parent dae0934002
commit 2ffbf45277
4 changed files with 5 additions and 1 deletions

View File

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

View File

@ -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']
}

View File

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

View File

@ -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'],
}