File: params.pp

package info (click to toggle)
puppet-module-cloudkitty 14.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,056 kB
  • sloc: ruby: 2,270; python: 38; sh: 10; makefile: 10
file content (45 lines) | stat: -rw-r--r-- 1,465 bytes parent folder | download
1
2
3
4
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
# == Class: cloudkitty::params
#
# Parameters for puppet-cloudkitty
#
class cloudkitty::params {
  include openstacklib::defaults

  $client_package_name    = 'python3-cloudkittyclient'
  $processor_service_name = 'cloudkitty-processor'
  $user                   = 'cloudkitty'
  $group                  = 'cloudkitty'
  $metrics_yaml           = '/etc/cloudkitty/metrics.yml'

  case $facts['os']['family'] {
    'RedHat': {
    # package names
    $api_package_name              = 'openstack-cloudkitty-api'
    $api_service_name              = 'cloudkitty-api'
    $processor_package_name        = 'openstack-cloudkitty-processor'
    $common_package_name           = 'openstack-cloudkitty-common'
    $cloudkitty_wsgi_script_source = '/usr/bin/cloudkitty-api'
    $cloudkitty_wsgi_script_path   = '/var/www/cgi-bin/cloudkitty'
    }
    'Debian': {
    # package names
    $api_package_name              = 'cloudkitty-api'
    case $facts['os']['name'] {
      'debian': {
        $api_service_name              = 'cloudkitty-api'
      }
      default: {
        $api_service_name              = 'httpd'
      }
    }
    $processor_package_name        = 'cloudkitty-processor'
    $common_package_name           = 'cloudkitty-common'
    $cloudkitty_wsgi_script_source = '/usr/bin/cloudkitty-api'
    $cloudkitty_wsgi_script_path   = '/usr/lib/cgi-bin/cloudkitty'
    }
    default: {
      fail("Unsupported osfamily: ${facts['os']['family']}")
    }

  }
}