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:
parent
0602c5e6c8
commit
16a26e8596
|
@ -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,
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue