File: neutron.pp

package info (click to toggle)
puppet-module-designate 25.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,544 kB
  • sloc: ruby: 3,196; python: 38; sh: 10; makefile: 10
file content (33 lines) | stat: -rw-r--r-- 941 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
# == Class: designate::network_api::neutron
#
# Configure the [network_api:neutron] parameters
#
# === Parameters
#
# [*endpoints*]
#  (Optional) URL to use. Format: <retion>|<url>
#  Defaults to $facts['os_service_default'].
#
# [*endpoint_type*]
#  (Optional) Endpoint type to use
#  Defaults to $facts['os_service_default'].
#
# [*timeout*]
#  (Optional) Timeout value for connecting to neutron in seconds.
#  Defaults to $facts['os_service_default'].
#
class designate::network_api::neutron (
  $endpoints     = $facts['os_service_default'],
  $endpoint_type = $facts['os_service_default'],
  $timeout       = $facts['os_service_default'],
) {
  include designate::deps
  include designate::params

  designate_config {
    'network_api:neutron/endpoints':     value => join(any2array($endpoints), ',');
    'network_api:neutron/endpoint_type': value => $endpoint_type;
    'network_api:neutron/timeout':       value => $timeout;
  }

}