5882a8ba14
* move Horizon, API proxy and radosgw setup from openstack::controller to separate tasks * minor refactoring of some ceph manifests to allow separate ceph::radosgw declaration * fixing mistake in osnailyfacter::apache_api_proxy - we pass master_ip as parameter, so there's no need to pull it via hiera inside the class * fixing warning from api_proxy.conf.erb template Change-Id: I03810ed51ae015ac64dde6e82ce2f721a42f45d3 Related-Blueprint: fuel-library-modularization
27 lines
683 B
Puppet
27 lines
683 B
Puppet
# Proxy realization via apache
|
|
class osnailyfacter::apache_api_proxy(
|
|
$master_ip,
|
|
) {
|
|
|
|
# Allow connection to the apache for ostf tests
|
|
firewall {'007 tinyproxy':
|
|
dport => [ 8888 ],
|
|
source => $master_ip,
|
|
proto => 'tcp',
|
|
action => 'accept',
|
|
}
|
|
|
|
class {"::apache::mod::proxy": }
|
|
class {"::apache::mod::proxy_connect": }
|
|
class {"::apache::mod::proxy_http": }
|
|
|
|
apache::vhost { 'apache_api_proxy':
|
|
docroot => '/var/www/html',
|
|
custom_fragment => template('osnailyfacter/api_proxy.conf.erb'),
|
|
port => '8888',
|
|
add_listen => true,
|
|
error_log_syslog => 'syslog:local0',
|
|
log_level => 'notice',
|
|
}
|
|
}
|