Merge "Use sensu-client healthcheck parameter"
This commit is contained in:
commit
b6ddcc7fa4
@ -68,8 +68,8 @@ parameters:
|
|||||||
description: The number of seconds sensu-plugin-aware handlers should wait before taking second action.
|
description: The number of seconds sensu-plugin-aware handlers should wait before taking second action.
|
||||||
default: 90
|
default: 90
|
||||||
|
|
||||||
resources:
|
|
||||||
|
|
||||||
|
resources:
|
||||||
ContainersCommon:
|
ContainersCommon:
|
||||||
type: ./containers-common.yaml
|
type: ./containers-common.yaml
|
||||||
|
|
||||||
@ -81,6 +81,7 @@ resources:
|
|||||||
ServiceNetMap: {get_param: ServiceNetMap}
|
ServiceNetMap: {get_param: ServiceNetMap}
|
||||||
DefaultPasswords: {get_param: DefaultPasswords}
|
DefaultPasswords: {get_param: DefaultPasswords}
|
||||||
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
description: Role data for the Sensu client role.
|
description: Role data for the Sensu client role.
|
||||||
@ -129,7 +130,16 @@ outputs:
|
|||||||
user: root
|
user: root
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: /openstack/healthcheck
|
test:
|
||||||
|
list_join:
|
||||||
|
- ' '
|
||||||
|
- - '/openstack/healthcheck'
|
||||||
|
- yaql:
|
||||||
|
expression: >
|
||||||
|
switch(bool($.data.cluster) => $.data.cluster, bool($.data.single_node) => $.data.single_node).select($.port).distinct().join(' ')
|
||||||
|
data:
|
||||||
|
cluster: {get_attr: [SensuClientBase, role_data, config_settings, 'sensu::rabbitmq_cluster']}
|
||||||
|
single_node: [{port: {get_attr: [SensuClientBase, role_data, config_settings, 'sensu::rabbitmq_port']}}]
|
||||||
volumes:
|
volumes:
|
||||||
list_concat:
|
list_concat:
|
||||||
- {get_attr: [ContainersCommon, volumes]}
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user