Browse Source
Change-Id: I1ddefb7b6a6e1c7b0b76589b9f8f1b99776d39e8 Depends-On: I115090679bd2577cdc3998ab3cc97f9581e5e18a bp designate-supportchanges/98/518998/10
23 changed files with 959 additions and 0 deletions
@ -0,0 +1,111 @@
|
||||
heat_template_version: queens |
||||
|
||||
description: > |
||||
OpenStack Designate API service. |
||||
|
||||
parameters: |
||||
ServiceData: |
||||
default: {} |
||||
description: Dictionary packing service data |
||||
type: json |
||||
ServiceNetMap: |
||||
default: {} |
||||
description: Mapping of service_name -> network name. Typically set |
||||
via parameter_defaults in the resource registry. This |
||||
mapping overrides those in ServiceNetMapDefaults. |
||||
type: json |
||||
DefaultPasswords: |
||||
default: {} |
||||
type: json |
||||
RoleName: |
||||
default: '' |
||||
description: Role name on which the service is applied |
||||
type: string |
||||
RoleParameters: |
||||
default: {} |
||||
description: Parameters specific to the role |
||||
type: json |
||||
EndpointMap: |
||||
default: {} |
||||
description: Mapping of service endpoint -> protocol. Typically set |
||||
via parameter_defaults in the resource registry. |
||||
type: json |
||||
DesignatePassword: |
||||
description: The password for the Designate's database account. |
||||
type: string |
||||
hidden: true |
||||
KeystoneRegion: |
||||
type: string |
||||
default: 'regionOne' |
||||
description: Keystone region for endpoint |
||||
MonitoringSubscriptionDesignateApi: |
||||
default: 'overcloud-designate-api' |
||||
type: string |
||||
DesignateApiLoggingSource: |
||||
type: json |
||||
default: |
||||
tag: openstack.designate.api |
||||
path: /var/log/designate/api.log |
||||
DesignateWorkers: |
||||
default: 0 |
||||
description: Number of workers for Designate services. |
||||
type: number |
||||
|
||||
conditions: |
||||
designate_workers_zero: {equals : [{get_param: DesignateWorkers}, 0]} |
||||
|
||||
resources: |
||||
|
||||
DesignateBase: |
||||
type: ./designate-base.yaml |
||||
properties: |
||||
ServiceData: {get_param: ServiceData} |
||||
ServiceNetMap: {get_param: ServiceNetMap} |
||||
DefaultPasswords: {get_param: DefaultPasswords} |
||||
EndpointMap: {get_param: EndpointMap} |
||||
RoleName: {get_param: RoleName} |
||||
RoleParameters: {get_param: RoleParameters} |
||||
|
||||
outputs: |
||||
role_data: |
||||
description: Role data for the Designate API service. |
||||
value: |
||||
service_name: designate_api |
||||
monitoring_subscription: {get_param: MonitoringSubscriptionDesignateApi} |
||||
logging_source: {get_param: DesignateApiLoggingSource} |
||||
logging_groups: |
||||
- designate |
||||
config_settings: |
||||
map_merge: |
||||
- get_attr: [DesignateBase, role_data, config_settings] |
||||
- designate::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] } |
||||
designate::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]} |
||||
designate::keystone::authtoken::project_name: 'service' |
||||
designate::keystone::authtoken::password: {get_param: DesignatePassword} |
||||
tripleo::profile::base::designate::api::listen_ip: |
||||
str_replace: |
||||
template: |
||||
"%{hiera('$NETWORK')}" |
||||
params: |
||||
$NETWORK: {get_param: [ServiceNetMap, DesignateApiNetwork]} |
||||
tripleo::profile::base::designate::api::listen_port: 9001 |
||||
tripleo.designate_api.firewall_rules: |
||||
'139 designate api': |
||||
dport: |
||||
- 9001 |
||||
- 13001 |
||||
- |
||||
if: |
||||
- designate_workers_zero |
||||
- {} |
||||
- designate::api::workers: {get_param: DesignateWorkers} |
||||
step_config: | |
||||
include tripleo::profile::base::designate::api |
||||
service_config_settings: |
||||
keystone: |
||||
designate::keystone::auth::tenant: 'service' |
||||
designate::keystone::auth::public_url: {get_param: [EndpointMap, DesignatePublic, uri]} |
||||
designate::keystone::auth::internal_url: { get_param: [ EndpointMap, DesignateInternal, uri ] } |
||||
designate::keystone::auth::admin_url: { get_param: [ EndpointMap, DesignateAdmin, uri ] } |
||||
designate::keystone::auth::password: {get_param: DesignatePassword} |
||||
designate::keystone::auth::region: {get_param: KeystoneRegion} |
@ -0,0 +1,92 @@
|
||||
heat_template_version: queens |
||||
|
||||
description: > |
||||
OpenStack Designate base service. Shared for all Designate services |
||||
|
||||
parameters: |
||||
ServiceData: |
||||
default: {} |
||||
description: Dictionary packing service data |
||||
type: json |
||||
ServiceNetMap: |
||||
default: {} |
||||
description: Mapping of service_name -> network name. Typically set |
||||
via parameter_defaults in the resource registry. This |
||||
mapping overrides those in ServiceNetMapDefaults. |
||||
type: json |
||||
DefaultPasswords: |
||||
default: {} |
||||
type: json |
||||
RoleName: |
||||
default: '' |
||||
description: Role name on which the service is applied |
||||
type: string |
||||
RoleParameters: |
||||
default: {} |
||||
description: Parameters specific to the role |
||||
type: json |
||||
EndpointMap: |
||||
default: {} |
||||
description: Mapping of service endpoint -> protocol. Typically set |
||||
via parameter_defaults in the resource registry. |
||||
type: json |
||||
Debug: |
||||
type: boolean |
||||
default: false |
||||
description: Set to True to enable debugging on all services. |
||||
DesignateDebug: |
||||
default: '' |
||||
description: Set to True to enable debugging Designate services. |
||||
type: string |
||||
EnableConfigPurge: |
||||
type: boolean |
||||
default: false |
||||
description: > |
||||
Remove configuration that is not generated by TripleO. Used to avoid |
||||
configuration remnants after upgrades. |
||||
RabbitPassword: |
||||
description: The password for RabbitMQ |
||||
type: string |
||||
hidden: true |
||||
RabbitUserName: |
||||
default: guest |
||||
description: The username for RabbitMQ |
||||
type: string |
||||
RabbitClientUseSSL: |
||||
default: false |
||||
description: > |
||||
Rabbit client subscriber parameter to specify |
||||
an SSL connection to the RabbitMQ host. |
||||
type: string |
||||
RabbitClientPort: |
||||
default: 5672 |
||||
description: Set rabbit subscriber port, change this if using SSL |
||||
type: number |
||||
NotificationDriver: |
||||
type: string |
||||
default: 'messagingv2' |
||||
description: Driver or drivers to handle sending notifications. |
||||
constraints: |
||||
- allowed_values: [ 'messagingv2', 'noop' ] |
||||
|
||||
conditions: |
||||
service_debug_unset: {equals : [{get_param: DesignateDebug}, '']} |
||||
|
||||
outputs: |
||||
role_data: |
||||
description: Base role data for Designate services |
||||
value: |
||||
service_name: designate_base |
||||
config_settings: |
||||
designate::debug: |
||||
if: |
||||
- service_debug_unset |
||||
- {get_param: Debug } |
||||
- {get_param: DesignateDebug } |
||||
designate::purge_config: {get_param: EnableConfigPurge} |
||||
designate::notification_driver: {get_param: NotificationDriver} |
||||
designate::rabbit_use_ssl: {get_param: RabbitClientUseSSL} |
||||
designate::rabbit_userid: {get_param: RabbitUserName} |
||||
designate::rabbit_password: {get_param: RabbitPassword} |
||||
designate::rabbit_port: {get_param: RabbitClientPort} |
||||
|
@ -0,0 +1,100 @@
|
||||
heat_template_version: queens |
||||
|
||||
description: > |
||||
OpenStack Designate Central service configured with Puppet |
||||
parameters: |
||||
ServiceData: |
||||
default: {} |
||||
description: Dictionary packing service data |
||||
type: json |
||||
ServiceNetMap: |
||||
default: {} |
||||
description: Mapping of service_name -> network name. Typically set |
||||
via parameter_defaults in the resource registry. This |
||||
mapping overrides those in ServiceNetMapDefaults. |
||||
type: json |
||||
DefaultPasswords: |
||||
default: {} |
||||
type: json |
||||
RoleName: |
||||
default: '' |
||||
description: Role name on which the service is applied |
||||
type: string |
||||
RoleParameters: |
||||
default: {} |
||||
description: Parameters specific to the role |
||||
type: json |
||||
EndpointMap: |
||||
default: {} |
||||
description: Mapping of service endpoint -> protocol. Typically set |
||||
via parameter_defaults in the resource registry. |
||||
type: json |
||||
MonitoringSubscriptionDesignateCentral: |
||||
default: 'overcloud-designate-central' |
||||
type: string |
||||
DesignateCentralLoggingSource: |
||||
type: json |
||||
default: |
||||
tag: openstack.designate.central |
||||
path: /var/log/designate/designate-central.log |
||||
DesignateWorkers: |
||||
default: 0 |
||||
description: Number of workers for Designate services. |
||||
type: number |
||||
DesignatePassword: |
||||
description: The password for the Designate's database account. |
||||
type: string |
||||
hidden: true |
||||
|
||||
conditions: |
||||
designate_workers_zero: {equals : [{get_param: DesignateWorkers}, 0]} |
||||
|
||||
resources: |
||||
DesignateBase: |
||||
type: ./designate-base.yaml |
||||
properties: |
||||
ServiceData: {get_param: ServiceData} |
||||
ServiceNetMap: {get_param: ServiceNetMap} |
||||
DefaultPasswords: {get_param: DefaultPasswords} |
||||
EndpointMap: {get_param: EndpointMap} |
||||
RoleName: {get_param: RoleName} |
||||
RoleParameters: {get_param: RoleParameters} |
||||
|
||||
outputs: |
||||
role_data: |
||||
description: Role data for the Designate Central service. |
||||
value: |
||||
service_name: designate_central |
||||
monitoring_subscription: {get_param: MonitoringSubscriptionDesignateCentral} |
||||
logging_source: {get_param: DesignateCentralLoggingSource} |
||||
logging_groups: |
||||
- designate |
||||
config_settings: |
||||
map_merge: |
||||
- get_attr: [DesignateBase, role_data, config_settings] |
||||
- designate::db::database_connection: |
||||
make_url: |
||||
scheme: {get_param: [EndpointMap, MysqlInternal, protocol]} |
||||
username: designate |
||||
password: {get_param: DesignatePassword} |
||||
host: {get_param: [EndpointMap, MysqlInternal, host]} |
||||
path: /designate |
||||
query: |
||||
read_default_file: /etc/my.cnf.d/tripleo.cnf |
||||
read_default_group: tripleo |
||||
- |
||||
if: |
||||
- designate_workers_zero |
||||
- {} |
||||
- designate::central::workers: {get_param: DesignateWorkers} |
||||
step_config: | |
||||
include tripleo::profile::base::designate::central |
||||
service_config_settings: |
||||
mysql: |
||||
designate::db::mysql::password: {get_param: DesignatePassword} |
||||
designate::db::mysql::user: designate |
||||
designate::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]} |
||||
designate::db::mysql::dbname: designate |
||||
designate::db::mysql::allowed_hosts: |
||||
- '%' |
||||
- "%{hiera('mysql_bind_host')}" |
@ -0,0 +1,100 @@
|
||||
heat_template_version: queens |
||||
|
||||
description: > |
||||
OpenStack Designate MiniDNS service configured with Puppet |
||||
parameters: |
||||
ServiceData: |
||||
default: {} |
||||
description: Dictionary packing service data |
||||
type: json |
||||
ServiceNetMap: |
||||
default: {} |
||||
description: Mapping of service_name -> network name. Typically set |
||||
via parameter_defaults in the resource registry. This |
||||
mapping overrides those in ServiceNetMapDefaults. |
||||
type: json |
||||
DefaultPasswords: |
||||
default: {} |
||||
type: json |
||||
RoleName: |
||||
default: '' |
||||
description: Role name on which the service is applied |
||||
type: string |
||||
RoleParameters: |
||||
default: {} |
||||
description: Parameters specific to the role |
||||
type: json |
||||
EndpointMap: |
||||
default: {} |
||||
description: Mapping of service endpoint -> protocol. Typically set |
||||
via parameter_defaults in the resource registry. |
||||
type: json |
||||
MonitoringSubscriptionDesignateMiniDNS: |
||||
default: 'overcloud-designate-mdns' |
||||
type: string |
||||
DesignateMiniDNSLoggingSource: |
||||
type: json |
||||
default: |
||||
tag: openstack.designate.mdns |
||||
path: /var/log/designate/designate-mdns.log |
||||
DesignateWorkers: |
||||
default: 0 |
||||
description: Number of workers for Designate services. |
||||
type: number |
||||
DesignatePassword: |
||||
description: The password for the Designate's database account. |
||||
type: string |
||||
hidden: true |
||||
|
||||
conditions: |
||||
designate_workers_zero: {equals : [{get_param: DesignateWorkers}, 0]} |
||||
|
||||
resources: |
||||
DesignateBase: |
||||
type: ./designate-base.yaml |
||||
properties: |
||||
ServiceData: {get_param: ServiceData} |
||||
ServiceNetMap: {get_param: ServiceNetMap} |
||||
DefaultPasswords: {get_param: DefaultPasswords} |
||||
EndpointMap: {get_param: EndpointMap} |
||||
RoleName: {get_param: RoleName} |
||||
RoleParameters: {get_param: RoleParameters} |
||||
|
||||
outputs: |
||||
role_data: |
||||
description: Role data for the Designate MiniDNS service. |
||||
value: |
||||
service_name: designate_mdns |
||||
monitoring_subscription: {get_param: MonitoringSubscriptionDesignateMiniDNS} |
||||
logging_source: {get_param: DesignateMiniDNSLoggingSource} |
||||
logging_groups: |
||||
- designate |
||||
config_settings: |
||||
map_merge: |
||||
- get_attr: [DesignateBase, role_data, config_settings] |
||||
- designate::db::database_connection: |
||||
make_url: |
||||
scheme: {get_param: [EndpointMap, MysqlInternal, protocol]} |
||||
username: designate |
||||
password: {get_param: DesignatePassword} |
||||
host: {get_param: [EndpointMap, MysqlInternal, host]} |
||||
path: /designate |
||||
query: |
||||
read_default_file: /etc/my.cnf.d/tripleo.cnf |
||||
read_default_group: tripleo |
||||
- |
||||
if: |
||||
- designate_workers_zero |
||||
- {} |
||||
- designate::mdns::workers: {get_param: DesignateWorkers} |
||||
step_config: | |
||||
include tripleo::profile::base::designate::mdns |
||||
service_config_settings: |
||||
mysql: |
||||
designate::db::mysql::password: {get_param: DesignatePassword} |
||||
designate::db::mysql::user: designate |
||||
designate::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]} |
||||
designate::db::mysql::dbname: designate |
||||
designate::db::mysql::allowed_hosts: |
||||
- '%' |
||||
- "%{hiera('mysql_bind_host')}" |
@ -0,0 +1,77 @@
|
||||
heat_template_version: queens |
||||
|
||||
description: > |
||||
OpenStack Designate Producer service configured with Puppet |
||||
parameters: |
||||
ServiceData: |
||||
default: {} |
||||
description: Dictionary packing service data |
||||
type: json |
||||
ServiceNetMap: |
||||
default: {} |
||||
description: Mapping of service_name -> network name. Typically set |
||||
via parameter_defaults in the resource registry. This |
||||
mapping overrides those in ServiceNetMapDefaults. |
||||
type: json |
||||
DefaultPasswords: |
||||
default: {} |
||||
type: json |
||||
RoleName: |
||||
default: '' |
||||
description: Role name on which the service is applied |
||||
type: string |
||||
RoleParameters: |
||||
default: {} |
||||
description: Parameters specific to the role |
||||
type: json |
||||
EndpointMap: |
||||
default: {} |
||||
description: Mapping of service endpoint -> protocol. Typically set |
||||
via parameter_defaults in the resource registry. |
||||
type: json |
||||
MonitoringSubscriptionDesignateProducer: |
||||
default: 'overcloud-designate-producer' |
||||
type: string |
||||
DesignateProducerLoggingSource: |
||||
type: json |
||||
default: |
||||
tag: openstack.designate.producer |
||||
path: /var/log/designate/designate-producer.log |
||||
DesignateWorkers: |
||||
default: 0 |
||||
description: Number of workers for Designate services. |
||||
type: number |
||||
|
||||
conditions: |
||||
designate_workers_zero: {equals : [{get_param: DesignateWorkers}, 0]} |
||||
|
||||
resources: |
||||
DesignateBase: |
||||
type: ./designate-base.yaml |
||||
properties: |
||||
ServiceData: {get_param: ServiceData} |
||||
ServiceNetMap: {get_param: ServiceNetMap} |
||||
DefaultPasswords: {get_param: DefaultPasswords} |
||||
EndpointMap: {get_param: EndpointMap} |
||||
RoleName: {get_param: RoleName} |
||||
RoleParameters: {get_param: RoleParameters} |
||||
|
||||
outputs: |
||||
role_data: |
||||
description: Role data for the Designate Producer service. |
||||
value: |
||||
service_name: designate_producer |
||||
monitoring_subscription: {get_param: MonitoringSubscriptionDesignateProducer} |
||||
logging_source: {get_param: DesignateProducerLoggingSource} |
||||
logging_groups: |
||||
- designate |
||||
config_settings: |
||||
map_merge: |
||||
- get_attr: [DesignateBase, role_data, config_settings] |
||||
- |
||||
if: |
||||
- designate_workers_zero |
||||
- {} |
||||
- designate::producer::workers: {get_param: DesignateWorkers} |
||||
step_config: | |
||||
include tripleo::profile::base::designate::producer |
@ -0,0 +1,77 @@
|
||||
heat_template_version: queens |
||||
|
||||
description: > |
||||
OpenStack Designate Sink service configured with Puppet |
||||
parameters: |
||||
ServiceData: |
||||
default: {} |
||||
description: Dictionary packing service data |
||||
type: json |
||||
ServiceNetMap: |
||||
default: {} |
||||
description: Mapping of service_name -> network name. Typically set |
||||
via parameter_defaults in the resource registry. This |
||||
mapping overrides those in ServiceNetMapDefaults. |
||||
type: json |
||||
DefaultPasswords: |
||||
default: {} |
||||
type: json |
||||
RoleName: |
||||
default: '' |
||||
description: Role name on which the service is applied |
||||
type: string |
||||
RoleParameters: |
||||
default: {} |
||||
description: Parameters specific to the role |
||||
type: json |
||||
EndpointMap: |
||||
default: {} |
||||
description: Mapping of service endpoint -> protocol. Typically set |
||||
via parameter_defaults in the resource registry. |
||||
type: json |
||||
MonitoringSubscriptionDesignateSink: |
||||
default: 'overcloud-designate-sink' |
||||
type: string |
||||
DesignateSinkLoggingSource: |
||||
type: json |
||||
default: |
||||
tag: openstack.designate.sink |
||||
path: /var/log/designate/designate-sink.log |
||||
DesignateWorkers: |
||||
default: 0 |
||||
description: Number of workers for Designate services. |
||||
type: number |
||||
|
||||
conditions: |
||||
designate_workers_zero: {equals : [{get_param: DesignateWorkers}, 0]} |
||||
|
||||
resources: |
||||
DesignateBase: |
||||
type: ./designate-base.yaml |
||||
properties: |
||||
ServiceData: {get_param: ServiceData} |
||||
ServiceNetMap: {get_param: ServiceNetMap} |
||||
DefaultPasswords: {get_param: DefaultPasswords} |
||||
EndpointMap: {get_param: EndpointMap} |
||||
RoleName: {get_param: RoleName} |
||||
RoleParameters: {get_param: RoleParameters} |
||||
|
||||
outputs: |
||||
role_data: |
||||
description: Role data for the Designate Sink service. |
||||
value: |
||||
service_name: designate_sink |
||||
monitoring_subscription: {get_param: MonitoringSubscriptionDesignateSink} |
||||
logging_source: {get_param: DesignateSinkLoggingSource} |
||||
logging_groups: |
||||
- designate |
||||
config_settings: |
||||
map_merge: |
||||
- get_attr: [DesignateBase, role_data, config_settings] |
||||
- |
||||
if: |
||||
- designate_workers_zero |
||||
- {} |
||||
- designate::sink::workers: {get_param: DesignateWorkers} |
||||
step_config: | |
||||
include tripleo::profile::base::designate::sink |
@ -0,0 +1,83 @@
|
||||
heat_template_version: queens |
||||
|
||||
description: > |
||||
OpenStack Designate Worker service configured with Puppet |
||||
parameters: |
||||
ServiceData: |
||||
default: {} |
||||
description: Dictionary packing service data |
||||
type: json |
||||
ServiceNetMap: |
||||
default: {} |
||||
description: Mapping of service_name -> network name. Typically set |
||||
via parameter_defaults in the resource registry. This |
||||
mapping overrides those in ServiceNetMapDefaults. |
||||
type: json |
||||
DefaultPasswords: |
||||
default: {} |
||||
type: json |
||||
RoleName: |
||||
default: '' |
||||
description: Role name on which the service is applied |
||||
type: string |
||||
RoleParameters: |
||||
default: {} |
||||
description: Parameters specific to the role |
||||
type: json |
||||
EndpointMap: |
||||
default: {} |
||||
description: Mapping of service endpoint -> protocol. Typically set |
||||
via parameter_defaults in the resource registry. |
||||
type: json |
||||
MonitoringSubscriptionDesignateWorker: |
||||
default: 'overcloud-designate-worker' |
||||
type: string |
||||
DesignateWorkerLoggingSource: |
||||
type: json |
||||
default: |
||||
tag: openstack.designate.worker |
||||
path: /var/log/designate/designate-worker.log |
||||
DesignateWorkers: |
||||
default: 0 |
||||
description: Number of workers for Designate services. |
||||
type: number |
||||
|
||||
conditions: |
||||
designate_workers_zero: {equals : [{get_param: DesignateWorkers}, 0]} |
||||
|
||||
resources: |
||||
DesignateBase: |
||||
type: ./designate-base.yaml |
||||
properties: |
||||
ServiceData: {get_param: ServiceData} |
||||
ServiceNetMap: {get_param: ServiceNetMap} |
||||
DefaultPasswords: {get_param: DefaultPasswords} |
||||
EndpointMap: {get_param: EndpointMap} |
||||
RoleName: {get_param: RoleName} |
||||
RoleParameters: {get_param: RoleParameters} |
||||
|
||||
outputs: |
||||
role_data: |
||||
description: Role data for the Designate Worker service. |
||||
value: |
||||
service_name: designate_worker |
||||
monitoring_subscription: {get_param: MonitoringSubscriptionDesignateWorker} |
||||
logging_source: {get_param: DesignateWorkerLoggingSource} |
||||
logging_groups: |
||||
- designate |
||||
config_settings: |
||||
map_merge: |
||||
- get_attr: [DesignateBase, role_data, config_settings] |
||||
- |
||||
if: |
||||
- designate_workers_zero |
||||
- {} |
||||
- designate::worker::workers: {get_param: DesignateWorkers} |
||||
designate::worker::worker_notify: true |
||||
tripleo.bind.firewall_rules: |
||||
'140 bind': |
||||
dport: |
||||
- 53 |
||||
- 953 |
||||
step_config: | |
||||
include tripleo::profile::base::designate::worker |
Loading…
Reference in new issue