File: octavia.pp

package info (click to toggle)
puppet-module-magnum 25.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,180 kB
  • sloc: ruby: 2,768; python: 38; makefile: 21; sh: 10
file content (53 lines) | stat: -rw-r--r-- 1,678 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
46
47
48
49
50
51
52
53
# == Class: magnum::clients::octavia
#
# Manages octavia clients configuration in magnum server
#
# === Parameters:
#
# [*region_name*]
#   (optional) Region in Identity service catalog to use for communication
#   with the OpenStack service.
#   Defaults to RegionOne
#
# [*endpoint_type*]
#   (optional) Type of endpoint in Identity service catalog to use for
#   communication with the OpenStack service.
#   Defaults to publicURL
#
# [*ca_file*]
#   (optional) CA cert file to use in SSL connections.
#   Defaults to $facts['os_service_default']
#
# [*cert_file*]
#   (optional) PEM-formatted certificate chain file.
#   Defaults to $facts['os_service_default']
#
# [*key_file*]
#   (optional) PEM-formatted file that contains the private key.
#   Defaults to $facts['os_service_default']
#
# [*insecure*]
#   (optional) If set, then the server's certificate will not be verified.
#   Defaults to false
#
class magnum::clients::octavia(
  $region_name   = $magnum::clients::region_name,
  $endpoint_type = $magnum::clients::endpoint_type,
  $ca_file       = $magnum::clients::ca_file,
  $cert_file     = $magnum::clients::cert_file,
  $key_file      = $magnum::clients::key_file,
  $insecure      = $magnum::clients::insecure,
) inherits magnum::clients {

  include magnum::deps
  include magnum::params

  magnum_config {
    'octavia_client/region_name':   value => $region_name;
    'octavia_client/endpoint_type': value => $endpoint_type;
    'octavia_client/ca_file':       value => $ca_file;
    'octavia_client/cert_file':     value => $cert_file;
    'octavia_client/key_file':      value => $key_file;
    'octavia_client/insecure':      value => $insecure;
  }
}