From 2e4c586a6d93f0fd08142cf88a8549fa4801f9da Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Fri, 7 Oct 2016 11:19:58 -0400 Subject: [PATCH] start ironic-(api|inspector) after Keystone_endpoint This patch make sure we start Ironic API and Ironic Inspector after Keystone_endpoint. If we don't do that, it's possible Ironic starts before having Keystone resource in place, and Ironic won't start correctly. Change-Id: I7beff1dc93e1d825922e53d272927d57c706717b --- manifests/api.pp | 1 + manifests/inspector.pp | 1 + 2 files changed, 2 insertions(+) diff --git a/manifests/api.pp b/manifests/api.pp index db0ca45f..dee906ac 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -183,6 +183,7 @@ Use 'ironic::api::authtoken::memcached_servers' parameter instead.") hasrestart => true, tag => 'ironic-service', } + Keystone_endpoint<||> -> Service['ironic-api'] } elsif $service_name == 'httpd' { include ::apache::params service { 'ironic-api': diff --git a/manifests/inspector.pp b/manifests/inspector.pp index d16ca149..cbcd8660 100644 --- a/manifests/inspector.pp +++ b/manifests/inspector.pp @@ -366,6 +366,7 @@ tftpboot and httpboot setup, please include ::ironic::pxe") hasstatus => true, tag => 'ironic-inspector-service', } + Keystone_endpoint<||> -> Service['ironic-inspector'] service { 'ironic-inspector-dnsmasq': ensure => $ensure,