So I'm trying to import multiple cronjobs with a salt formula. The idea is to have a file for every server in the formula itself and import all cronjobs on state apply.
I checked the documentation, but all I could find was the salt.states.cron.file, which only works with a hosted file. In my case a template file in the formula itself should be used.
Is it even possible to implement multiple cronjobs from a file?
Provides file.managed-like functionality (templating, etc.)
For example:
crontab:
cron.file:
- name: salt://{{ tpldir }}/files/crontab