BROADSoftware.ranger_modules
ranger_modules
This Ansible role includes several modules designed to manage policies in Apache Ranger.
ranger_hdfs_policies: Allows you to create, delete, or update HDFS Ranger policies. Documentation here.
ranger_hbase_policies: Allows you to create, delete, or update HBase Ranger policies. Documentation here.
ranger_kafka_policies: Allows you to create, delete, or update Kafka Ranger policies. Documentation here.
ranger_yarn_policies: Allows you to create, delete, or update Yarn Ranger policies. Documentation here.
ranger_storm_policies: Allows you to create, delete, or update Storm Ranger policies. Documentation here.
Requirements
You need the python-requests package installed on the remote node for these modules to work.
Example Playbook
Here's an example of how to use this role:
# This will give full access to user 'coxi' for the folders '/apps/coxi01' and '/user/coxi01', including all subfolders.
- hosts: edge_node1
roles:
- ranger_modules
tasks:
- ranger_hdfs_policies:
state: present
admin_url: http://ranger.mycompany.com:6080
admin_username: admin
admin_password: admin
policies:
- name: "coxi01"
paths:
- "/apps/coxi01"
- "/user/coxi01"
permissions:
- users:
- coxi
accesses:
- Write
- read
- execute
License
GNU GPL
Click the Link to view the full license text.
Apache Ranger policy management modules
ansible-galaxy install BROADSoftware.ranger_modules