Merge "Enable automatic restart of memcached, apache and mongodb"

This commit is contained in:
Zuul 2018-01-11 06:17:03 +00:00 committed by Gerrit Code Review
commit 3e1de7d72f
3 changed files with 18 additions and 0 deletions

View File

@ -35,6 +35,12 @@ class tripleo::profile::base::apache(
include ::apache::mod::status
include ::apache::mod::ssl
# Automatic restart
::systemd::dropin_file { 'httpd.conf':
unit => 'httpd.service',
content => "[Service]\nRestart=always\n",
}
if $enable_status_listener {
if !defined(Apache::Listen[$status_listener]) {
::apache::listen {$status_listener: }

View File

@ -67,5 +67,11 @@ class tripleo::profile::base::database::mongodb (
'MemoryLimit' => $memory_limit
}
}
# Automatic restart
::systemd::dropin_file { 'mongod.conf':
unit => 'mongod.service',
content => "[Service]\nRestart=always\n",
}
}
}

View File

@ -28,5 +28,11 @@ class tripleo::profile::base::memcached (
) {
if $step >= 1 {
include ::memcached
# Automatic restart
::systemd::dropin_file { 'memcached.conf':
unit => 'memcached.service',
content => "[Service]\nRestart=always\n",
}
}
}