Files
fedora-infra_ansible/roles/loopabull/templates/loopabull.yml.j2
Pierre-Yves Chibon 2b73af6397 Fix playbooks_dir, no need to append /ansible to it
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-08-08 11:39:34 +02:00

67 lines
1.9 KiB
Django/Jinja

# 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.
# loglevel
#
# The defaul loglevel is "info" but the following log levels are available
# - info
# - warn
# - error
# - debug
{% if loglevel is defined %}
loglevel: {{ loglevel }}
{% else %}
loglevel: info
{% endif %}
# plugin section
#
# loopabull has two types of plugins:
#
# looper: message bus python generator plugin that will interface with your
# prefered origin of events (message bus or otherwise).
#
# translator: routing key translator which allows for alternative layouts
# on-disk for routing_key mappings to playbooks the default of
# "rkname" simple means that your playbooks share the same parent
# dir and are all named after the routing_key they correspond to
# in the message bus.
#
plugins:
looper:
name: {{ plugin }}
translator:
name: rkname
# 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: {{ ansible_cfg_path }}
playbook_cmd: {{ playbook_cmd }}