Merge "Explode Loadbalancer role into HAproxy + keepalived"

This commit is contained in:
Jenkins 2016-06-06 13:59:18 +00:00 committed by Gerrit Code Review
commit eef24da485
6 changed files with 31 additions and 11 deletions

View File

@ -23,7 +23,7 @@ resource_registry:
OS::TripleO::Services::NeutronL3Agent: ../puppet/services/pacemaker/neutron-l3.yaml OS::TripleO::Services::NeutronL3Agent: ../puppet/services/pacemaker/neutron-l3.yaml
OS::TripleO::Services::NeutronMetadataAgent: ../puppet/services/pacemaker/neutron-metadata.yaml OS::TripleO::Services::NeutronMetadataAgent: ../puppet/services/pacemaker/neutron-metadata.yaml
OS::TripleO::Services::RabbitMQ: ../puppet/services/pacemaker/rabbitmq.yaml OS::TripleO::Services::RabbitMQ: ../puppet/services/pacemaker/rabbitmq.yaml
OS::TripleO::Services::Loadbalancer: ../puppet/services/pacemaker/loadbalancer.yaml OS::TripleO::Services::HAproxy: ../puppet/services/pacemaker/haproxy.yaml
OS::TripleO::Services::Memcached: ../puppet/services/pacemaker/memcached.yaml OS::TripleO::Services::Memcached: ../puppet/services/pacemaker/memcached.yaml
OS::TripleO::Services::Redis: ../puppet/services/pacemaker/database/redis.yaml OS::TripleO::Services::Redis: ../puppet/services/pacemaker/database/redis.yaml
OS::TripleO::Services::NovaConductor: ../puppet/services/pacemaker/nova-conductor.yaml OS::TripleO::Services::NovaConductor: ../puppet/services/pacemaker/nova-conductor.yaml

View File

@ -136,7 +136,8 @@ resource_registry:
OS::TripleO::Services::NeutronL3Agent: puppet/services/neutron-l3.yaml OS::TripleO::Services::NeutronL3Agent: puppet/services/neutron-l3.yaml
OS::TripleO::Services::NeutronMetadataAgent: puppet/services/neutron-metadata.yaml OS::TripleO::Services::NeutronMetadataAgent: puppet/services/neutron-metadata.yaml
OS::TripleO::Services::RabbitMQ: puppet/services/rabbitmq.yaml OS::TripleO::Services::RabbitMQ: puppet/services/rabbitmq.yaml
OS::TripleO::Services::Loadbalancer: puppet/services/loadbalancer.yaml OS::TripleO::Services::HAproxy: puppet/services/haproxy.yaml
OS::TripleO::Services::Keepalived: puppet/services/keepalived.yaml
OS::TripleO::Services::Memcached: puppet/services/memcached.yaml OS::TripleO::Services::Memcached: puppet/services/memcached.yaml
OS::TripleO::Services::SwiftProxy: puppet/services/swift-proxy.yaml OS::TripleO::Services::SwiftProxy: puppet/services/swift-proxy.yaml
OS::TripleO::Services::SaharaApi: puppet/services/sahara-api.yaml OS::TripleO::Services::SaharaApi: puppet/services/sahara-api.yaml

View File

@ -637,7 +637,8 @@ parameters:
- OS::TripleO::Services::NeutronL3Agent - OS::TripleO::Services::NeutronL3Agent
- OS::TripleO::Services::NeutronMetadataAgent - OS::TripleO::Services::NeutronMetadataAgent
- OS::TripleO::Services::RabbitMQ - OS::TripleO::Services::RabbitMQ
- OS::TripleO::Services::Loadbalancer - OS::TripleO::Services::HAproxy
- OS::TripleO::Services::Keepalived
- OS::TripleO::Services::Memcached - OS::TripleO::Services::Memcached
- OS::TripleO::Services::SwiftProxy - OS::TripleO::Services::SwiftProxy
- OS::TripleO::Services::Redis - OS::TripleO::Services::Redis

View File

@ -1,7 +1,7 @@
heat_template_version: 2016-04-08 heat_template_version: 2016-04-08
description: > description: >
Loadbalancer service configured with Puppet HAproxy service configured with Puppet
parameters: parameters:
EndpointMap: EndpointMap:
@ -12,7 +12,7 @@ parameters:
outputs: outputs:
role_data: role_data:
description: Role data for the Loadbalancer role. description: Role data for the HAproxy role.
value: value:
step_config: | step_config: |
include ::tripleo::profile::base::loadbalancer include ::tripleo::profile::base::haproxy

View File

@ -0,0 +1,18 @@
heat_template_version: 2016-04-08
description: >
Keepalived service configured with Puppet
parameters:
EndpointMap:
default: {}
description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type: json
outputs:
role_data:
description: Role data for the Keepalived role.
value:
step_config: |
include ::tripleo::profile::base::keepalived

View File

@ -1,7 +1,7 @@
heat_template_version: 2016-04-08 heat_template_version: 2016-04-08
description: > description: >
Loadbalancer service with Pacemaker configured with Puppet HAproxy service with Pacemaker configured with Puppet
parameters: parameters:
EndpointMap: EndpointMap:
@ -12,19 +12,19 @@ parameters:
resources: resources:
LoadbalancerServiceBase: LoadbalancerServiceBase:
type: ../loadbalancer.yaml type: ../haproxy.yaml
properties: properties:
EndpointMap: {get_param: EndpointMap} EndpointMap: {get_param: EndpointMap}
outputs: outputs:
role_data: role_data:
description: Role data for the Loadbalancer pacemaker role. description: Role data for the HAproxy with pacemaker role.
value: value:
config_settings: config_settings:
map_merge: map_merge:
- get_attr: [LoadbalancerServiceBase, role_data, config_settings] - get_attr: [LoadbalancerServiceBase, role_data, config_settings]
- tripleo::haproxy::haproxy_service_manage: false - tripleo::haproxy::haproxy_service_manage: false
tripleo::haproxy::mysql_clustercheck: true tripleo::haproxy::mysql_clustercheck: true
tripleo::haproxy::keepalived: false enable_keepalived: false
step_config: | step_config: |
include ::tripleo::profile::pacemaker::loadbalancer include ::tripleo::profile::pacemaker::haproxy