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
This commit is contained in:
Colleen Murphy 2018-04-26 21:49:38 +02:00
parent 5b9395aea1
commit 76d7c03cce
1 changed files with 4 additions and 4 deletions

View File

@ -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'],