File: cluster.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 (40 lines) | stat: -rw-r--r-- 1,413 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
# == Class: magnum::cluster
#
# Setup magnum cluster.
#
# === Parameters
#
# [*etcd_discovery_service_endpoint_format*]
#   (optional) Url for etcd public discovery endpoint.
#   Defaults to $facts['os_service_default']
#
# [*nodes_affinity_policy*]
#   (optional) Affinity policy for server group of cluster nodes.
#   Defaults to $facts['os_service_default']
#
# [*temp_cache_dir*]
#   (optional) Explicitly specify the temporary directory to hold cached TLS
#   certs.
#   Defaults to $facts['os_service_default']
#
# [*pre_delete_lb_timeout*]
#   (optional) The timeout in seconds to wait for the load balancers to be
#   deleted.
#   Defaults to $facts['os_service_default']
#
class magnum::cluster (
  $etcd_discovery_service_endpoint_format = $facts['os_service_default'],
  $nodes_affinity_policy                  = $facts['os_service_default'],
  $temp_cache_dir                         = $facts['os_service_default'],
  $pre_delete_lb_timeout                  = $facts['os_service_default'],
) {

  include magnum::deps

  magnum_config {
    'cluster/etcd_discovery_service_endpoint_format': value => $etcd_discovery_service_endpoint_format;
    'cluster/nodes_affinity_policy':                  value => $nodes_affinity_policy;
    'cluster/temp_cache_dir':                         value => $temp_cache_dir;
    'cluster/pre_delete_lb_timeout':                  value => $pre_delete_lb_timeout;
  }
}