{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/20629","labels_url":"https://api.github.com/repos/saltstack/salt/issues/20629/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/20629/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/20629/events","html_url":"https://github.com/saltstack/salt/issues/20629","id":57467731,"number":20629,"title":"Set \"--out-file\" as standard for highstates","user":{"login":"I3olle","id":10775905,"avatar_url":"https://avatars.githubusercontent.com/u/10775905?v=3","gravatar_id":"","url":"https://api.github.com/users/I3olle","html_url":"https://github.com/I3olle","followers_url":"https://api.github.com/users/I3olle/followers","following_url":"https://api.github.com/users/I3olle/following{/other_user}","gists_url":"https://api.github.com/users/I3olle/gists{/gist_id}","starred_url":"https://api.github.com/users/I3olle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/I3olle/subscriptions","organizations_url":"https://api.github.com/users/I3olle/orgs","repos_url":"https://api.github.com/users/I3olle/repos","events_url":"https://api.github.com/users/I3olle/events{/privacy}","received_events_url":"https://api.github.com/users/I3olle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Question","name":"Question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/37","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/37/labels","id":343741,"number":37,"title":"Blocked","description":"Issues which are blocked in some way, whether they need further discussion, clarification, justification, or are blocked for some other reason.","creator":{"login":"basepi","id":702318,"avatar_url":"https://avatars.githubusercontent.com/u/702318?v=3","gravatar_id":"","url":"https://api.github.com/users/basepi","html_url":"https://github.com/basepi","followers_url":"https://api.github.com/users/basepi/followers","following_url":"https://api.github.com/users/basepi/following{/other_user}","gists_url":"https://api.github.com/users/basepi/gists{/gist_id}","starred_url":"https://api.github.com/users/basepi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basepi/subscriptions","organizations_url":"https://api.github.com/users/basepi/orgs","repos_url":"https://api.github.com/users/basepi/repos","events_url":"https://api.github.com/users/basepi/events{/privacy}","received_events_url":"https://api.github.com/users/basepi/received_events","type":"User","site_admin":false},"open_issues":198,"closed_issues":433,"state":"open","created_at":"2013-05-28T22:24:12Z","updated_at":"2015-02-13T14:30:41Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-12T14:37:25Z","updated_at":"2015-02-13T14:30:41Z","closed_at":"2015-02-13T14:30:41Z","body":"Hi there,\r\n\r\nis it possible to somehow set --out-file=OUTPUT_FILE as standard? \r\nhttp://docs.saltstack.com/en/latest/ref/cli/salt.html#cmdoption-salt--out-file\r\n\r\nI would like to have a file created everytime I call a highstate without having to append the --out-file. Is that possible? \r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/74261364","html_url":"https://github.com/saltstack/salt/issues/20629#issuecomment-74261364","issue_url":"https://api.github.com/repos/saltstack/salt/issues/20629","id":74261364,"user":{"login":"I3olle","id":10775905,"avatar_url":"https://avatars.githubusercontent.com/u/10775905?v=3","gravatar_id":"","url":"https://api.github.com/users/I3olle","html_url":"https://github.com/I3olle","followers_url":"https://api.github.com/users/I3olle/followers","following_url":"https://api.github.com/users/I3olle/following{/other_user}","gists_url":"https://api.github.com/users/I3olle/gists{/gist_id}","starred_url":"https://api.github.com/users/I3olle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/I3olle/subscriptions","organizations_url":"https://api.github.com/users/I3olle/orgs","repos_url":"https://api.github.com/users/I3olle/repos","events_url":"https://api.github.com/users/I3olle/events{/privacy}","received_events_url":"https://api.github.com/users/I3olle/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T14:30:41Z","updated_at":"2015-02-13T14:30:41Z","body":"I tried to at least make the existing reactor, which runs a highstate every 60 minutes, create my file. So I appended some arg and return value but it doesn't create any file. Is my syntax correct?\r\n\r\n```\r\n{% set date = salt['cmd.run']('date \"+%d-%m-%y %H:%M\"') %}\r\n\r\nhighstate_run:\r\n  cmd.state.highstate:\r\n    - tgt: {{ data['id'] }}\r\n    - arg:\r\n      - \"--out-file=/var/log/salt/{{ data['id'] }}-{{ date }}.yaml\"\r\n```"}}