Add httpd proxy class

It is easier to keep ciwatch on 5000 and put it behind apache proxy.
Especially considering that more work needs to be done to make the
frontend robust later.

Needed-By: If943492f287a78c03c194b135e08a7d54be74d1e
Change-Id: I7be91262b74a45ee0011ee49698ad7bb5048007e
This commit is contained in:
Mikhail S Medvedev 2017-09-15 13:04:54 -06:00
parent 0602c5e6c8
commit dc6128164f
1 changed files with 14 additions and 0 deletions

14
manifests/proxy.pp Normal file
View File

@ -0,0 +1,14 @@
class ciwatch::proxy (
$port = 80,
$vhost_name = $::fqdn,
) {
httpd::mod { 'proxy':}
httpd::mod { 'proxy_http':}
::httpd::vhost::proxy { $vhost_name:
dest => 'http://localhost:5000',
port => $port,
}
}