summaryrefslogtreecommitdiffstats
path: root/puppet/services/aodh-evaluator.yaml
blob: 56dbb5584ac37a571a490911b811f71b80d6c990 (plain)
1
2
3
4
5
6
7
8
9

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
heat_template_version: ocata

description: >
  OpenStack Aodh Evaluator 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
  MonitoringSubscriptionAodhEvaluator:
    default: 'overcloud-ceilometer-aodh-evaluator'
    type: string

resources:
  AodhBase:
    type: ./aodh-base.yaml
    properties:
      ServiceNetMap: {get_param: ServiceNetMap}
      DefaultPasswords: {get_param: DefaultPasswords}
      EndpointMap: {get_param: EndpointMap}

outputs:
  role_data:
    description: Role data for the Aodh Evaluator service.
    value:
      service_name: aodh_evaluator
      monitoring_subscription: {get_param: MonitoringSubscriptionAodhEvaluator}
      config_settings:
        get_attr: [AodhBase, role_data, config_settings]
      step_config: |
        include tripleo::profile::base::aodh::evaluator
      upgrade_tasks:
        - name: "PreUpgrade step0,validation: Check service openstack-aodh-evaluator is running"
          shell: /usr/bin/systemctl show 'openstack-aodh-evaluator' --property ActiveState | grep '\bactive\b'
          tags: step0,validation
        - name: Stop aodh_evaluator service
          tags: step2
          service: name=openstack-aodh-evaluator state=stopped