metadata:
 version: 2
 type: standard
 name: template_with_include
 description: a template that includes a definition template
includes:
  - name: definition_template
definitions:
 entities:
  - entity:
     category: ALARM
     type: nagios
     name: host_problem
     template_id: alarm11
  - entity:
     category: RESOURCE
     type: nova.host
     template_id: resource11
scenarios:
 - scenario:
    condition: alarm_on_host
    actions:
     - action:
        action_type: set_state
        properties:
         state: SUBOPTIMAL
        action_target:
         target: resource
