Move nova::placement to common nova manifest
authorEmilien Macchi <emilien@redhat.com>
Thu, 19 Jan 2017 16:30:35 +0000 (11:30 -0500)
committerEmilien Macchi <emilien@redhat.com>
Fri, 20 Jan 2017 00:12:53 +0000 (00:12 +0000)
nova::placement needs to be declared on more than placement api node,
because credentials are used by different services (at least
nova-compute now).
This patch moves the class to base/nova.pp, at the same step.
So compute nodes will have the credentials and will be able to use
Placement API on multinode environments.

Change-Id: Iada8e9fcccec7dbfe7ac0ec0f9ec6eac1581290e

manifests/profile/base/nova.pp
manifests/profile/base/nova/placement.pp

index dae627c..fe1e6a6 100644 (file)
@@ -110,6 +110,7 @@ class tripleo::profile::base::nova (
   }
 
   if $step >= 4 {
+    include ::nova::placement
     if $manage_migration {
       class { '::nova::migration::libvirt':
         configure_libvirt => $libvirt_enabled,
index 7edd4e8..aa8c3c7 100644 (file)
@@ -86,8 +86,6 @@ class tripleo::profile::base::nova::placement (
   }
 
   if $step >= 4 {
-    include ::nova::placement
-
     class { '::nova::wsgi::apache_placement':
       ssl_cert => $tls_certfile,
       ssl_key  => $tls_keyfile,