summaryrefslogtreecommitdiffstats
path: root/roles/loopabull/templates
diff options
context:
space:
mode:
authorAdam Miller <admiller@redhat.com>2017-02-15 22:00:13 +0000
committerAdam Miller <admiller@redhat.com>2017-03-13 16:05:27 +0000
commit2d087767089685b5740fdecde462121bfad69d3a (patch)
treee0a5a7cc232102afaab2590b7a3a2e492174f84d /roles/loopabull/templates
parentf6e5e15889d1100ece724f5f7d3659ee66d24a3a (diff)
downloadansible-2d087767089685b5740fdecde462121bfad69d3a.tar.gz
ansible-2d087767089685b5740fdecde462121bfad69d3a.tar.xz
ansible-2d087767089685b5740fdecde462121bfad69d3a.zip
loopabull roles added and loopabull playbook updated
Signed-off-by: Adam Miller <admiller@redhat.com>
Diffstat (limited to 'roles/loopabull/templates')
-rw-r--r--roles/loopabull/templates/loopabull.yml.j240
1 files changed, 40 insertions, 0 deletions
diff --git a/roles/loopabull/templates/loopabull.yml.j2 b/roles/loopabull/templates/loopabull.yml.j2
new file mode 100644
index 000000000..84fb9059b
--- /dev/null
+++ b/roles/loopabull/templates/loopabull.yml.j2
@@ -0,0 +1,40 @@
+# Loopabull (https://github.com/maxamillion/loopabull) config file
+#
+# There are three main definitions: ansible, routing_keys, plugin. These will be
+# explained in comments above each section below.
+
+# plugin
+#
+# This is the selected plugin that will interface with your prefered origin of
+# events (message bus or otherwise).
+plugin: {{plugin}}
+
+# routing_keys
+#
+# This is a list of routing keys that will be yielded by your selected plugin
+# that should be acted upon (i.e. - these keys should trigger an ansible
+# playbook by the same name).
+routing_keys:
+{% for rkey in routing_keys %}
+ - {{ rkey }}
+{% endfor %}
+
+# ansible
+#
+# This section will tell Loopabull about information to pass to the
+# ansible-playbook command.
+#
+# playbooks_dir
+# The full path location of the directory containing your playbooks that
+# coorelate to the routing_keys
+#
+# cfg_file_path
+# Full path location of the ansible configuration to use
+#
+# playbook_cmd
+# Command to use in place of ansible-playbook (for those that want to use
+# Ansible Tower commands or custom wrappers of their own)
+ansible:
+ playbooks_dir: {{ playbooks_dir }}
+ cfg_file_path: {{ cfg_file_path }}
+ playbook_cmd: {{ playbook_cmd }} \ No newline at end of file