Page MenuHomePhabricator
Paste P11527

(An Untitled Masterwork)
ArchivedPublic

Authored by Kormat on Jun 16 2020, 7:19 AM.
Tags
None
Referenced Files
F31867718: raw.txt
Jun 16 2020, 7:19 AM
Subscribers
None
kormat@af-kormat-pm:~$ sudo puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find resource 'Class[Httpd]' in parameter 'before' (file: /etc/puppet/modules/puppetmaster/manifests/passenger.pp, line: 68) on node af-kormat-pm.automation-framework.eqiad.wmflabs
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Event Timeline

This fixes it:

diff --git a/modules/role/manifests/puppetmaster/pontoon.pp b/modules/role/manifests/puppetmaster/pontoon.pp
index 89d7461cbf..9243b8a470 100644
--- a/modules/role/manifests/puppetmaster/pontoon.pp
+++ b/modules/role/manifests/puppetmaster/pontoon.pp
@@ -70,6 +70,16 @@ class role::puppetmaster::pontoon(
         $config = merge($base_config, $env_config)
     }
 
+     class { '::httpd':
+        modules => ['proxy',
+                    'proxy_http',
+                    'proxy_balancer',
+                    'passenger',
+                    'rewrite',
+                    'lbmethod_byrequests'],
+    }
+    require_package('libapache2-mod-passenger')
+
     class { '::puppetmaster':
         server_name         => $server_name,
         allow_from          => $allow_from,