metadata:
 name: only_using_def_template_definitions
 description: A template file which only uses the entities in the files it includes and has none of its own
includes:
 - name: basic_def_template
 - name: large_def_template
definitions:
 relationships:
 #cluster_alarm from large_def_template and resource from basic_def_template
  - relationship:
     source: cluster_alarm
     target: resource
     relationship_type: on
     template_id : alarm_on_resource
scenarios:
 - scenario:
    condition: alarm_on_resource
    actions:
     - action:
        action_type: set_state
        properties:
         state: SUBOPTIMAL
        action_target:
        #from large_def_template
         target: openstack_cluster
 - scenario:
 #from large_def_template
    condition: alarm_on_network
    actions:
     - action:
        action_type: set_state
        properties:
         state: SUBOPTIMAL
        action_target:
        #from basic_def_template
         target: resource