From 63cb515c602d8a231a086b1db098c129ed81eaff Mon Sep 17 00:00:00 2001
From: Marius Cornea <mcornea@redhat.com>
Date: Sat, 25 Feb 2017 20:32:49 +0100
Subject: [PATCH] Install openstack-panko-api on upgrade

This doesn't exist in newton images, so install it via the
ansible tasks during step3 (when all other packages are updated).

Change-Id: I700a711473d10a50fad6b1797453a74c0cdff54b
Closes-Bug: 1667965
---
 puppet/services/panko-api.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/puppet/services/panko-api.yaml b/puppet/services/panko-api.yaml
index 4b74ad45bf..fc127a277e 100644
--- a/puppet/services/panko-api.yaml
+++ b/puppet/services/panko-api.yaml
@@ -84,3 +84,9 @@ outputs:
         include tripleo::profile::base::panko::api
       metadata_settings:
         get_attr: [ApacheServiceBase, role_data, metadata_settings]
+      upgrade_tasks:
+        # The panko API isn't installed in newton images, so install
+        # it on upgrade
+        - name: Install openstack-panko-api packages on upgrade
+          tags: step3
+          yum: name=openstack-panko-api state=latest