hobo-agent: load settings.d/* files (#63674)

This commit is contained in:
Emmanuel Cazenave 2022-04-07 16:54:09 +02:00
parent b740bfd58f
commit 4ec8bca040
2 changed files with 10 additions and 0 deletions

View File

@ -20,6 +20,13 @@
owner: "{{user}}"
group: "{{user}}"
- name: "settings.d directory"
file:
path: "{{app_settings_dir}}/settings.d"
state: directory
owner: "{{user}}"
group: "{{user}}"
- name: hobo agent settings file
template:
src: hobo-agent-settings.j2

View File

@ -14,3 +14,6 @@ WCS_MANAGE_TRY_COMMAND = "{{venv_py3_bin}}/wcsctl.py"
{% endif %}
{% endfor %}
for filename in sorted(glob.glob(os.path.join('{{app_settings_dir}}', 'settings.d', '*.py'))):
exec(open(filename).read())