Closed mdaugs closed 3 months ago
ytt is already part of the docker image. But it is not used in the project.
Describe the solution you'd like It would be great to optionally use ytt for extended forms parsing.
This would enable templating as:
# forms.yaml #@ load("@ytt:data", "data") --- categories: - name: Default icon: bars roles: - name: admin groups: - local/admins constants: data_values: #@ data.values forms: - name: Demo Form type: ansible inventory: #@ data.values.INVENTORY_PATH playbook: dummy.yml fields: - name: var_host_name type: text label: Hostname default: Object($(data_values)).default_host eval_default: true
Where data is provided by either a file or environment variables.
Hi, ytt was added on request once. I know it's to build dynamic yaml files, but don't know if it just integrates or not. Let me check your PR.
integrated into new beta. please PR to devel branch
ytt is already part of the docker image. But it is not used in the project.
Describe the solution you'd like It would be great to optionally use ytt for extended forms parsing.
This would enable templating as:
Where data is provided by either a file or environment variables.