Option to enable ssl for amqp
diff --git a/heka/files/output/amqp.toml b/heka/files/output/amqp.toml
index 8e7f142..4229d5d 100644
--- a/heka/files/output/amqp.toml
+++ b/heka/files/output/amqp.toml
@@ -1,6 +1,6 @@
 [AMQPOutput_{{ name }}]
 type = "AMQPOutput"
-url = "amqp://{{ values.user }}:{{ values.password }}@{{ values.host }}/{{ values.vhost }}"
+url = "amqp{% if values.ssl is defined %}s{% endif %}://{{ values.user }}:{{ values.password }}@{{ values.host }}/{{ values.vhost }}"
 exchange = "{{ values.exchange }}"
 exchange_type = "{{ values.exchange_type }}"
 message_matcher = "{{ values.message_matcher }}"