Merge "pacemaker remote profile support"
This commit is contained in:
commit
38ac78ba5d
@ -12,6 +12,7 @@ resource_registry:
|
|||||||
OS::TripleO::Services::RabbitMQ: ../puppet/services/pacemaker/rabbitmq.yaml
|
OS::TripleO::Services::RabbitMQ: ../puppet/services/pacemaker/rabbitmq.yaml
|
||||||
OS::TripleO::Services::HAproxy: ../puppet/services/pacemaker/haproxy.yaml
|
OS::TripleO::Services::HAproxy: ../puppet/services/pacemaker/haproxy.yaml
|
||||||
OS::TripleO::Services::Pacemaker: ../puppet/services/pacemaker.yaml
|
OS::TripleO::Services::Pacemaker: ../puppet/services/pacemaker.yaml
|
||||||
|
OS::TripleO::Services::PacemakerRemote: ../puppet/services/pacemaker_remote.yaml
|
||||||
OS::TripleO::Services::Redis: ../puppet/services/pacemaker/database/redis.yaml
|
OS::TripleO::Services::Redis: ../puppet/services/pacemaker/database/redis.yaml
|
||||||
OS::TripleO::Services::MySQL: ../puppet/services/pacemaker/database/mysql.yaml
|
OS::TripleO::Services::MySQL: ../puppet/services/pacemaker/database/mysql.yaml
|
||||||
# Services that are disabled by default (use relevant environment files):
|
# Services that are disabled by default (use relevant environment files):
|
||||||
|
@ -64,6 +64,7 @@ parameters:
|
|||||||
OvnDbsNetwork: internal_api
|
OvnDbsNetwork: internal_api
|
||||||
MistralApiNetwork: internal_api
|
MistralApiNetwork: internal_api
|
||||||
ZaqarApiNetwork: internal_api
|
ZaqarApiNetwork: internal_api
|
||||||
|
PacemakerRemoteNetwork: internal_api
|
||||||
# We special-case the default ResolveNetwork for the CephStorage role
|
# We special-case the default ResolveNetwork for the CephStorage role
|
||||||
# for backwards compatibility, all other roles default to internal_api
|
# for backwards compatibility, all other roles default to internal_api
|
||||||
CephStorageHostnameResolveNetwork: storage
|
CephStorageHostnameResolveNetwork: storage
|
||||||
|
@ -159,6 +159,7 @@ resource_registry:
|
|||||||
OS::TripleO::Services::NeutronOvsAgent: puppet/services/neutron-ovs-agent.yaml
|
OS::TripleO::Services::NeutronOvsAgent: puppet/services/neutron-ovs-agent.yaml
|
||||||
OS::TripleO::Services::ComputeNeutronOvsAgent: puppet/services/neutron-ovs-agent.yaml
|
OS::TripleO::Services::ComputeNeutronOvsAgent: puppet/services/neutron-ovs-agent.yaml
|
||||||
OS::TripleO::Services::Pacemaker: OS::Heat::None
|
OS::TripleO::Services::Pacemaker: OS::Heat::None
|
||||||
|
OS::TripleO::Services::PacemakerRemote: OS::Heat::None
|
||||||
OS::TripleO::Services::NeutronSriovAgent: OS::Heat::None
|
OS::TripleO::Services::NeutronSriovAgent: OS::Heat::None
|
||||||
OS::TripleO::Services::RabbitMQ: puppet/services/rabbitmq.yaml
|
OS::TripleO::Services::RabbitMQ: puppet/services/rabbitmq.yaml
|
||||||
OS::TripleO::Services::HAproxy: puppet/services/haproxy.yaml
|
OS::TripleO::Services::HAproxy: puppet/services/haproxy.yaml
|
||||||
|
@ -29,6 +29,11 @@ parameters:
|
|||||||
default: false
|
default: false
|
||||||
description: Whether to enable fencing in Pacemaker or not.
|
description: Whether to enable fencing in Pacemaker or not.
|
||||||
type: boolean
|
type: boolean
|
||||||
|
PacemakerRemoteAuthkey:
|
||||||
|
type: string
|
||||||
|
description: The authkey for the pacemaker remote service.
|
||||||
|
hidden: true
|
||||||
|
default: ''
|
||||||
PcsdPassword:
|
PcsdPassword:
|
||||||
type: string
|
type: string
|
||||||
description: The password for the 'pcsd' user for pacemaker.
|
description: The password for the 'pcsd' user for pacemaker.
|
||||||
@ -112,5 +117,6 @@ outputs:
|
|||||||
passwords:
|
passwords:
|
||||||
- {get_param: PcsdPassword}
|
- {get_param: PcsdPassword}
|
||||||
- {get_param: [DefaultPasswords, pcsd_password]}
|
- {get_param: [DefaultPasswords, pcsd_password]}
|
||||||
|
tripleo::profile::base::pacemaker::remote_authkey: {get_param: PacemakerRemoteAuthkey}
|
||||||
step_config: |
|
step_config: |
|
||||||
include ::tripleo::profile::base::pacemaker
|
include ::tripleo::profile::base::pacemaker
|
||||||
|
57
puppet/services/pacemaker_remote.yaml
Normal file
57
puppet/services/pacemaker_remote.yaml
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
heat_template_version: ocata
|
||||||
|
|
||||||
|
description: >
|
||||||
|
Pacemaker remote 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
|
||||||
|
PacemakerRemoteAuthkey:
|
||||||
|
type: string
|
||||||
|
description: The authkey for the pacemaker remote service.
|
||||||
|
hidden: true
|
||||||
|
default: ''
|
||||||
|
MonitoringSubscriptionPacemakerRemote:
|
||||||
|
default: 'overcloud-pacemaker_remote'
|
||||||
|
type: string
|
||||||
|
PacemakerRemoteLoggingSource:
|
||||||
|
type: json
|
||||||
|
default:
|
||||||
|
tag: system.pacemaker_remote
|
||||||
|
path: /var/log/pacemaker.log
|
||||||
|
format: >-
|
||||||
|
/^(?<time>[^ ]*\s*[^ ]* [^ ]*)
|
||||||
|
\[(?<pid>[^ ]*)\]
|
||||||
|
(?<host>[^ ]*)
|
||||||
|
(?<message>.*)$/
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
role_data:
|
||||||
|
description: Role data for the Pacemaker remote role.
|
||||||
|
value:
|
||||||
|
service_name: pacemaker_remote
|
||||||
|
monitoring_subscription: {get_param: MonitoringSubscriptionPacemakerRemote}
|
||||||
|
logging_groups:
|
||||||
|
- haclient
|
||||||
|
logging_source: {get_param: PacemakerRemoteLoggingSource}
|
||||||
|
config_settings:
|
||||||
|
tripleo.pacemaker_remote.firewall_rules:
|
||||||
|
'130 pacemaker_remote tcp':
|
||||||
|
proto: 'tcp'
|
||||||
|
dport:
|
||||||
|
- 3121
|
||||||
|
tripleo::profile::base::pacemaker_remote::remote_authkey: {get_param: PacemakerRemoteAuthkey}
|
||||||
|
step_config: |
|
||||||
|
include ::tripleo::profile::base::pacemaker_remote
|
Loading…
x
Reference in New Issue
Block a user