Skip to content

Commit

Permalink
CSS-5833 Ranger group management (#21)
Browse files Browse the repository at this point in the history
* create unix users bassed on ranger relation

* Configure unix users and groups based on Ranger

* remove space

* Capitalise log message

* add unit testing

* remove system literals

* fix docstrings, comments + removed execute_command

* lint fix

* minor fixes

* refactored and added gecos

* Consistent doc strings, fix delete membership.

* typo

* typo fix

* get gecos all in one go

* Update docstring and method name

* access-control.properties file
  • Loading branch information
AmberCharitos authored Oct 24, 2023
1 parent 8df216b commit 78863a2
Show file tree
Hide file tree
Showing 4 changed files with 322 additions and 53 deletions.
12 changes: 12 additions & 0 deletions src/literals.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@

JAVA_ENV = {"JAVA_HOME": "/opt/java/openjdk"}
RANGER_POLICY_PATH = "/etc/ranger"
RANGER_ACCESS_CONTROL = """\
access-control.name=ranger
ranger.use_ugi=true
"""
RANGER_ACCESS_CONTROL_PATH = "/etc/trino/access-control.properties"

# UNIX literals
UNIX_TYPE_MAPPING = {
"user": "passwd",
"group": "group",
"membership": "group",
}

# Connector literal
CONNECTOR_FIELDS = {
Expand Down
Loading

0 comments on commit 78863a2

Please sign in to comment.