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 functions (templates, etc.) for the previously created crontab file assigned to this user.
name
The source file to be used as crontab. This source file can be hosted either on the salt core server, or on an HTTP or FTP server. For files hosted on the salt file server, if the file is located on the main directory in the directory called spam and is called an egg, the initial line 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 that is called as a source as a source.
How can i do this?
Update
It seems like this is still impossible. I created a problem: https://github.com/saltstack/salt/issues/29698
source share