From 1d540a2ecbb3efb17b7e875f587aa4cecb2fe0ba Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Sun, 1 May 2016 12:59:41 -0700 Subject: [PATCH] Add directory resources to puppetdb module I think that the puppetdb module expects the package to do this work, and that's why it doesn't do this for us. There may also be an issue with the puppetdb module setting up a config file under /etc and the puppetdb application looking for a config file under /opt/puppetlabs Change-Id: Ide2b3a5841ac07fd7e154e8d26ce0b036f734a41 --- modules/openstack_project/manifests/puppetdb.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/openstack_project/manifests/puppetdb.pp b/modules/openstack_project/manifests/puppetdb.pp index aa9401d7ff..4531cf2c7c 100644 --- a/modules/openstack_project/manifests/puppetdb.pp +++ b/modules/openstack_project/manifests/puppetdb.pp @@ -39,6 +39,14 @@ class openstack_project::puppetdb ( } if versioncmp($version, '2.3.8') > 0 { + file { '/etc/puppetdb/': + ensure => directory, + before => Class['::puppetdb::server'], + } + file { '/etc/puppetdb/conf.d/': + ensure => directory, + before => Class['::puppetdb::server'], + } apt::source { 'puppetlabs-pc1': location => 'http://apt.puppetlabs.com', repos => 'PC1',