39 lines
1.0 KiB
Puppet
39 lines
1.0 KiB
Puppet
#This class contains necessary parameters for all other manifests
|
|
|
|
class fwaas::params {
|
|
|
|
$server_service = 'neutron-server'
|
|
$l3_agent_service = 'neutron-l3-agent'
|
|
|
|
$fuel_settings = parseyaml($astute_settings_yaml)
|
|
|
|
$ha = $fuel_settings['deployment_mode'] ? { 'ha_compact'=>true, default=>false }
|
|
$full_node_name = $fuel_settings['fqdn']
|
|
|
|
if($::osfamily == 'Redhat') {
|
|
$server_package = 'openstack-neutron'
|
|
|
|
$dashboard_package = 'openstack-dashboard'
|
|
$dashboard_service = 'httpd'
|
|
$dashboard_settings = '/etc/openstack-dashboard/local_settings'
|
|
|
|
$node_name = $full_node_name
|
|
|
|
} elsif($::osfamily == 'Debian') {
|
|
|
|
$server_package = 'neutron-server'
|
|
|
|
$dashboard_package = 'python-django-horizon'
|
|
$dashboard_service = 'apache2'
|
|
$dashboard_settings = '/etc/openstack-dashboard/local_settings.py'
|
|
|
|
$array_node_name = split($full_node_name, '[.]')
|
|
$node_name = $array_node_name[0]
|
|
|
|
} else {
|
|
|
|
fail("Unsupported osfamily ${::osfamily}")
|
|
|
|
}
|
|
}
|