ceph-salt icon indicating copy to clipboard operation
ceph-salt copied to clipboard

Use jinja macros to access the pillar data

Open ricardoasmarques opened this issue 4 years ago • 0 comments

There is a lot of duplicate code to fetch data from the pillar, especially due to all the handling of non-existent keys in the pillar.

The objective is to create some jinja macros that can be used to reduce the amount of duplicate code.

See https://jinja.palletsprojects.com/en/2.10.x/templates/#macros

ricardoasmarques avatar Jan 16 '20 10:01 ricardoasmarques