ansible-pulp currently tries to generate a Python settings file.from
settings provided by the user in the playbook[0]. However, the generated
Python code is not always syntactically correct[1].

The settings file is generated using a Jinja template. Jinja provides a
to_json that can be used to generate the settings as JSON. I propose that
we change the behavior of ansible-pulp to generate settings.json instead of
settings.py.

Are there any objections or other ideas?

[0]
https://github.com/pulp/ansible-pulp/blob/master/roles/pulp/templates/settings.py.j2
[1] https://pulp.plan.io/issues/5687
_______________________________________________
Pulp-dev mailing list
Pulp-dev@redhat.com
https://www.redhat.com/mailman/listinfo/pulp-dev

Reply via email to