|
| 1 | +# these parameters need to be accessed from several locations and |
| 2 | +# should be considered to be constant |
| 3 | +class nova::params { |
| 4 | + |
| 5 | + case $::osfamily { |
| 6 | + 'RedHat': { |
| 7 | + $package_names = 'openstack-nova' |
| 8 | + $doc_package_name = 'openstack-nova-doc' |
| 9 | + $api_service_name = 'openstack-nova-api' |
| 10 | + $compute_service_name = 'openstack-nova-compute' |
| 11 | + $network_service_name = 'openstack-nova-network' |
| 12 | + $objectstore_service_name = 'openstack-nova-objectstore' |
| 13 | + $scheduler_service_name = 'openstack-nova-scheduler' |
| 14 | + $libvirt_package_name = 'libvirt' |
| 15 | + $libvirt_service_name = 'libvirtd' |
| 16 | + $special_service_provider = 'init' |
| 17 | + } |
| 18 | + 'Debian': { |
| 19 | + $package_names = ['nova-common', |
| 20 | + 'nova-api', |
| 21 | + 'nova-compute', |
| 22 | + 'nova-network', |
| 23 | + 'nova-objectstore', |
| 24 | + 'nova-scheduler' |
| 25 | + ] |
| 26 | + $doc_package_name = 'nova-doc' |
| 27 | + $api_service_name = 'nova-api' |
| 28 | + $compute_service_name = 'nova-compute' |
| 29 | + $network_service_name = 'nova-network' |
| 30 | + $objectstore_service_name = 'nova-objectstore' |
| 31 | + $scheduler_service_name = 'nova-scheduler' |
| 32 | + $libvirt_package_name = 'libvirt-bin' |
| 33 | + $libvirt_service_name = 'libvirt-bin' |
| 34 | + # some of the services need to be started form the special upstart provider |
| 35 | + $special_service_provider = 'upstart' |
| 36 | + } |
| 37 | + default: { |
| 38 | + fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian") |
| 39 | + } |
| 40 | + } |
| 41 | + |
| 42 | +} |
0 commit comments