I want to create a cron tab with salt.
I found this method:
salt.states.cron.file(name, source_hash='', user='root', template=None, context=None, replace=True, defaults=None, env=None, backup='', **kwargs)
Provides file.managed-like functionality (templating, etc.) for a pre-made crontab file, to be assigned to a given user.
name
The source file to be used as the crontab. This source file can be hosted on either the salt master server, or on an HTTP or FTP server. For files hosted on the salt file server, if the file is located on the master in the directory named spam, and is called eggs, the source string is salt://spam/eggs
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.cron.html#salt.states.cron.file
I want to use the output of a script which gets called on the minion as source.
How can I do this?
Update
It looks like this is not possible up to now. I created an issue: https://github.com/saltstack/salt/issues/29698