Puppet Class: heat::params
- Inherited by:
- 
      
      heat::api
 heat::api_cfn
 
- Defined in:
- manifests/params.pp
Overview
Class: heat::params
Parameters for puppet-heat
| 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | # File 'manifests/params.pp', line 5
class heat::params {
  include openstacklib::defaults
  $pyvers = $::openstacklib::defaults::pyvers
  $client_package_name = "python${pyvers}-heatclient"
  $group               = 'heat'
  case $::osfamily {
    'RedHat': {
      # package names
      $api_package_name            = 'openstack-heat-api'
      $api_cfn_package_name        = 'openstack-heat-api-cfn'
      $engine_package_name         = 'openstack-heat-engine'
      $common_package_name         = 'openstack-heat-common'
      # service names
      $api_service_name            = 'openstack-heat-api'
      $api_cfn_service_name        = 'openstack-heat-api-cfn'
      $engine_service_name         = 'openstack-heat-engine'
      # WSGI scripts
      $heat_wsgi_script_path                  = '/var/www/cgi-bin/heat'
      $heat_api_wsgi_script_source            = '/usr/bin/heat-wsgi-api'
      $heat_api_cfn_wsgi_script_source        = '/usr/bin/heat-wsgi-api-cfn'
    }
    'Debian': {
      # package names
      $api_package_name            = 'heat-api'
      $api_cfn_package_name        = 'heat-api-cfn'
      $engine_package_name         = 'heat-engine'
      $common_package_name         = 'heat-common'
      # service names
      $api_service_name            = 'heat-api'
      $api_cfn_service_name        = 'heat-api-cfn'
      $engine_service_name         = 'heat-engine'
      # WSGI scripts
      $heat_wsgi_script_path                  = '/usr/lib/cgi-bin/heat'
      $heat_api_wsgi_script_source            = '/usr/bin/heat-wsgi-api'
      $heat_api_cfn_wsgi_script_source        = '/usr/bin/heat-wsgi-api-cfn'
      # Operating system specific
      case $::operatingsystem {
        'Ubuntu': {
          $libvirt_group = 'libvirtd'
        }
        default: {
          $libvirt_group = 'libvirt'
        }
      }
    }
    default: {
      fail("Unsupported osfamily: ${::osfamily} operatingsystem: \
${::operatingsystem}, module ${module_name} only support osfamily \
RedHat and Debian")
    }
  }
} |