From 76d7c03cce78a7a093a39b3aff43274326313b79 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Thu, 26 Apr 2018 21:49:38 +0200 Subject: [PATCH] Fix defined type namespacing Without this patch, puppet 4 apply tests can't find the mod defined type and fail with: Evaluation Error: Resource type not found: Mod at /etc/puppetlabs/code/modules/ethercalc/manifests/apache.pp:43:15 This patch ensures the resource reference is namespaced the resource declaration is already namespaced. Change-Id: Iff4edae152bb1286667db5312b44c3f1d0e10add --- manifests/apache.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/apache.pp b/manifests/apache.pp index b3c60f0..b7f3870 100644 --- a/manifests/apache.pp +++ b/manifests/apache.pp @@ -40,17 +40,17 @@ class etherpad_lite::apache ( ssl => true, } - if !defined(Mod['rewrite']) { + if !defined(Httpd::Mod['rewrite']) { httpd::mod { 'rewrite': ensure => present, } } - if !defined(Mod['proxy']) { + if !defined(Httpd::Mod['proxy']) { httpd::mod { 'proxy': ensure => present, } } - if !defined(Mod['proxy_http']) { + if !defined(Httpd::Mod['proxy_http']) { httpd::mod { 'proxy_http': ensure => present, } @@ -61,7 +61,7 @@ class etherpad_lite::apache ( ensure => present, } } - if !defined(Mod['auth_openid']) { + if !defined(Httpd::Mod['auth_openid']) { httpd::mod { 'auth_openid': ensure => present, require => Package['libapache2-mod-auth-openid'],