51829b985f
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: Ibe75e48eeb387c213c42511797c59b9df39a7762
32 lines
1.1 KiB
Puppet
32 lines
1.1 KiB
Puppet
# == 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;
|
|
}
|
|
|
|
}
|