90431683b5
When fixing LP#1643487 we added ?bind_address to all DB URIs. Since this clashes with Cellsv2 due to the URIs becoming host dependent, we need a new approach to pass bind_address to pymysql that leaves the DB URIs host-independent. In change Iff8bd2d9ee85f7bb1445aa2e1b3cfbff1f397b18 we first create a /etc/my.cnf.d/tripleo.cnf file with a [tripleo] section with the correct bind-address option. In this change we make sure that the DB URIs will point to the added file and to the specific section containing the necessary bind-address option. We do introduce a new MySQLClient profile which will hold all this more client-specific configuration so that this change can fit better in the composable roles work. Also, in the future it might contain the necessary configuration for SSL for example. Note that in case the /etc/my.cnf.d/tripleo.cnf file does not exist (because it is created via the mysqlclient profile), things keep on working as usual and the bind-address option simply won't be set, which has no impact on hosts where there are no VIPs. Co-Authored-By: Damien Ciabrini <dciabrin@redhat.com> Change-Id: Ieac33efe38f32e949fd89545eb1cd8e0fe114a12 Related-Bug: #1643487 Closes-Bug: #1663181 Closes-Bug: #1664524 Depends-On: Iff8bd2d9ee85f7bb1445aa2e1b3cfbff1f397b18
90 lines
3.0 KiB
YAML
90 lines
3.0 KiB
YAML
heat_template_version: ocata
|
|
|
|
description: >
|
|
Gnocchi service configured with Puppet
|
|
|
|
parameters:
|
|
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
|
|
EndpointMap:
|
|
default: {}
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
via parameter_defaults in the resource registry.
|
|
type: json
|
|
GnocchiIndexerBackend:
|
|
default: 'mysql'
|
|
description: The short name of the Gnocchi indexer backend to use.
|
|
type: string
|
|
GnocchiPassword:
|
|
description: The password for the gnocchi service and db account.
|
|
type: string
|
|
hidden: true
|
|
GnocchiRbdPoolName:
|
|
default: metrics
|
|
type: string
|
|
CephClientUserName:
|
|
default: openstack
|
|
type: string
|
|
KeystoneRegion:
|
|
type: string
|
|
default: 'regionOne'
|
|
description: Keystone region for endpoint
|
|
RedisPassword:
|
|
description: The password for the redis service account.
|
|
type: string
|
|
hidden: true
|
|
Debug:
|
|
type: string
|
|
default: ''
|
|
description: Set to True to enable debugging on all services.
|
|
|
|
outputs:
|
|
aux_parameters:
|
|
description: Additional parameters referenced outside the base file
|
|
value:
|
|
gnocchi_indexer_backend: {get_param: GnocchiIndexerBackend}
|
|
role_data:
|
|
description: Shared role data for the Heat services.
|
|
value:
|
|
service_name: gnocchi_base
|
|
config_settings:
|
|
#Gnocchi engine
|
|
gnocchi_redis_password: {get_param: RedisPassword}
|
|
gnocchi::debug: {get_param: Debug}
|
|
gnocchi::db::database_connection:
|
|
list_join:
|
|
- ''
|
|
- - {get_param: [EndpointMap, MysqlInternal, protocol]}
|
|
- '://gnocchi:'
|
|
- {get_param: GnocchiPassword}
|
|
- '@'
|
|
- {get_param: [EndpointMap, MysqlInternal, host]}
|
|
- '/gnocchi'
|
|
- '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
|
|
gnocchi::db::sync::extra_opts: '--skip-storage'
|
|
gnocchi::storage::swift::swift_user: 'service:gnocchi'
|
|
gnocchi::storage::swift::swift_auth_version: 2
|
|
gnocchi::storage::swift::swift_key: {get_param: GnocchiPassword}
|
|
gnocchi::storage::ceph::ceph_pool: {get_param: GnocchiRbdPoolName}
|
|
gnocchi::storage::ceph::ceph_username: {get_param: CephClientUserName}
|
|
gnocchi::storage::ceph::ceph_keyring:
|
|
list_join:
|
|
- '.'
|
|
- - '/etc/ceph/ceph'
|
|
- 'client'
|
|
- {get_param: CephClientUserName}
|
|
- 'keyring'
|
|
#Gnocchi statsd
|
|
gnocchi::statsd::resource_id: '0a8b55df-f90f-491c-8cb9-7cdecec6fc26'
|
|
gnocchi::statsd::user_id: '27c0d3f8-e7ee-42f0-8317-72237d1c5ae3'
|
|
gnocchi::statsd::project_id: '6c38cd8d-099a-4cb2-aecf-17be688e8616'
|
|
gnocchi::statsd::flush_delay: 10
|
|
gnocchi::statsd::archive_policy_name: 'low'
|