cloudera.exe.prereq_ranger_database role – Set up database and user accounts for Ranger

Note

This role is part of the cloudera.exe collection (version 3.0.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install cloudera.exe..

To use it in a playbook, specify: cloudera.exe.prereq_ranger_database.

Entry point main – Set up database and user accounts for Ranger

New in cloudera.exe 3.0.0

Synopsis

  • Set up the Apache Ranger database and its associated user accounts, ensuring proper configuration for Ranger operations.

  • Default values are used for the username, password, and database name, but these can be overwritten by setting the ranger_username, ranger_password, and ranger_database variables.

Parameters

Parameter

Comments

database_admin_password

string / required

The password for the database administrative user.

database_admin_user

string / required

The username with administrative privileges to manage the database.

database_host

string / required

The hostname or IP address of the database server to establish the connection.

database_type

string / required

Specifies the type of database to connect to (e.g., PostgreSQL, MySQL, Oracle).

Choices:

  • "postgresql"

  • "mysql"

  • "oracle"

ranger_database

string

The name of the database to be created for Ranger.

Default: "ranger"

ranger_password

string

The password for the Ranger database user.

Default: "ranger"

ranger_username

string

The username for the Ranger database user and owner of the database.

Default: "rangeradmin"

Authors

  • Cloudera Labs