Fix Heka alarm meta for compute and gw nodes

This change ensures that no alarm and trigger keys will be added for
the compute and gateway nodes when enabling the Heka support.

Change-Id: Iea919dfc7fb198bef3459386dd2de76696eb58c6
diff --git a/neutron/meta/heka.yml b/neutron/meta/heka.yml
index 17fdc06..98b4d4f 100644
--- a/neutron/meta/heka.yml
+++ b/neutron/meta/heka.yml
@@ -25,6 +25,7 @@
       priority: ["^Seq"]
       decoder: "neutron_decoder"
       splitter: "neutron_splitter"
+{%- if pillar.neutron.server is defined %}
 metric_collector:
   trigger:
     neutron_logs_error:
@@ -41,7 +42,6 @@
         window: 70
         periods: 0
         function: max
-    {%- if pillar.neutron.server is defined %}
     neutron_api_local_endpoint:
       description: 'Neutron API is locally down'
       severity: down
@@ -54,9 +54,7 @@
         window: 60
         periods: 0
         function: last
-    {%- endif %}
   alarm:
-    {%- if pillar.neutron.server is defined %}
     neutron_logs:
       alerting: enabled
       triggers:
@@ -69,10 +67,10 @@
       - neutron_api_local_endpoint
       dimension:
         service: neutron-api-endpoint
-    {%- endif %}
+{%- endif %}
+{%- if pillar.neutron.server is defined %}
 remote_collector:
   trigger:
-    {%- if pillar.neutron.server is defined %}
     neutron_api_check_failed:
       description: 'Endpoint check for neutron-api is failed'
       severity: down
@@ -85,7 +83,6 @@
         window: 60
         periods: 0
         function: last
-    {%- endif %}
     {%- for agent in neutron_agents %}
     neutron_{{ agent }}_two_up:
       description: 'Some Neutron {{ agent }} agents are down'
@@ -148,13 +145,11 @@
         function: last
     {%- endfor %}
   alarm:
-    {%- if pillar.neutron.server is defined %}
     neutron_api_check:
       triggers:
       - neutron_api_check_failed
       dimension:
         service: neutron-api-check
-    {%- endif %}
     {%- for agent in neutron_agents %}
     neutron_{{ agent }}:
       alerting: enabled
@@ -165,6 +160,7 @@
       dimension:
         service: neutron-{{ agent }}
     {%- endfor %}
+{%- endif %}
 aggregator:
   alarm_cluster:
     neutron_logs: