From 554c353b6eca6c2b92a7a1f17b989ca003686140 Mon Sep 17 00:00:00 2001 From: Stephen Date: Tue, 16 Jul 2013 17:48:40 +0100 Subject: [PATCH] this should be a directory not a file --- manifests/package.pp | 1 + spec/classes/sensu_package_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/manifests/package.pp b/manifests/package.pp index a3ea9049e0..60ef71d1bb 100644 --- a/manifests/package.pp +++ b/manifests/package.pp @@ -24,6 +24,7 @@ if $purge_config { file { '/etc/sensu/conf.d': + ensure => directory, purge => true, recurse => true, force => true, diff --git a/spec/classes/sensu_package_spec.rb b/spec/classes/sensu_package_spec.rb index 4a481ff195..ff1ed2fbd1 100644 --- a/spec/classes/sensu_package_spec.rb +++ b/spec/classes/sensu_package_spec.rb @@ -30,6 +30,7 @@ let(:params) { { :purge_config => true } } it { should contain_file('/etc/sensu/conf.d/').with( + 'ensure' => 'directory', 'purge' => 'true', 'recurse' => 'true', 'force' => 'true'