Appen to file, plus set mode in a state

4 views
Skip to first unread message

László Nagy

unread,
Apr 28, 2022, 12:20:09 PM4/28/22
to Salt-users

  Hello,

Can somebody tell me, how to use file.append state, and manage the file permissions (but not the contents!) at the same time?

My problem is that file.append does not have a mode parameter, and there is no "file.mode" function in the file state module.

I could use cmd.run to set file permissions, but that is clumsy. It would also always "change state", even if it really does not change anything.

Thank you,

    Laszlo
Reply all
Reply to author
Forward
0 new messages