Windows: file.directory users and permissions?
In my masterless windows environment, I would like to not only create directories if they do not exist, but ensure they have the permissions I need. How might I do that?
D:\\tomcats\tomcat-jenkins\work:
file.directory:
- makedirs: True
- user: Jenkins ????
- mode: FullControl ????
D:\\jenkins-jobhome:
file.directory:
- makedirs: True
- group: JenkinsGroup ????
- mode: FullControl ????
Thanks.
I don't think this functionality has been implemented yet for windows. @UtahDave can correct me if I'm wrong there. But we definitely want to implement it, so thanks for the report!
Check out the NTFSSecurity Module. It makes managing permissions quite simple, given you have Powershell 2.0 installed. Not sure if it's possible to bundle that module with Salt?
https://gallery.technet.microsoft.com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.