From aad1f6a6f81a411274b974f007d15a9695214c09 Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Wed, 25 May 2016 13:31:57 +1000 Subject: [PATCH] elastic-recheck requires libffi-dev to install Change-Id: Ia46ed829dd87a7dd55627c5ef28a7f59d3022b3c --- manifests/api.pp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/manifests/api.pp b/manifests/api.pp index 0bbd51a..6ea09e8 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -68,6 +68,20 @@ class openstack_health::api( ensure => present, } + case $::osfamily { + 'RedHat': { + package {'libffi-dev': + ensure => present, + name => 'libffi-devel', + } + } + default: { + package {'libffi-dev': + ensure => present, + } + } + } + package {'libxml2-dev': ensure => present, } @@ -90,7 +104,10 @@ class openstack_health::api( exec { 'elastic-recheck-install': command => "${virtualenv_dir}/bin/pip install -U ${elastic_recheck_dir}", - require => Python::Virtualenv[$virtualenv_dir], + require => [ + Python::Virtualenv[$virtualenv_dir], + Package['libffi-dev'], + ], subscribe => Vcsrepo[$elastic_recheck_dir], refreshonly => true, timeout => 1800,