Merge "Enable automatic restart of memcached, apache and mongodb"
This commit is contained in:
commit
3e1de7d72f
@ -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: }
|
||||
|
@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user