Created
July 4, 2017 10:44
-
-
Save parisk/4a4e0a9d3941e5dc798c80fb26b17bfd to your computer and use it in GitHub Desktop.
Castor Payload Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load docker_events %} | |
{% with event|get_attribute:"com.sourcelair.ceryx.host" as source %} | |
{% if source %} | |
{% with event|get_attribute:"com.sourcelair.ceryx.port" as port %} | |
{ | |
"source": "{{ source }}", | |
"destination": "{{ event.Actor.ID }}:{{ port }}" | |
} | |
{% endwith %} | |
{% else %} | |
{} | |
{% endif %} | |
{% endwith %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment