File: availability_zone.pp

package info (click to toggle)
puppet-module-nova 25.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,100 kB
  • sloc: ruby: 11,433; python: 38; sh: 10; makefile: 10
file content (31 lines) | stat: -rw-r--r-- 1,076 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
# == Class: nova::availability_zone
#
# nova availability zone configuration
#
# === Parameters:
#
#  [*default_availability_zone*]
#   (optional) Default compute node availability zone.
#   Defaults to $facts['os_service_default']
#
#  [*default_schedule_zone*]
#   (optional) Availability zone to use when user doesn't specify one.
#   Defaults to $facts['os_service_default']
#
#  [*internal_service_availability_zone*]
#   (optional) The availability zone to show internal services under.
#   Defaults to $facts['os_service_default']
#
class nova::availability_zone (
  $default_availability_zone          = $facts['os_service_default'],
  $default_schedule_zone              = $facts['os_service_default'],
  $internal_service_availability_zone = $facts['os_service_default'],
) {

  nova_config {
    'DEFAULT/default_availability_zone':          value => $default_availability_zone;
    'DEFAULT/default_schedule_zone':              value => $default_schedule_zone;
    'DEFAULT/internal_service_availability_zone': value => $internal_service_availability_zone;
  }

}