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 16a26e8596
1 changed files with 18 additions and 0 deletions

18
manifests/proxy.pp Normal file
View File

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