fuel-plugin-tls/deployment_scripts/puppet/modules/tls/manifests/params.pp

34 lines
1.6 KiB
Puppet

class tls::params {
if $::osfamily == 'Debian' {
$httpd_service_name = 'apache2'
$horizon_settings_file = '/etc/openstack-dashboard/local_settings.py'
$usergroup = 'nogroup'
$nova_compute_service = 'nova-compute'
$nova_novnc_service = 'nova-novncproxy'
$apache_tls_path = '/etc/apache2/TLS'
$tls_cert_file = '/etc/apache2/TLS/horizon.crt'
$tls_key_file = '/etc/apache2/TLS/horizon.key'
$tls_ca_file = '/etc/apache2/TLS/horizon.ca'
$root_url = '/horizon'
$apache_conf_file = '/etc/apache2/conf-available/openstack-dashboard.conf'
$apache_vhost_file = '/etc/apache2/sites-available/openstack-dashboard.conf'
$apache_port_file = '/etc/apache2/ports.conf'
} elsif($::osfamily == 'RedHat') {
$httpd_service_name = 'httpd'
$horizon_settings_file = '/etc/openstack-dashboard/local_settings'
$usergroup = 'nobody'
$nova_compute_service = 'openstack-nova-compute'
$nova_novnc_service = 'openstack-nova-novncproxy'
$apache_tls_path = '/etc/httpd/TLS'
$tls_cert_file = '/etc/httpd/TLS/horizon.crt'
$tls_key_file = '/etc/httpd/TLS/horizon.key'
$tls_ca_file = '/etc/httpd/TLS/horizon.ca'
$root_url = '/dashboard'
$apache_conf_file = '/etc/httpd/conf.d/openstack-dashboard.conf'
$apache_vhost_file = '/etc/httpd/conf.d/ssl.conf'
$apache_port_file = '/etc/httpd/conf.d/ports.conf'
} else {
fail("unsupported family ${::osfamily}")
}
}