Browse Source

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 same way the
resource declaration is already.

Change-Id: I891572c245f878a198f972e33e7ddbff74a5a731
Colleen Murphy 1 year ago
parent
commit
7a3b3c6f81
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      manifests/apache.pp

+ 5
- 5
manifests/apache.pp View File

@@ -40,22 +40,22 @@ class ethercalc::apache (
40 40
     ssl      => true,
41 41
   }
42 42
 
43
-  if !defined(Mod['rewrite']) {
43
+  if !defined(Httpd::Mod['rewrite']) {
44 44
     httpd::mod { 'rewrite':
45 45
       ensure => present,
46 46
     }
47 47
   }
48
-  if !defined(Mod['proxy']) {
48
+  if !defined(Httpd::Mod['proxy']) {
49 49
     httpd::mod { 'proxy':
50 50
       ensure => present,
51 51
     }
52 52
   }
53
-  if !defined(Mod['proxy_http']) {
53
+  if !defined(Httpd::Mod['proxy_http']) {
54 54
     httpd::mod { 'proxy_http':
55 55
       ensure => present,
56 56
     }
57 57
   }
58
-  if !defined(Mod['proxy_wstunnel']) {
58
+  if !defined(Httpd::Mod['proxy_wstunnel']) {
59 59
     httpd::mod { 'proxy_wstunnel':
60 60
       ensure => present,
61 61
     }
@@ -66,7 +66,7 @@ class ethercalc::apache (
66 66
         ensure => present,
67 67
       }
68 68
     }
69
-    if !defined(Mod['auth_openid']) {
69
+    if !defined(Httpd::Mod['auth_openid']) {
70 70
       httpd::mod { 'auth_openid':
71 71
         ensure  => present,
72 72
         require => Package['libapache2-mod-auth-openid'],

Loading…
Cancel
Save