Add filter plugins

This commit is contained in:
Luke Murphy 2020-04-15 12:57:58 +02:00
parent da2b565cf3
commit 10d300628d
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,7 @@
[defaults]
retry_files_enabled = false
filter_plugins = /var/lib/dokku/plugins/available/ansible-deploy/plays/filter_plugins
interpreter_python = /usr/bin/python3
retry_files_enabled = false
[ssh_connection]
pipelining = true

View File

@ -0,0 +1,12 @@
"""Update config.env filter."""
def filter_update_env(config, env):
for key, val in env:
config["env"][key] = val
return config
class FilterModule(object):
def filters(self):
return {"update_env": filter_update_env}