Hiera optimization: use a new hiera hook
This patch optimizes how we deploy hiera by using a new heat hook specifically designed to help compose hiera within heat templates. As part of this change: - we update all the 'hiera' software configurations to set the group to hiera instead of os-apply-config. - The new format uses JSON instead of YAML. The hook actually writes out the hiera JSON directly so no conversion takes place. Arrays, Strings, Booleans all stay in their native formats. As such we can avoid having to do many of the awkward string and list conversions in t-h-t to support the previous YAML formatting. - The new hook prefers JSON over YAML so upgrading users will have the new files prefered. (we will post a cleanup routine for the old files soon but this isn't a new behavior, JSON is now simply prefered.) - A lot of services required edits to account for default settings that worked in YAML that no longer work correctly in the native JSON format. In almost all these cases I think the resulting codes looks cleaner and is more explicit with regards to what is getting configured in hiera on the actual nodes. Depends-On: I6a383b1ad4ec29458569763bd3f56fd3f2bd726b Closes-bug: #1596373 Change-Id: Ibe7e2044e200e2c947223286fdf4fd5bcf98c2e1
This commit is contained in:
parent
9cd0c5a50c
commit
7876851011
|
@ -71,16 +71,13 @@ resources:
|
||||||
allNodesConfigImpl:
|
allNodesConfigImpl:
|
||||||
type: OS::Heat::StructuredConfig
|
type: OS::Heat::StructuredConfig
|
||||||
properties:
|
properties:
|
||||||
group: os-apply-config
|
group: hiera
|
||||||
config:
|
config:
|
||||||
hiera:
|
|
||||||
datafiles:
|
datafiles:
|
||||||
bootstrap_node:
|
bootstrap_node:
|
||||||
mapped_data:
|
|
||||||
bootstrap_nodeid: {get_input: bootstrap_nodeid}
|
bootstrap_nodeid: {get_input: bootstrap_nodeid}
|
||||||
bootstrap_nodeid_ip: {get_input: bootstrap_nodeid_ip}
|
bootstrap_nodeid_ip: {get_input: bootstrap_nodeid_ip}
|
||||||
all_nodes:
|
all_nodes:
|
||||||
mapped_data:
|
|
||||||
map_merge:
|
map_merge:
|
||||||
- tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: logging_sources}
|
- tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: logging_sources}
|
||||||
- tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: logging_groups}
|
- tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: logging_groups}
|
||||||
|
@ -137,19 +134,14 @@ resources:
|
||||||
- ','
|
- ','
|
||||||
- {get_param: controller_names}
|
- {get_param: controller_names}
|
||||||
memcached_node_ips_v6:
|
memcached_node_ips_v6:
|
||||||
str_replace:
|
repeat:
|
||||||
template: "['inet6:[SERVERS_LIST]']"
|
template: "inet6:[NAME]"
|
||||||
params:
|
for_each:
|
||||||
SERVERS_LIST:
|
NAME: {get_param: memcache_node_ips}
|
||||||
list_join:
|
|
||||||
- "]','inet6:["
|
|
||||||
- {get_param: memcache_node_ips}
|
|
||||||
|
|
||||||
deploy_identifier: {get_param: DeployIdentifier}
|
deploy_identifier: {get_param: DeployIdentifier}
|
||||||
update_identifier: {get_param: UpdateIdentifier}
|
update_identifier: {get_param: UpdateIdentifier}
|
||||||
stack_action: {get_param: StackAction}
|
stack_action: {get_param: StackAction}
|
||||||
vip_data:
|
vip_data:
|
||||||
mapped_data:
|
|
||||||
map_merge:
|
map_merge:
|
||||||
# Dynamically generate per-service VIP data based on enabled_services
|
# Dynamically generate per-service VIP data based on enabled_services
|
||||||
# This works as follows (outer->inner functions)
|
# This works as follows (outer->inner functions)
|
||||||
|
|
|
@ -239,9 +239,8 @@ resources:
|
||||||
BlockStorageConfig:
|
BlockStorageConfig:
|
||||||
type: OS::Heat::StructuredConfig
|
type: OS::Heat::StructuredConfig
|
||||||
properties:
|
properties:
|
||||||
group: os-apply-config
|
group: hiera
|
||||||
config:
|
config:
|
||||||
hiera:
|
|
||||||
hierarchy:
|
hierarchy:
|
||||||
- '"%{::uuid}"'
|
- '"%{::uuid}"'
|
||||||
- heat_config_%{::deploy_config_name}
|
- heat_config_%{::deploy_config_name}
|
||||||
|
@ -257,20 +256,15 @@ resources:
|
||||||
merge_behavior: deeper
|
merge_behavior: deeper
|
||||||
datafiles:
|
datafiles:
|
||||||
service_names:
|
service_names:
|
||||||
mapped_data:
|
|
||||||
service_names: {get_param: ServiceNames}
|
service_names: {get_param: ServiceNames}
|
||||||
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
||||||
service_configs:
|
service_configs:
|
||||||
mapped_data:
|
|
||||||
map_replace:
|
map_replace:
|
||||||
- {get_param: ServiceConfigSettings}
|
- {get_param: ServiceConfigSettings}
|
||||||
- values: {get_attr: [NetIpMap, net_ip_map]}
|
- values: {get_attr: [NetIpMap, net_ip_map]}
|
||||||
volume_extraconfig:
|
volume_extraconfig: {get_param: BlockStorageExtraConfig}
|
||||||
mapped_data: {get_param: BlockStorageExtraConfig}
|
extraconfig: {get_param: ExtraConfig}
|
||||||
extraconfig:
|
|
||||||
mapped_data: {get_param: ExtraConfig}
|
|
||||||
volume:
|
volume:
|
||||||
mapped_data:
|
|
||||||
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
||||||
|
|
||||||
# Resource for site-specific injection of root certificate
|
# Resource for site-specific injection of root certificate
|
||||||
|
|
|
@ -244,9 +244,8 @@ resources:
|
||||||
CephStorageConfig:
|
CephStorageConfig:
|
||||||
type: OS::Heat::StructuredConfig
|
type: OS::Heat::StructuredConfig
|
||||||
properties:
|
properties:
|
||||||
group: os-apply-config
|
group: hiera
|
||||||
config:
|
config:
|
||||||
hiera:
|
|
||||||
hierarchy:
|
hierarchy:
|
||||||
- '"%{::uuid}"'
|
- '"%{::uuid}"'
|
||||||
- heat_config_%{::deploy_config_name}
|
- heat_config_%{::deploy_config_name}
|
||||||
|
@ -262,20 +261,15 @@ resources:
|
||||||
merge_behavior: deeper
|
merge_behavior: deeper
|
||||||
datafiles:
|
datafiles:
|
||||||
service_names:
|
service_names:
|
||||||
mapped_data:
|
|
||||||
service_names: {get_param: ServiceNames}
|
service_names: {get_param: ServiceNames}
|
||||||
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
||||||
service_configs:
|
service_configs:
|
||||||
mapped_data:
|
|
||||||
map_replace:
|
map_replace:
|
||||||
- {get_param: ServiceConfigSettings}
|
- {get_param: ServiceConfigSettings}
|
||||||
- values: {get_attr: [NetIpMap, net_ip_map]}
|
- values: {get_attr: [NetIpMap, net_ip_map]}
|
||||||
ceph_extraconfig:
|
ceph_extraconfig: {get_param: CephStorageExtraConfig}
|
||||||
mapped_data: {get_param: CephStorageExtraConfig}
|
extraconfig: {get_param: ExtraConfig}
|
||||||
extraconfig:
|
|
||||||
mapped_data: {get_param: ExtraConfig}
|
|
||||||
ceph:
|
ceph:
|
||||||
mapped_data:
|
|
||||||
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
||||||
|
|
||||||
# Resource for site-specific injection of root certificate
|
# Resource for site-specific injection of root certificate
|
||||||
|
|
|
@ -251,9 +251,8 @@ resources:
|
||||||
NovaComputeConfig:
|
NovaComputeConfig:
|
||||||
type: OS::Heat::StructuredConfig
|
type: OS::Heat::StructuredConfig
|
||||||
properties:
|
properties:
|
||||||
group: os-apply-config
|
group: hiera
|
||||||
config:
|
config:
|
||||||
hiera:
|
|
||||||
hierarchy:
|
hierarchy:
|
||||||
- '"%{::uuid}"'
|
- '"%{::uuid}"'
|
||||||
- heat_config_%{::deploy_config_name}
|
- heat_config_%{::deploy_config_name}
|
||||||
|
@ -275,20 +274,15 @@ resources:
|
||||||
merge_behavior: deeper
|
merge_behavior: deeper
|
||||||
datafiles:
|
datafiles:
|
||||||
service_names:
|
service_names:
|
||||||
mapped_data:
|
|
||||||
service_names: {get_param: ServiceNames}
|
service_names: {get_param: ServiceNames}
|
||||||
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
||||||
service_configs:
|
service_configs:
|
||||||
mapped_data:
|
|
||||||
map_replace:
|
map_replace:
|
||||||
- {get_param: ServiceConfigSettings}
|
- {get_param: ServiceConfigSettings}
|
||||||
- values: {get_attr: [NetIpMap, net_ip_map]}
|
- values: {get_attr: [NetIpMap, net_ip_map]}
|
||||||
compute_extraconfig:
|
compute_extraconfig: {get_param: NovaComputeExtraConfig}
|
||||||
mapped_data: {get_param: NovaComputeExtraConfig}
|
extraconfig: {get_param: ExtraConfig}
|
||||||
extraconfig:
|
|
||||||
mapped_data: {get_param: ExtraConfig}
|
|
||||||
compute:
|
compute:
|
||||||
mapped_data:
|
|
||||||
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
||||||
|
|
||||||
NovaComputeDeployment:
|
NovaComputeDeployment:
|
||||||
|
|
|
@ -299,9 +299,8 @@ resources:
|
||||||
ControllerConfig:
|
ControllerConfig:
|
||||||
type: OS::Heat::StructuredConfig
|
type: OS::Heat::StructuredConfig
|
||||||
properties:
|
properties:
|
||||||
group: os-apply-config
|
group: hiera
|
||||||
config:
|
config:
|
||||||
hiera:
|
|
||||||
hierarchy:
|
hierarchy:
|
||||||
- '"%{::uuid}"'
|
- '"%{::uuid}"'
|
||||||
- heat_config_%{::deploy_config_name}
|
- heat_config_%{::deploy_config_name}
|
||||||
|
@ -325,25 +324,20 @@ resources:
|
||||||
merge_behavior: deeper
|
merge_behavior: deeper
|
||||||
datafiles:
|
datafiles:
|
||||||
service_names:
|
service_names:
|
||||||
mapped_data:
|
|
||||||
service_names: {get_param: ServiceNames}
|
service_names: {get_param: ServiceNames}
|
||||||
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
||||||
service_configs:
|
service_configs:
|
||||||
mapped_data:
|
|
||||||
map_replace:
|
map_replace:
|
||||||
- {get_param: ServiceConfigSettings}
|
- {get_param: ServiceConfigSettings}
|
||||||
- values: {get_attr: [NetIpMap, net_ip_map]}
|
- values: {get_attr: [NetIpMap, net_ip_map]}
|
||||||
controller_extraconfig:
|
controller_extraconfig:
|
||||||
mapped_data:
|
|
||||||
map_merge:
|
map_merge:
|
||||||
- {get_param: controllerExtraConfig}
|
- {get_param: controllerExtraConfig}
|
||||||
- {get_param: ControllerExtraConfig}
|
- {get_param: ControllerExtraConfig}
|
||||||
extraconfig:
|
extraconfig: {get_param: ExtraConfig}
|
||||||
mapped_data: {get_param: ExtraConfig}
|
|
||||||
controller:
|
controller:
|
||||||
mapped_data: # data supplied directly to this deployment configuration, etc
|
# data supplied directly to this deployment configuration, etc
|
||||||
bootstack_nodeid: {get_input: bootstack_nodeid}
|
bootstack_nodeid: {get_input: bootstack_nodeid}
|
||||||
|
|
||||||
# Pacemaker
|
# Pacemaker
|
||||||
enable_load_balancer: {get_input: enable_load_balancer}
|
enable_load_balancer: {get_input: enable_load_balancer}
|
||||||
|
|
||||||
|
|
|
@ -228,9 +228,8 @@ resources:
|
||||||
SwiftStorageHieraConfig:
|
SwiftStorageHieraConfig:
|
||||||
type: OS::Heat::StructuredConfig
|
type: OS::Heat::StructuredConfig
|
||||||
properties:
|
properties:
|
||||||
group: os-apply-config
|
group: hiera
|
||||||
config:
|
config:
|
||||||
hiera:
|
|
||||||
hierarchy:
|
hierarchy:
|
||||||
- '"%{::uuid}"'
|
- '"%{::uuid}"'
|
||||||
- heat_config_%{::deploy_config_name}
|
- heat_config_%{::deploy_config_name}
|
||||||
|
@ -246,23 +245,17 @@ resources:
|
||||||
merge_behavior: deeper
|
merge_behavior: deeper
|
||||||
datafiles:
|
datafiles:
|
||||||
service_names:
|
service_names:
|
||||||
mapped_data:
|
|
||||||
service_names: {get_param: ServiceNames}
|
service_names: {get_param: ServiceNames}
|
||||||
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
||||||
service_configs:
|
service_configs:
|
||||||
mapped_data:
|
|
||||||
map_replace:
|
map_replace:
|
||||||
- {get_param: ServiceConfigSettings}
|
- {get_param: ServiceConfigSettings}
|
||||||
- values: {get_attr: [NetIpMap, net_ip_map]}
|
- values: {get_attr: [NetIpMap, net_ip_map]}
|
||||||
object_extraconfig:
|
object_extraconfig: {get_param: ObjectStorageExtraConfig}
|
||||||
mapped_data: {get_param: ObjectStorageExtraConfig}
|
extraconfig: {get_param: ExtraConfig}
|
||||||
extraconfig:
|
|
||||||
mapped_data: {get_param: ExtraConfig}
|
|
||||||
object:
|
object:
|
||||||
mapped_data: # data supplied directly to this deployment configuration, etc
|
|
||||||
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
||||||
|
|
||||||
|
|
||||||
SwiftStorageHieraDeploy:
|
SwiftStorageHieraDeploy:
|
||||||
type: OS::Heat::StructuredDeployment
|
type: OS::Heat::StructuredDeployment
|
||||||
depends_on: NetworkDeployment
|
depends_on: NetworkDeployment
|
||||||
|
|
|
@ -250,9 +250,8 @@ resources:
|
||||||
{{role}}Config:
|
{{role}}Config:
|
||||||
type: OS::Heat::StructuredConfig
|
type: OS::Heat::StructuredConfig
|
||||||
properties:
|
properties:
|
||||||
group: os-apply-config
|
group: hiera
|
||||||
config:
|
config:
|
||||||
hiera:
|
|
||||||
hierarchy:
|
hierarchy:
|
||||||
- '"%{::uuid}"'
|
- '"%{::uuid}"'
|
||||||
- heat_config_%{::deploy_config_name}
|
- heat_config_%{::deploy_config_name}
|
||||||
|
@ -268,20 +267,15 @@ resources:
|
||||||
merge_behavior: deeper
|
merge_behavior: deeper
|
||||||
datafiles:
|
datafiles:
|
||||||
service_names:
|
service_names:
|
||||||
mapped_data:
|
|
||||||
service_names: {get_param: ServiceNames}
|
service_names: {get_param: ServiceNames}
|
||||||
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
sensu::subscriptions: {get_param: MonitoringSubscriptions}
|
||||||
service_configs:
|
service_configs:
|
||||||
mapped_data:
|
|
||||||
map_replace:
|
map_replace:
|
||||||
- {get_param: ServiceConfigSettings}
|
- {get_param: ServiceConfigSettings}
|
||||||
- values: {get_attr: [NetIpMap, net_ip_map]}
|
- values: {get_attr: [NetIpMap, net_ip_map]}
|
||||||
{{role.lower()}}_extraconfig:
|
{{role.lower()}}_extraconfig: {get_param: {{role}}ExtraConfig}
|
||||||
mapped_data: {get_param: {{role}}ExtraConfig}
|
extraconfig: {get_param: ExtraConfig}
|
||||||
extraconfig:
|
|
||||||
mapped_data: {get_param: ExtraConfig}
|
|
||||||
{{role.lower()}}:
|
{{role.lower()}}:
|
||||||
mapped_data:
|
|
||||||
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
|
||||||
tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: LoggingSources}
|
tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: LoggingSources}
|
||||||
tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: LoggingGroups}
|
tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: LoggingGroups}
|
||||||
|
|
|
@ -55,7 +55,7 @@ outputs:
|
||||||
aodh::wsgi::apache::servername:
|
aodh::wsgi::apache::servername:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
|
||||||
aodh::api::service_name: 'httpd'
|
aodh::api::service_name: 'httpd'
|
||||||
|
@ -68,7 +68,7 @@ outputs:
|
||||||
aodh::api::host:
|
aodh::api::host:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, AodhApiNetwork]}
|
||||||
# NOTE: bind IP is found in Heat replacing the network name with the
|
# NOTE: bind IP is found in Heat replacing the network name with the
|
||||||
|
|
|
@ -24,7 +24,7 @@ parameters:
|
||||||
hidden: true
|
hidden: true
|
||||||
BarbicanWorkers:
|
BarbicanWorkers:
|
||||||
description: Set the number of workers for barbican::wsgi::apache
|
description: Set the number of workers for barbican::wsgi::apache
|
||||||
default: '"%{::processorcount}"'
|
default: '%{::processorcount}'
|
||||||
type: string
|
type: string
|
||||||
Debug:
|
Debug:
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -93,7 +93,7 @@ outputs:
|
||||||
barbican::wsgi::apache::servername:
|
barbican::wsgi::apache::servername:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, BarbicanApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, BarbicanApiNetwork]}
|
||||||
barbican::db::database_connection:
|
barbican::db::database_connection:
|
||||||
|
|
|
@ -75,7 +75,7 @@ outputs:
|
||||||
ceilometer::api::host:
|
ceilometer::api::host:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, CeilometerApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, CeilometerApiNetwork]}
|
||||||
ceilometer::wsgi::apache::bind_host: {get_param: [ServiceNetMap, CeilometerApiNetwork]}
|
ceilometer::wsgi::apache::bind_host: {get_param: [ServiceNetMap, CeilometerApiNetwork]}
|
||||||
|
@ -83,7 +83,7 @@ outputs:
|
||||||
ceilometer::wsgi::apache::servername:
|
ceilometer::wsgi::apache::servername:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, CeilometerApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, CeilometerApiNetwork]}
|
||||||
service_config_settings:
|
service_config_settings:
|
||||||
|
|
|
@ -119,36 +119,33 @@ outputs:
|
||||||
NETWORK: {get_param: [ServiceNetMap, CephMonNetwork]}
|
NETWORK: {get_param: [ServiceNetMap, CephMonNetwork]}
|
||||||
ceph::profile::params::public_addr: {get_param: [ServiceNetMap, CephMonNetwork]}
|
ceph::profile::params::public_addr: {get_param: [ServiceNetMap, CephMonNetwork]}
|
||||||
ceph::profile::params::client_keys:
|
ceph::profile::params::client_keys:
|
||||||
str_replace:
|
map_replace:
|
||||||
template: "{
|
- client.admin:
|
||||||
client.admin: {
|
secret: {get_param: CephAdminKey}
|
||||||
secret: 'ADMIN_KEY',
|
mode: '0600'
|
||||||
mode: '0600',
|
cap_mon: 'allow *'
|
||||||
cap_mon: 'allow *',
|
cap_osd: 'allow *'
|
||||||
cap_osd: 'allow *',
|
|
||||||
cap_mds: 'allow *'
|
cap_mds: 'allow *'
|
||||||
},
|
client.bootstrap-osd:
|
||||||
client.bootstrap-osd: {
|
secret: {get_param: CephAdminKey}
|
||||||
secret: 'ADMIN_KEY',
|
keyring_path: '/var/lib/ceph/bootstrap-osd/ceph.keyring'
|
||||||
keyring_path: '/var/lib/ceph/bootstrap-osd/ceph.keyring',
|
|
||||||
cap_mon: 'allow profile bootstrap-osd'
|
cap_mon: 'allow profile bootstrap-osd'
|
||||||
},
|
CEPH_CLIENT_KEY:
|
||||||
client.CLIENT_USER: {
|
secret: {get_param: CephClientKey}
|
||||||
secret: 'CLIENT_KEY',
|
mode: '0644'
|
||||||
mode: '0644',
|
cap_mon: 'allow r'
|
||||||
cap_mon: 'allow r',
|
cap_osd:
|
||||||
cap_osd: 'allow class-read object_prefix rbd_children, allow rwx pool=CINDER_POOL, allow rwx pool=CINDERBACKUP_POOL, allow rwx pool=NOVA_POOL, allow rwx pool=GLANCE_POOL, allow rwx pool=GNOCCHI_POOL'
|
str_replace:
|
||||||
}
|
template: 'allow class-read object_prefix rbd_children, allow rwx pool=CINDER_POOL, allow rwx pool=CINDERBACKUP_POOL, allow rwx pool=NOVA_POOL, allow rwx pool=GLANCE_POOL, allow rwx pool=GNOCCHI_POOL'
|
||||||
}"
|
|
||||||
params:
|
params:
|
||||||
CLIENT_USER: {get_param: CephClientUserName}
|
|
||||||
CLIENT_KEY: {get_param: CephClientKey}
|
|
||||||
ADMIN_KEY: {get_param: CephAdminKey}
|
|
||||||
NOVA_POOL: {get_param: NovaRbdPoolName}
|
NOVA_POOL: {get_param: NovaRbdPoolName}
|
||||||
CINDER_POOL: {get_param: CinderRbdPoolName}
|
CINDER_POOL: {get_param: CinderRbdPoolName}
|
||||||
CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
|
CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
|
||||||
GLANCE_POOL: {get_param: GlanceRbdPoolName}
|
GLANCE_POOL: {get_param: GlanceRbdPoolName}
|
||||||
GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}
|
GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}
|
||||||
|
- keys:
|
||||||
|
CEPH_CLIENT_KEY:
|
||||||
|
list_join: ['.', ['client', {get_param: CephClientUserName}]]
|
||||||
service_config_settings:
|
service_config_settings:
|
||||||
glance_api:
|
glance_api:
|
||||||
glance::api::show_multiple_locations: {if: [glance_multiple_locations, true, false]}
|
glance::api::show_multiple_locations: {if: [glance_multiple_locations, true, false]}
|
||||||
|
|
|
@ -42,7 +42,7 @@ parameters:
|
||||||
CinderWorkers:
|
CinderWorkers:
|
||||||
type: string
|
type: string
|
||||||
description: Set the number of workers for cinder::wsgi::apache
|
description: Set the number of workers for cinder::wsgi::apache
|
||||||
default: '"%{::os_workers}"'
|
default: '%{::os_workers}'
|
||||||
EnableInternalTLS:
|
EnableInternalTLS:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
@ -101,7 +101,7 @@ outputs:
|
||||||
cinder::api::bind_host:
|
cinder::api::bind_host:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, CinderApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, CinderApiNetwork]}
|
||||||
cinder::wsgi::apache::ssl: {get_param: EnableInternalTLS}
|
cinder::wsgi::apache::ssl: {get_param: EnableInternalTLS}
|
||||||
|
@ -115,7 +115,7 @@ outputs:
|
||||||
cinder::wsgi::apache::servername:
|
cinder::wsgi::apache::servername:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, CinderApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, CinderApiNetwork]}
|
||||||
-
|
-
|
||||||
|
|
|
@ -87,7 +87,7 @@ outputs:
|
||||||
tripleo::profile::base::database::mysql::bind_address:
|
tripleo::profile::base::database::mysql::bind_address:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
|
||||||
step_config: |
|
step_config: |
|
||||||
|
|
|
@ -39,6 +39,6 @@ outputs:
|
||||||
# internal_api_subnet - > IP/CIDR
|
# internal_api_subnet - > IP/CIDR
|
||||||
redis::bind: {get_param: [ServiceNetMap, RedisNetwork]}
|
redis::bind: {get_param: [ServiceNetMap, RedisNetwork]}
|
||||||
redis::port: 6379
|
redis::port: 6379
|
||||||
redis::sentinel::master_name: '"%{hiera(\"bootstrap_nodeid\")}"'
|
redis::sentinel::master_name: "%{hiera('bootstrap_nodeid')}"
|
||||||
redis::sentinel::redis_host: '"%{hiera(\"bootstrap_nodeid_ip\")}"'
|
redis::sentinel::redis_host: "%{hiera('bootstrap_nodeid_ip')}"
|
||||||
redis::sentinel::notification_script: '/usr/local/bin/redis-notifications.sh'
|
redis::sentinel::notification_script: '/usr/local/bin/redis-notifications.sh'
|
||||||
|
|
|
@ -91,7 +91,7 @@ outputs:
|
||||||
gnocchi::wsgi::apache::servername:
|
gnocchi::wsgi::apache::servername:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, GnocchiApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, GnocchiApiNetwork]}
|
||||||
tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
|
tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
|
||||||
|
@ -105,7 +105,7 @@ outputs:
|
||||||
gnocchi::api::host:
|
gnocchi::api::host:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, GnocchiApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, GnocchiApiNetwork]}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ outputs:
|
||||||
list_join:
|
list_join:
|
||||||
- ''
|
- ''
|
||||||
- - 'http://'
|
- - 'http://'
|
||||||
- '%{hiera("ironic_conductor_http_host")}:'
|
- "%{hiera('ironic_conductor_http_host')}:"
|
||||||
- {get_param: IronicIPXEPort}
|
- {get_param: IronicIPXEPort}
|
||||||
ironic::drivers::pxe::ipxe_enabled: {get_param: IronicIPXEEnabled}
|
ironic::drivers::pxe::ipxe_enabled: {get_param: IronicIPXEEnabled}
|
||||||
ironic::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
|
ironic::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
heat_template_version: 2016-04-08
|
heat_template_version: 2016-10-14
|
||||||
|
|
||||||
description: >
|
description: >
|
||||||
Keepalived service configured with Puppet
|
Keepalived service configured with Puppet
|
||||||
|
@ -36,6 +36,11 @@ parameters:
|
||||||
default: 'overcloud-keepalived'
|
default: 'overcloud-keepalived'
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
control_iface_empty: {equals : [{get_param: ControlVirtualInterface}, '']}
|
||||||
|
public_iface_empty: {equals : [{get_param: PublicVirtualInterface}, '']}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
description: Role data for the Keepalived role.
|
description: Role data for the Keepalived role.
|
||||||
|
@ -43,10 +48,19 @@ outputs:
|
||||||
service_name: keepalived
|
service_name: keepalived
|
||||||
monitoring_subscription: {get_param: MonitoringSubscriptionKeepalived}
|
monitoring_subscription: {get_param: MonitoringSubscriptionKeepalived}
|
||||||
config_settings:
|
config_settings:
|
||||||
tripleo::keepalived::control_virtual_interface: {get_param: ControlVirtualInterface}
|
map_merge:
|
||||||
tripleo::keepalived::public_virtual_interface: {get_param: PublicVirtualInterface}
|
- tripleo.keepalived.firewall_rules:
|
||||||
tripleo.keepalived.firewall_rules:
|
|
||||||
'106 keepalived vrrp':
|
'106 keepalived vrrp':
|
||||||
proto: vrrp
|
proto: vrrp
|
||||||
|
-
|
||||||
|
if:
|
||||||
|
- control_iface_empty
|
||||||
|
- {}
|
||||||
|
- tripleo::keepalived::control_virtual_interface: {get_param: ControlVirtualInterface}
|
||||||
|
-
|
||||||
|
if:
|
||||||
|
- public_iface_empty
|
||||||
|
- {}
|
||||||
|
- tripleo::keepalived::public_virtual_interface: {get_param: PublicVirtualInterface}
|
||||||
step_config: |
|
step_config: |
|
||||||
include ::tripleo::profile::base::keepalived
|
include ::tripleo::profile::base::keepalived
|
||||||
|
|
|
@ -89,7 +89,7 @@ parameters:
|
||||||
KeystoneWorkers:
|
KeystoneWorkers:
|
||||||
type: string
|
type: string
|
||||||
description: Set the number of workers for keystone::wsgi::apache
|
description: Set the number of workers for keystone::wsgi::apache
|
||||||
default: '"%{::os_workers}"'
|
default: '%{::os_workers}'
|
||||||
MonitoringSubscriptionKeystone:
|
MonitoringSubscriptionKeystone:
|
||||||
default: 'overcloud-keystone'
|
default: 'overcloud-keystone'
|
||||||
type: string
|
type: string
|
||||||
|
@ -195,13 +195,13 @@ outputs:
|
||||||
keystone::wsgi::apache::servername:
|
keystone::wsgi::apache::servername:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
|
||||||
keystone::wsgi::apache::servername_admin:
|
keystone::wsgi::apache::servername_admin:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
|
||||||
keystone::wsgi::apache::workers: {get_param: KeystoneWorkers}
|
keystone::wsgi::apache::workers: {get_param: KeystoneWorkers}
|
||||||
|
@ -219,13 +219,13 @@ outputs:
|
||||||
keystone::admin_bind_host:
|
keystone::admin_bind_host:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
|
||||||
keystone::public_bind_host:
|
keystone::public_bind_host:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
|
||||||
# NOTE: bind IP is found in Heat replacing the network name with the
|
# NOTE: bind IP is found in Heat replacing the network name with the
|
||||||
|
|
|
@ -84,16 +84,12 @@ outputs:
|
||||||
neutron::rabbit_port: {get_param: RabbitClientPort}
|
neutron::rabbit_port: {get_param: RabbitClientPort}
|
||||||
neutron::dhcp_agents_per_network: {get_param: NeutronDhcpAgentsPerNetwork}
|
neutron::dhcp_agents_per_network: {get_param: NeutronDhcpAgentsPerNetwork}
|
||||||
neutron::core_plugin: {get_param: NeutronCorePlugin}
|
neutron::core_plugin: {get_param: NeutronCorePlugin}
|
||||||
neutron::service_plugins:
|
neutron::service_plugins: {get_param: NeutronServicePlugins}
|
||||||
str_replace:
|
|
||||||
template: PLUGINS
|
|
||||||
params:
|
|
||||||
PLUGINS: {get_param: NeutronServicePlugins}
|
|
||||||
neutron::debug: {get_param: Debug}
|
neutron::debug: {get_param: Debug}
|
||||||
neutron::purge_config: {get_param: EnableConfigPurge}
|
neutron::purge_config: {get_param: EnableConfigPurge}
|
||||||
neutron::allow_overlapping_ips: true
|
neutron::allow_overlapping_ips: true
|
||||||
neutron::rabbit_heartbeat_timeout_threshold: 60
|
neutron::rabbit_heartbeat_timeout_threshold: 60
|
||||||
neutron::host: '"%{::fqdn}"' #NOTE: extra quoting is needed
|
neutron::host: '%{::fqdn}'
|
||||||
neutron::db::database_db_max_retries: -1
|
neutron::db::database_db_max_retries: -1
|
||||||
neutron::db::database_max_retries: -1
|
neutron::db::database_max_retries: -1
|
||||||
neutron::global_physnet_mtu: {get_param: NeutronGlobalPhysnetMtu}
|
neutron::global_physnet_mtu: {get_param: NeutronGlobalPhysnetMtu}
|
||||||
|
|
|
@ -72,6 +72,6 @@ outputs:
|
||||||
neutron::agents::metadata::auth_password: {get_param: NeutronPassword}
|
neutron::agents::metadata::auth_password: {get_param: NeutronPassword}
|
||||||
neutron::agents::metadata::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
|
neutron::agents::metadata::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
|
||||||
neutron::agents::metadata::auth_tenant: 'service'
|
neutron::agents::metadata::auth_tenant: 'service'
|
||||||
neutron::agents::metadata::metadata_ip: '"%{hiera(\"nova_metadata_vip\")}"'
|
neutron::agents::metadata::metadata_ip: "%{hiera('nova_metadata_vip')}"
|
||||||
step_config: |
|
step_config: |
|
||||||
include tripleo::profile::base::neutron::metadata
|
include tripleo::profile::base::neutron::metadata
|
||||||
|
|
|
@ -94,21 +94,9 @@ outputs:
|
||||||
- neutron::agents::ml2::ovs::l2_population: {get_param: NeutronEnableL2Pop}
|
- neutron::agents::ml2::ovs::l2_population: {get_param: NeutronEnableL2Pop}
|
||||||
neutron::agents::ml2::ovs::enable_distributed_routing: {get_param: NeutronEnableDVR}
|
neutron::agents::ml2::ovs::enable_distributed_routing: {get_param: NeutronEnableDVR}
|
||||||
neutron::agents::ml2::ovs::arp_responder: {get_param: NeutronEnableARPResponder}
|
neutron::agents::ml2::ovs::arp_responder: {get_param: NeutronEnableARPResponder}
|
||||||
neutron::agents::ml2::ovs::bridge_mappings:
|
neutron::agents::ml2::ovs::bridge_mappings: {get_param: NeutronBridgeMappings}
|
||||||
str_replace:
|
neutron::agents::ml2::ovs::tunnel_types: {get_param: NeutronTunnelTypes}
|
||||||
template: MAPPINGS
|
neutron::agents::ml2::ovs::extensions: {get_param: NeutronAgentExtensions}
|
||||||
params:
|
|
||||||
MAPPINGS: {get_param: NeutronBridgeMappings}
|
|
||||||
neutron::agents::ml2::ovs::tunnel_types:
|
|
||||||
str_replace:
|
|
||||||
template: TYPES
|
|
||||||
params:
|
|
||||||
TYPES: {get_param: NeutronTunnelTypes}
|
|
||||||
neutron::agents::ml2::ovs::extensions:
|
|
||||||
str_replace:
|
|
||||||
template: AGENT_EXTENSIONS
|
|
||||||
params:
|
|
||||||
AGENT_EXTENSIONS: {get_param: NeutronAgentExtensions}
|
|
||||||
# NOTE: bind IP is found in Heat replacing the network name with the
|
# NOTE: bind IP is found in Heat replacing the network name with the
|
||||||
# local node IP for the given network; replacement examples
|
# local node IP for the given network; replacement examples
|
||||||
# (eg. for internal_api):
|
# (eg. for internal_api):
|
||||||
|
|
|
@ -83,46 +83,14 @@ outputs:
|
||||||
config_settings:
|
config_settings:
|
||||||
map_merge:
|
map_merge:
|
||||||
- get_attr: [NeutronBase, role_data, config_settings]
|
- get_attr: [NeutronBase, role_data, config_settings]
|
||||||
- neutron::plugins::ml2::mechanism_drivers:
|
- neutron::plugins::ml2::mechanism_drivers: {get_param: NeutronMechanismDrivers}
|
||||||
str_replace:
|
neutron::plugins::ml2::type_drivers: {get_param: NeutronTypeDrivers}
|
||||||
template: MECHANISMS
|
neutron::plugins::ml2::flat_networks: {get_param: NeutronFlatNetworks}
|
||||||
params:
|
neutron::plugins::ml2::extension_drivers: {get_param: NeutronPluginExtensions}
|
||||||
MECHANISMS: {get_param: NeutronMechanismDrivers}
|
neutron::plugins::ml2::network_vlan_ranges: {get_param: NeutronNetworkVLANRanges}
|
||||||
neutron::plugins::ml2::type_drivers:
|
neutron::plugins::ml2::tunnel_id_ranges: {get_param: NeutronTunnelIdRanges}
|
||||||
str_replace:
|
neutron::plugins::ml2::vni_ranges: {get_param: NeutronVniRanges}
|
||||||
template: DRIVERS
|
neutron::plugins::ml2::tenant_network_types: {get_param: NeutronNetworkType}
|
||||||
params:
|
|
||||||
DRIVERS: {get_param: NeutronTypeDrivers}
|
|
||||||
neutron::plugins::ml2::flat_networks:
|
|
||||||
str_replace:
|
|
||||||
template: NETWORKS
|
|
||||||
params:
|
|
||||||
NETWORKS: {get_param: NeutronFlatNetworks}
|
|
||||||
neutron::plugins::ml2::extension_drivers:
|
|
||||||
str_replace:
|
|
||||||
template: PLUGIN_EXTENSIONS
|
|
||||||
params:
|
|
||||||
PLUGIN_EXTENSIONS: {get_param: NeutronPluginExtensions}
|
|
||||||
neutron::plugins::ml2::network_vlan_ranges:
|
|
||||||
str_replace:
|
|
||||||
template: RANGES
|
|
||||||
params:
|
|
||||||
RANGES: {get_param: NeutronNetworkVLANRanges}
|
|
||||||
neutron::plugins::ml2::tunnel_id_ranges:
|
|
||||||
str_replace:
|
|
||||||
template: RANGES
|
|
||||||
params:
|
|
||||||
RANGES: {get_param: NeutronTunnelIdRanges}
|
|
||||||
neutron::plugins::ml2::vni_ranges:
|
|
||||||
str_replace:
|
|
||||||
template: RANGES
|
|
||||||
params:
|
|
||||||
RANGES: {get_param: NeutronVniRanges}
|
|
||||||
neutron::plugins::ml2::tenant_network_types:
|
|
||||||
str_replace:
|
|
||||||
template: TYPES
|
|
||||||
params:
|
|
||||||
TYPES: {get_param: NeutronNetworkType}
|
|
||||||
neutron::plugins::ml2::supported_pci_vendor_devs: {get_param: NeutronSupportedPCIVendorDevs}
|
neutron::plugins::ml2::supported_pci_vendor_devs: {get_param: NeutronSupportedPCIVendorDevs}
|
||||||
|
|
||||||
step_config: |
|
step_config: |
|
||||||
|
|
|
@ -87,8 +87,8 @@ outputs:
|
||||||
map_merge:
|
map_merge:
|
||||||
- get_attr: [NovaBase, role_data, config_settings]
|
- get_attr: [NovaBase, role_data, config_settings]
|
||||||
- get_attr: [ApacheServiceBase, role_data, config_settings]
|
- get_attr: [ApacheServiceBase, role_data, config_settings]
|
||||||
- nova::cron::archive_deleted_rows::hour: '"*/12"'
|
- nova::cron::archive_deleted_rows::hour: '*/12'
|
||||||
nova::cron::archive_deleted_rows::destination: '"/dev/null"'
|
nova::cron::archive_deleted_rows::destination: '/dev/null'
|
||||||
tripleo.nova_api.firewall_rules:
|
tripleo.nova_api.firewall_rules:
|
||||||
'113 nova_api':
|
'113 nova_api':
|
||||||
dport:
|
dport:
|
||||||
|
@ -108,7 +108,7 @@ outputs:
|
||||||
nova::api::api_bind_address:
|
nova::api::api_bind_address:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, NovaApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, NovaApiNetwork]}
|
||||||
nova::api::service_name: 'httpd'
|
nova::api::service_name: 'httpd'
|
||||||
|
@ -122,7 +122,7 @@ outputs:
|
||||||
nova::wsgi::apache::servername:
|
nova::wsgi::apache::servername:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, NovaApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, NovaApiNetwork]}
|
||||||
nova::api::neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
|
nova::api::neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
|
||||||
|
|
|
@ -109,7 +109,7 @@ outputs:
|
||||||
nova::network::neutron::neutron_auth_url: {get_param: [EndpointMap, KeystoneV3Admin, uri]}
|
nova::network::neutron::neutron_auth_url: {get_param: [EndpointMap, KeystoneV3Admin, uri]}
|
||||||
nova::rabbit_heartbeat_timeout_threshold: 60
|
nova::rabbit_heartbeat_timeout_threshold: 60
|
||||||
nova::cinder_catalog_info: 'volumev2:cinderv2:internalURL'
|
nova::cinder_catalog_info: 'volumev2:cinderv2:internalURL'
|
||||||
nova::host: '"%{::fqdn}"' # NOTE: extra quoting is needed.
|
nova::host: '%{::fqdn}'
|
||||||
nova::notify_on_state_change: 'vm_and_task_state'
|
nova::notify_on_state_change: 'vm_and_task_state'
|
||||||
nova::notification_driver: messagingv2
|
nova::notification_driver: messagingv2
|
||||||
nova::network::neutron::neutron_auth_type: 'v3password'
|
nova::network::neutron::neutron_auth_type: 'v3password'
|
||||||
|
|
|
@ -52,7 +52,7 @@ parameters:
|
||||||
For different formats, refer to the nova.conf documentation for
|
For different formats, refer to the nova.conf documentation for
|
||||||
pci_passthrough_whitelist configuration
|
pci_passthrough_whitelist configuration
|
||||||
type: json
|
type: json
|
||||||
default: ''
|
default: {}
|
||||||
NovaVcpuPinSet:
|
NovaVcpuPinSet:
|
||||||
description: >
|
description: >
|
||||||
A list or range of physical CPU cores to reserve for virtual machine
|
A list or range of physical CPU cores to reserve for virtual machine
|
||||||
|
@ -97,11 +97,7 @@ outputs:
|
||||||
map_merge:
|
map_merge:
|
||||||
- get_attr: [NovaBase, role_data, config_settings]
|
- get_attr: [NovaBase, role_data, config_settings]
|
||||||
- nova::compute::libvirt::manage_libvirt_services: false
|
- nova::compute::libvirt::manage_libvirt_services: false
|
||||||
nova::compute::pci_passthrough:
|
nova::compute::pci_passthrough: {get_param: NovaPCIPassthrough}
|
||||||
str_replace:
|
|
||||||
template: "'JSON_PARAM'"
|
|
||||||
params:
|
|
||||||
JSON_PARAM: {get_param: NovaPCIPassthrough}
|
|
||||||
nova::compute::vcpu_pin_set: {get_param: NovaVcpuPinSet}
|
nova::compute::vcpu_pin_set: {get_param: NovaVcpuPinSet}
|
||||||
nova::compute::reserved_host_memory: {get_param: NovaReservedHostMemory}
|
nova::compute::reserved_host_memory: {get_param: NovaReservedHostMemory}
|
||||||
# we manage migration in nova common puppet profile
|
# we manage migration in nova common puppet profile
|
||||||
|
@ -117,7 +113,7 @@ outputs:
|
||||||
- '.'
|
- '.'
|
||||||
- - 'client'
|
- - 'client'
|
||||||
- {get_param: CephClientUserName}
|
- {get_param: CephClientUserName}
|
||||||
nova::compute::rbd::libvirt_rbd_secret_uuid: '"%{hiera(\"ceph::profile::params::fsid\")}"'
|
nova::compute::rbd::libvirt_rbd_secret_uuid: "%{hiera('ceph::profile::params::fsid')}"
|
||||||
nova::compute::instance_usage_audit: true
|
nova::compute::instance_usage_audit: true
|
||||||
nova::compute::instance_usage_audit_period: 'hour'
|
nova::compute::instance_usage_audit_period: 'hour'
|
||||||
nova::compute::rbd::ephemeral_storage: {get_param: NovaEnableRbdBackend}
|
nova::compute::rbd::ephemeral_storage: {get_param: NovaEnableRbdBackend}
|
||||||
|
|
|
@ -40,7 +40,7 @@ outputs:
|
||||||
- tripleo::profile::pacemaker::database::mysql::bind_address:
|
- tripleo::profile::pacemaker::database::mysql::bind_address:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
|
||||||
# NOTE: bind IP is found in Heat replacing the network name with the
|
# NOTE: bind IP is found in Heat replacing the network name with the
|
||||||
|
|
|
@ -55,7 +55,7 @@ outputs:
|
||||||
panko::wsgi::apache::servername:
|
panko::wsgi::apache::servername:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, PankoApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, PankoApiNetwork]}
|
||||||
panko::api::service_name: 'httpd'
|
panko::api::service_name: 'httpd'
|
||||||
|
@ -68,7 +68,7 @@ outputs:
|
||||||
panko::api::host:
|
panko::api::host:
|
||||||
str_replace:
|
str_replace:
|
||||||
template:
|
template:
|
||||||
'"%{::fqdn_$NETWORK}"'
|
'%{::fqdn_$NETWORK}'
|
||||||
params:
|
params:
|
||||||
$NETWORK: {get_param: [ServiceNetMap, PankoApiNetwork]}
|
$NETWORK: {get_param: [ServiceNetMap, PankoApiNetwork]}
|
||||||
# NOTE: bind IP is found in Heat replacing the network name with the
|
# NOTE: bind IP is found in Heat replacing the network name with the
|
||||||
|
|
Loading…
Reference in New Issue