Skip to content

Apple ACL or POSIX permissions to the homebrew directory to allow multiple users to manage brew installations

License

Notifications You must be signed in to change notification settings

marcomc/ansible-role-homebrew-multi-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Homebrew Multi User ansible role

Ansible role to configure Homebrew to be managed by multiple users members of the same group.

It is possible to choose to apply the permissions via ACL or POSIX or both.

Used in Splinter, an opinionated provisioning tool for macOS.

(Soft) Requirements & Dependencies

Ansible

It was tested on the following versions:

  • 2.9

Operating systems

Target MacOS 10.15 possibly earlier versions too (not yet tested)

Example Playbook

Just include this role in your list. For example

- host: all
  vars:
    homebrew_group: "staff"
    homebrew_fix_acl_permissions: yes
  roles:
    - marcomc.homebrew_multi_user

Variables

homebrew_user: ""                  # "{{ ansible_user_id }}" # only used for posix permissions
homebrew_group: "staff"            # the name of the group you want to share the homebrew management
homebrew_fix_acl_permissions: yes
homebrew_fix_posix_permissions: no
homebrew_folders_base:
  - Cellar
  - Homebrew
  - Frameworks
  - Caskroom
  - bin
  - etc
  - include
  - lib
  - opt
  - sbin
  - share
  - share/zsh
  - share/zsh/site-functions
  - var
homebrew_folders_additional: []

Continuous integration

This role has (not yet) a travis basic test (for github) only.

Troubleshooting & Known issues

The application of POSIX permissions might fail on some existing symlink inside the /usr/local/. and that might prevent the application of ownership or permissions to the elements that follow the erroring element.

License

MIT

Copyright

Marco Massari Calderone (c) 2020 - marco@marcomc.com

About

Apple ACL or POSIX permissions to the homebrew directory to allow multiple users to manage brew installations

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published