salt state module for setfacl

210 views
Skip to first unread message

YANG LI

unread,
Mar 31, 2015, 10:22:00 PM3/31/15
to salt-...@googlegroups.com
does anybody know how to use setfacl in salt state? I only see following:

salt.states.linux_acl.absent(name, acl_type, acl_name='', perms='', recurse=False)

Ensure a Linux ACL does not exist

salt.states.linux_acl.present(name, acl_type, acl_name='', perms='', recurse=False)

I do see alot for execution module.

salt.modules.linux_acl.modfacl(acl_type, acl_name='', perms='', *args, **kwargs)


this is what I want to do with salt state:

   setfacl -R -m g:developer:r-x /mydirectory
   setfacl -Rd -m g:developer:r-x /mydirectory

is this possible to do with salt state module?


Colton Myers

unread,
Apr 3, 2015, 5:29:09 PM4/3/15
to salt-...@googlegroups.com
salt.states.linux_acl.present is I think what you're looking for. It checks to make sure the ACL is present on a file, and sets or mods it as necessary.

--
Colton Myers
Platform Engineer, SaltStack
@basepi on Twitter/Github/IRC

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages