cloudera.exe.cm_prepare_db module – Configure the external Cloudera Manager server database

Note

This module 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.cm_prepare_db.

New in cloudera.exe 3.0.0

Synopsis

  • Configure the external Cloudera Manager server database.

Parameters

Parameter

Comments

config

path

The database properties configuration file.

Default: "/etc/cloudera-scm-server/db.properties"

database

string / required

The name of the database.

host

string / required

The database server host.

password

string / required

The password to access the database server.

port

integer / required

The database server port.

script

path / required

The script to execute.

type

string / required

The database type to install.

Choices:

  • "postgresql"

  • "oracle"

  • "mysql"

username

string / required

The username to access the database server.

Examples

- name: Prepare Cloudera Manager server external database
  cloudera.exe.cm_prepare_db:
    script: /opt/scm_prepare_database.sh
    type: postreqsql
    host: db.example.internal
    port: 7717
    database: cms
    username: cms_db_user
    password: SuperSecretPassword

Authors

  • Webster Mudge (@wmudge)