Add TimeZone parameter for all node types
Adds a TimeZone parameter for node types and the top level stack. Defaults to UTC. Change-Id: I98123d894ce429c34744233fe3e631cbdd7c12b5 Depends-On: Icf7c681f359e3e48b653ea4648db6a73b532d45e
This commit is contained in:
parent
c7878be6b4
commit
d2c375bad7
@ -274,6 +274,10 @@ parameters:
|
||||
description: The user password for SNMPd with readonly rights running on all Overcloud nodes
|
||||
type: string
|
||||
hidden: true
|
||||
TimeZone:
|
||||
default: 'UTC'
|
||||
description: The timezone to be set on nodes.
|
||||
type: string
|
||||
CloudDomain:
|
||||
default: 'localdomain'
|
||||
type: string
|
||||
@ -917,6 +921,7 @@ resources:
|
||||
SwiftPartPower: {get_param: SwiftPartPower}
|
||||
SwiftPassword: {get_param: SwiftPassword}
|
||||
SwiftReplicas: { get_param: SwiftReplicas}
|
||||
TimeZone: {get_param: TimeZone}
|
||||
VirtualIP: {get_attr: [VipMap, net_ip_map, ctlplane]} # deprecated. Use per service VIP settings instead now.
|
||||
PublicVirtualIP: {get_attr: [VipMap, net_ip_map, external]}
|
||||
ServiceNetMap: {get_param: ServiceNetMap}
|
||||
@ -1008,6 +1013,7 @@ resources:
|
||||
SnmpdReadonlyUserName: {get_param: SnmpdReadonlyUserName}
|
||||
SnmpdReadonlyUserPassword: {get_param: SnmpdReadonlyUserPassword}
|
||||
ServiceNetMap: {get_param: ServiceNetMap}
|
||||
TimeZone: {get_param: TimeZone}
|
||||
EndpointMap: {get_attr: [EndpointMap, endpoint_map]}
|
||||
UpdateIdentifier: {get_param: UpdateIdentifier}
|
||||
Hostname:
|
||||
@ -1043,6 +1049,7 @@ resources:
|
||||
RabbitUserName: {get_param: RabbitUserName}
|
||||
RabbitClientUseSSL: {get_param: RabbitClientUseSSL}
|
||||
RabbitClientPort: {get_param: RabbitClientPort}
|
||||
TimeZone: {get_param: TimeZone}
|
||||
NtpServer: {get_param: NtpServer}
|
||||
UpdateIdentifier: {get_param: UpdateIdentifier}
|
||||
Hostname:
|
||||
@ -1076,6 +1083,7 @@ resources:
|
||||
PartPower: {get_param: SwiftPartPower}
|
||||
Image: {get_param: SwiftStorageImage}
|
||||
Replicas: { get_param: SwiftReplicas}
|
||||
TimeZone: {get_param: TimeZone}
|
||||
NtpServer: {get_param: NtpServer}
|
||||
UpdateIdentifier: {get_param: UpdateIdentifier}
|
||||
ServiceNetMap: {get_param: ServiceNetMap}
|
||||
@ -1104,6 +1112,7 @@ resources:
|
||||
Flavor: {get_param: OvercloudCephStorageFlavor}
|
||||
NtpServer: {get_param: NtpServer}
|
||||
ServiceNetMap: {get_param: ServiceNetMap}
|
||||
TimeZone: {get_param: TimeZone}
|
||||
UpdateIdentifier: {get_param: UpdateIdentifier}
|
||||
Hostname:
|
||||
str_replace:
|
||||
|
@ -34,6 +34,10 @@ parameters:
|
||||
description: Mapping of service_name -> network name. Typically set
|
||||
via parameter_defaults in the resource registry.
|
||||
type: json
|
||||
TimeZone:
|
||||
default: 'UTC'
|
||||
description: The timezone to be set on Ceph nodes.
|
||||
type: string
|
||||
UpdateIdentifier:
|
||||
default: ''
|
||||
type: string
|
||||
@ -198,6 +202,7 @@ resources:
|
||||
server: {get_resource: CephStorage}
|
||||
input_values:
|
||||
ntp_servers: {get_param: NtpServer}
|
||||
timezone: {get_param: TimeZone}
|
||||
enable_package_install: {get_param: EnablePackageInstall}
|
||||
enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
|
||||
ceph_cluster_network: {get_attr: [NetIpSubnetMap, net_ip_subnet_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
|
||||
@ -229,6 +234,7 @@ resources:
|
||||
raw_data: {get_file: hieradata/ceph.yaml}
|
||||
mapped_data:
|
||||
ntp::servers: {get_input: ntp_servers}
|
||||
timezone::timezone: {get_input: timezone}
|
||||
tripleo::packages::enable_install: {get_input: enable_package_install}
|
||||
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
||||
ceph::profile::params::cluster_network: {get_input: ceph_cluster_network}
|
||||
|
@ -99,6 +99,10 @@ parameters:
|
||||
description: Mapping of service endpoint -> protocol. Typically set
|
||||
via parameter_defaults in the resource registry.
|
||||
type: json
|
||||
TimeZone:
|
||||
default: 'UTC'
|
||||
description: The timezone to be set on Cinder nodes.
|
||||
type: string
|
||||
GlanceApiVirtualIP:
|
||||
type: string
|
||||
default: ''
|
||||
@ -256,6 +260,7 @@ resources:
|
||||
rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
|
||||
rabbit_client_port: {get_param: RabbitClientPort}
|
||||
ntp_servers: {get_param: NtpServer}
|
||||
timezone: {get_param: TimeZone}
|
||||
enable_package_install: {get_param: EnablePackageInstall}
|
||||
enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
|
||||
|
||||
@ -298,6 +303,7 @@ resources:
|
||||
cinder_iscsi_ip_address: {get_input: cinder_iscsi_ip_address}
|
||||
cinder::glance::glance_api_servers: {get_input: glance_api_servers}
|
||||
ntp::servers: {get_input: ntp_servers}
|
||||
timezone::timezone: {get_input: timezone}
|
||||
tripleo::packages::enable_install: {get_input: enable_package_install}
|
||||
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
||||
snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
|
||||
|
@ -267,6 +267,10 @@ parameters:
|
||||
description: Mapping of service endpoint -> protocol. Typically set
|
||||
via parameter_defaults in the resource registry.
|
||||
type: json
|
||||
TimeZone:
|
||||
default: 'UTC'
|
||||
description: The timezone to be set on compute nodes.
|
||||
type: string
|
||||
UpdateIdentifier:
|
||||
default: ''
|
||||
type: string
|
||||
@ -501,6 +505,7 @@ resources:
|
||||
keystone_public_api_virtual_ip: {get_input: keystone_vip}
|
||||
admin_password: {get_input: admin_password}
|
||||
ntp::servers: {get_input: ntp_servers}
|
||||
timezone::timezone: {get_input: timezone}
|
||||
tripleo::packages::enable_install: {get_input: enable_package_install}
|
||||
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
||||
|
||||
@ -602,6 +607,7 @@ resources:
|
||||
rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
|
||||
rabbit_client_port: {get_param: RabbitClientPort}
|
||||
ntp_servers: {get_param: NtpServer}
|
||||
timezone: {get_param: TimeZone}
|
||||
enable_package_install: {get_param: EnablePackageInstall}
|
||||
enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
|
||||
|
||||
|
@ -602,6 +602,10 @@ parameters:
|
||||
default: 0
|
||||
description: Number of workers for Swift service.
|
||||
type: number
|
||||
TimeZone:
|
||||
default: 'UTC'
|
||||
description: The timezone to be set on controller nodes.
|
||||
type: string
|
||||
VirtualIP: # DEPRECATED: use per service settings instead
|
||||
type: string
|
||||
default: '' # Has to be here because of the ignored empty value bug
|
||||
@ -1073,6 +1077,7 @@ resources:
|
||||
params:
|
||||
LIMIT: {get_param: RabbitFDLimit}
|
||||
ntp_servers: {get_param: NtpServer}
|
||||
timezone: {get_param: TimeZone}
|
||||
control_virtual_interface: {get_param: ControlVirtualInterface}
|
||||
public_virtual_interface: {get_param: PublicVirtualInterface}
|
||||
swift_hash_suffix: {get_param: SwiftHashSuffix}
|
||||
@ -1432,6 +1437,7 @@ resources:
|
||||
memcached::listen_ip: {get_input: memcached_network}
|
||||
neutron_public_interface_ip: {get_input: neutron_public_interface_ip}
|
||||
ntp::servers: {get_input: ntp_servers}
|
||||
timezone::timezone: {get_input: timezone}
|
||||
control_virtual_interface: {get_input: control_virtual_interface}
|
||||
public_virtual_interface: {get_input: public_virtual_interface}
|
||||
tripleo::loadbalancer::control_virtual_interface: {get_input: control_virtual_interface}
|
||||
|
@ -22,6 +22,8 @@ if count(hiera('ntp::servers')) > 0 {
|
||||
include ::ntp
|
||||
}
|
||||
|
||||
include ::timezone
|
||||
|
||||
if str2bool(hiera('ceph_osd_selinux_permissive', true)) {
|
||||
exec { 'set selinux to permissive on boot':
|
||||
command => "sed -ie 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config",
|
||||
|
@ -22,6 +22,8 @@ if count(hiera('ntp::servers')) > 0 {
|
||||
include ::ntp
|
||||
}
|
||||
|
||||
include ::timezone
|
||||
|
||||
file { ['/etc/libvirt/qemu/networks/autostart/default.xml',
|
||||
'/etc/libvirt/qemu/networks/default.xml']:
|
||||
ensure => absent,
|
||||
|
@ -39,6 +39,8 @@ if hiera('step') >= 2 {
|
||||
include ::ntp
|
||||
}
|
||||
|
||||
include ::timezone
|
||||
|
||||
# MongoDB
|
||||
if downcase(hiera('ceilometer_backend')) == 'mongodb' {
|
||||
include ::mongodb::globals
|
||||
|
@ -41,6 +41,8 @@ if hiera('step') >= 1 {
|
||||
|
||||
create_resources(sysctl::value, hiera('sysctl_settings'), {})
|
||||
|
||||
include ::timezone
|
||||
|
||||
if count(hiera('ntp::servers')) > 0 {
|
||||
include ::ntp
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ if count(hiera('ntp::servers')) > 0 {
|
||||
include ::ntp
|
||||
}
|
||||
|
||||
include ::timezone
|
||||
|
||||
include ::swift
|
||||
class { '::swift::storage::all':
|
||||
mount_check => str2bool(hiera('swift_mount_check')),
|
||||
|
@ -22,6 +22,8 @@ if count(hiera('ntp::servers')) > 0 {
|
||||
include ::ntp
|
||||
}
|
||||
|
||||
include ::timezone
|
||||
|
||||
include ::cinder
|
||||
include ::cinder::config
|
||||
include ::cinder::glance
|
||||
|
@ -61,6 +61,10 @@ parameters:
|
||||
description: Mapping of service_name -> network name. Typically set
|
||||
via parameter_defaults in the resource registry.
|
||||
type: json
|
||||
TimeZone:
|
||||
default: 'UTC'
|
||||
description: The timezone to be set on Ceph nodes.
|
||||
type: string
|
||||
Hostname:
|
||||
type: string
|
||||
default: '' # Defaults to Heat created hostname
|
||||
@ -234,6 +238,7 @@ resources:
|
||||
swift_mount_check: {get_input: swift_mount_check }
|
||||
tripleo::ringbuilder::min_part_hours: { get_input: swift_min_part_hours }
|
||||
ntp::servers: {get_input: ntp_servers}
|
||||
timezone::timezone: {get_input: timezone}
|
||||
# NOTE(dprince): build_ring support is currently not wired in.
|
||||
# See: https://review.openstack.org/#/c/109225/
|
||||
tripleo::ringbuilder::build_ring: True
|
||||
@ -259,6 +264,7 @@ resources:
|
||||
swift_part_power: {get_param: PartPower}
|
||||
swift_replicas: { get_param: Replicas}
|
||||
ntp_servers: {get_param: NtpServer}
|
||||
timezone: {get_param: TimeZone}
|
||||
enable_package_install: {get_param: EnablePackageInstall}
|
||||
enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
|
||||
swift_management_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, SwiftMgmtNetwork]}]}
|
||||
|
Loading…
x
Reference in New Issue
Block a user