From 31c00a9f3d3c1eff899cfa00a9cad1e9c07f3e47 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Fri, 1 Jul 2016 21:10:22 -0400 Subject: nova: do not manage nova-compute with pacemaker In the case where all services are installed on the same node (All-In-One), we don't want Pacemaker to manage nova-compute. This patch makes the Nova service more specific for overriding start/stop/restart actions, to be applied only for services that usually run on controllers. Change-Id: I81a86331cff4e7988e035ada82834a45a6bb99c1 --- manifests/profile/pacemaker/nova/api.pp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'manifests/profile/pacemaker/nova/api.pp') diff --git a/manifests/profile/pacemaker/nova/api.pp b/manifests/profile/pacemaker/nova/api.pp index 5d8e11f..30ab733 100644 --- a/manifests/profile/pacemaker/nova/api.pp +++ b/manifests/profile/pacemaker/nova/api.pp @@ -35,6 +35,13 @@ class tripleo::profile::pacemaker::nova::api ( include ::nova::params include ::tripleo::profile::pacemaker::nova + Service<| title == 'nova-api' |> { + hasrestart => true, + restart => '/bin/true', + start => '/bin/true', + stop => '/bin/true', + } + class { '::tripleo::profile::base::nova::api': sync_db => (downcase($::hostname) == $pacemaker_master), } -- cgit 1.2.3-korg