Puppet Class: cinder::nova

Defined in:
manifests/nova.pp

Overview

Class: cinder::nova

Setup and configure cinder.conf nova section.

Parameters

region_name

(Optional) Name of nova region to use. Defaults to $::os_service_default

interface

(Optional) Type of the nova endpoint to use. Defaults to $::os_service_default

token_auth_url

(Optional) The authentication URL for the nova connection when using the current users token. Defaults to $::os_service_default

cafile

(Optional) PEM encoded Certificate Authority to use when verifying HTTPs connections. Defaults to $::os_service_default

certfile

(Optional) PEM encoded client certificate cert file. Defaults to $::os_service_default

keyfile

(Optional) PEM encoded client certificate key file. Defaults to $::os_service_default

insecure

(Optional) Verify HTTPS connections. Defaults to $::os_service_default

timeout

(Optional) Timeout value for http requests. Defaults to $::os_service_default

collect_timing

(Optional) Collect per-API call timing information. Defaults to $::os_service_default

split_loggers

(Optional) Log requests to multiple loggers. Defaults to $::os_service_default

auth_type

(Optional) Authentication type to load. Defaults to $::os_service_default

auth_section

(Optional) Config Section from which to load plugin specific options. Defaults to $::os_service_default

auth_url

(Optional) Identity service url. Defaults to $::os_service_default

username

(Optional) Nova admin username. Defaults to ‘nova’

user_domain_name

(Optional) Nova admin user domain name. Defaults to ‘Default’

password

(Optional) Nova admin password. Defaults to $::os_service_default

project_name

(Optional) Nova admin project name. Defaults to ‘services’

project_domain_name

(Optional) Nova admin project domain name. Defaults to ‘Default’

system_scope

(Optional) Scope for system operations Defaults to $::os_service_default

Parameters:

  • region_name (Any) (defaults to: $::os_service_default)
  • interface (Any) (defaults to: $::os_service_default)
  • token_auth_url (Any) (defaults to: $::os_service_default)
  • cafile (Any) (defaults to: $::os_service_default)
  • certfile (Any) (defaults to: $::os_service_default)
  • keyfile (Any) (defaults to: $::os_service_default)
  • insecure (Any) (defaults to: $::os_service_default)
  • timeout (Any) (defaults to: $::os_service_default)
  • collect_timing (Any) (defaults to: $::os_service_default)
  • split_loggers (Any) (defaults to: $::os_service_default)
  • auth_type (Any) (defaults to: $::os_service_default)
  • auth_section (Any) (defaults to: $::os_service_default)
  • auth_url (Any) (defaults to: $::os_service_default)
  • username (Any) (defaults to: 'nova')
  • user_domain_name (Any) (defaults to: 'Default')
  • password (Any) (defaults to: $::os_service_default)
  • project_name (Any) (defaults to: 'services')
  • project_domain_name (Any) (defaults to: 'Default')
  • system_scope (Any) (defaults to: $::os_service_default)


86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'manifests/nova.pp', line 86

class cinder::nova (
  $region_name         = $::os_service_default,
  $interface           = $::os_service_default,
  $token_auth_url      = $::os_service_default,
  $cafile              = $::os_service_default,
  $certfile            = $::os_service_default,
  $keyfile             = $::os_service_default,
  $insecure            = $::os_service_default,
  $timeout             = $::os_service_default,
  $collect_timing      = $::os_service_default,
  $split_loggers       = $::os_service_default,
  $auth_type           = $::os_service_default,
  $auth_section        = $::os_service_default,
  $auth_url            = $::os_service_default,
  $username            = 'nova',
  $user_domain_name    = 'Default',
  $password            = $::os_service_default,
  $project_name        = 'services',
  $project_domain_name = 'Default',
  $system_scope        = $::os_service_default,
) {

  include cinder::deps

  if is_service_default($system_scope) {
    $project_name_real = $project_name
    $project_domain_name_real = $project_domain_name
  } else {
    $project_name_real = $::os_service_default
    $project_domain_name_real = $::os_service_default
  }

  cinder_config {
    'nova/region_name':         value => $region_name;
    'nova/interface':           value => $interface;
    'nova/token_auth_url':      value => $token_auth_url;
    'nova/cafile':              value => $cafile;
    'nova/certfile':            value => $certfile;
    'nova/keyfile':             value => $keyfile;
    'nova/insecure':            value => $insecure;
    'nova/timeout':             value => $timeout;
    'nova/collect_timing':      value => $collect_timing;
    'nova/split_loggers':       value => $split_loggers;
    'nova/auth_type':           value => $auth_type;
    'nova/auth_section':        value => $auth_section;
    'nova/auth_url':            value => $auth_url;
    'nova/username':            value => $username;
    'nova/user_domain_name':    value => $user_domain_name;
    'nova/password':            value => $password, secret => true;
    'nova/project_name':        value => $project_name_real;
    'nova/project_domain_name': value => $project_domain_name_real;
    'nova/system_scope':        value => $system_scope;
  }
}