metadata:
 name: def_template_with_scenarios
 description: def_template with a scenarios section
definitions:
 entities:
  - entity:
     category: ALARM
     type: nagios
     name: host_problem
     template_id: alarm_scen
  - entity:
     category: RESOURCE
     type: nova.host
     template_id: resource_scen
 relationships:
  - relationship:
     source: alarm_scen
     target: resource_scen
     relationship_type: on
     template_id : alarm_scen_on_host_scen
scenarios:
 - scenario:
    condition: alarm_on_host_scen
    actions:
     - action:
        action_type: set_state
        properties:
         state: SUBOPTIMAL
        action_target:
         target: resource_scen