summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/files/acl.py
Commit message (Collapse)AuthorAgeFilesLines
* E501 fixes (#22879)Matt Martz2017-03-221-2/+5
|
* New metadata 1.0 (#22587)Toshio Kuratomi2017-03-141-3/+4
| | | | | | | | | | | | | | | | Changes to the metadata format were approved here: https://github.com/ansible/proposals/issues/54 * Update documentation to the new metadata format * Changes to metadata-tool to account for new metadata * Add GPL license header * Add upgrade subcommand to upgrade metadata version * Change default metadata to the new format * Fix exclusion of non-modules from the metadata report * Fix ansible-doc for new module metadata * Exclude metadata version from ansible-doc output * Fix website docs generation for the new metadata * Update metadata schema in valiate-modules test * Update the metadata in all modules to the new version
* PEP 8 cleanup. (#20789)Matt Clay2017-01-281-1/+1
| | | | | | | * PEP 8 E703 cleanup. * PEP 8 E701 cleanup. * PEP 8 E711 cleanup. * PEP 8 W191 and E101 cleanup.
* Consistent path attribute for file-related modulesDag Wieers2017-01-131-14/+15
| | | | | | | | Not all file-related modules consistently use "path" as the attribute to specify a single filename, some use "dest", others use "name". Most do have aliases for either "name" or "destfile". This change makes "path" the default attribute for (single) file-related modules, but also adds "dest" and "name" as aliases, so that people can use a consistent way of attributing paths, but also to ensure backward compatibility with existing playbooks. NOTE: The reason for changing this, is that it makes Ansible needlessly harder to use if you have to remember that e.g. the xattr module requires the name attribute, the lineinfile module requires a dest attribute, and the stat module requires a path attribute.
* Refreshed metadata for core modulesToshio Kuratomi2016-12-081-0/+4
|
* Call main in conditional way - files (#5828)Fabio Alessandro Locati2016-12-081-1/+2
|
* Change examples syntax on acl moduleSam Doran2016-12-081-5/+24
|
* Bulk spelling improvement to modules-core (#5225)John R Barker2016-12-081-2/+2
| | | | | | | | | | * Correct spelling mistakes * Correct more spelling issues * merge conflict * Revert typo in parms
* Add acl freebsd (#3656)Michael Scherer2016-12-081-9/+29
| | | | | | | | | | | | | | * FreeBSD do not support --omit-header and --absolute-names * The option for following symlink wth getfacl is different on FreeBSD * ZFS on Freebsd use nfsv4 acls, who use a slightly different syntax * FreeBSD do not have a --test flag, so always return 'True' * FreeBSD do not have the --omit-headers options, so we have to filter by ourself * Mark Freebsd as working for the acl module
* Convert the whole files/ directory to py3 syntax (#3685)Michael Scherer2016-12-081-1/+2
|
* Testing the module on freebsd fail, since module is not assigned yetMichael Scherer2016-12-081-3/+3
|
* Fix the argument for acl module (#3653)Michael Scherer2016-12-081-2/+2
|
* Remove duplicate documentation fieldsToshio Kuratomi2016-12-081-2/+1
|
* Fix: Default ACL parameters are not correctly handledquoing2016-12-081-2/+2
|
* simplified lowercasingBrian Coca2016-12-081-4/+5
|
* Add "default" entry option back (removed in e95bcae), update will translate ↵quoing2016-12-081-10/+18
| | | | entry to standard parameters so compatibility with BDS is kept
* Fix physical walk on acl module for LinuxJérémie Astori2016-12-081-1/+1
| | | | | | | | | | `-h` is for BSD [1] while `-P`/`--physical` is for Linux [2]. This commit fixes that option now that acl module is (temporarily) only supported for Linux. I will re-add `-h` when fixing BSD support. [1]: http://www.freebsd.org/cgi/man.cgi?format=html&query=setfacl(1) [2]: http://linuxcommand.org/man_pages/setfacl1.html
* Make sure entry is not sent when acl state=queryJérémie Astori2016-12-081-0/+3
|
* Make sure permission-less entries are accepted when state=absentJérémie Astori2016-12-081-6/+4
| | | | | Also, remove that try condition as, at that stage, no permissions with other than 2 or 3 fields are sent to the function.
* Remove support for `d[efault]:` in entry permissionsJérémie Astori2016-12-081-8/+3
| | | | | | | | | | | | | | | | | | It is not documented in [the Ansible doc page][1] nor [the BSD setfacl man entry][2] (which means it might not be compatible with BSD) so removing it does not break the API. On the other hand, it does not conform with POSIX 1003.1e DRAFT STANDARD 17 according to the [Linux setfacl man entry][3] so safer to remove. Finally, the most important reason: in non POSIX 1003.e mode, only ACL entries without the permissions field are accepted, so having an optional field here is very much error-prone. [1]: http://docs.ansible.com/ansible/acl_module.html [2]: http://www.freebsd.org/cgi/man.cgi?format=html&query=setfacl(1) [3]: http://linuxcommand.org/man_pages/setfacl1.html
* Fix wrong expectation regarding entry format in acl moduleJérémie Astori2016-12-081-2/+2
|
* Fix wrong processing of lines returned by setfacl in test modeJérémie Astori2016-12-081-2/+2
|
* Fix minor whitespace issuesJérémie Astori2016-12-081-2/+3
|
* updated encoding comment and expanded authors fieldBrian Coca2016-12-081-2/+4
|
* Set version number in recursive option descriptionJérémie Astori2016-12-081-1/+1
|
* Ensure Python 2.4 compatibility and Linux-restricted supportJérémie Astori2016-12-081-4/+17
| | | | | | | | | | - Make build_entry compatible with Python 2.4 - Re-add missing warning/comment that was forgotten while refactoring - Replace `all()` with a good ol' for-loop Python 2.4 compatibility - Make a condition check more explicit (when `state` is `query`) - Make sure this module can only be run with on a Linux distribution - Add a note about Linux-only support in the documentation - Set the version in which recursive support was added, 2.0
* Add recursive support for ACL module (fix #5053, fix #5550, fix #7276)Jérémie Astori2016-12-081-111/+116
|
* Proper author info for all remaining modulesGreg DeKoenigsberg2016-12-081-1/+1
|
* removed always for success, as data wont show on failBrian Coca2016-12-081-1/+1
|
* draft for documenting module returnsBrian Coca2016-12-081-0/+8
|
* acl: Fix X support in ACL permissionsanatoly techtonik2016-12-081-0/+3
| | | | | | | | | | | | | | | | | | If you try to set rwX permissions, ACL fails to set them at all. Expected: $ sudo setfacl -m 'group::rwX' www ... drwxrwxr-x 2 root root 4096 Nov 10 17:09 www With Ansible: acl: name=/var/www permissions=rwX etype=group state=present ... drwxrw-r-x 2 root root 4096 Nov 10 17:30 www x for group is erased. =/
* file extensions!Michael DeHaan2016-12-081-0/+295