From a304c5a718b3553be262e2e6e4c5a929029db746 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 14 Dec 2017 11:32:54 -0500 Subject: [PATCH] Fix dependency issue with cacti package Right now the cacti package setups up the /usr/local/share/cacti directories. So we need to make sure cacti is installed before we start adding files into those directories. Change-Id: I99bbf0a71e140380636419c4200d9f4662f5311e Signed-off-by: Paul Belanger --- modules/openstack_project/manifests/cacti.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/manifests/cacti.pp b/modules/openstack_project/manifests/cacti.pp index eb2665bab4..63b63e6556 100644 --- a/modules/openstack_project/manifests/cacti.pp +++ b/modules/openstack_project/manifests/cacti.pp @@ -34,8 +34,9 @@ class openstack_project::cacti ( } file { '/usr/local/share/cacti/resource/snmp_queries': - ensure => directory, - owner => 'root', + ensure => directory, + owner => 'root', + require => Package['cacti'], } file { '/usr/local/share/cacti/resource/snmp_queries/net-snmp_devio.xml':