cloudera.services.ssb_project module – Manage SSB projects
Note
This module is part of the cloudera.services collection (version 1.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 git+https://github.com/cloudera-labs/cloudera.services.git.
To use it in a playbook, specify: cloudera.services.ssb_project.
New in cloudera.services 1.0.0
Synopsis
Create, delete, or manage Cloudera SSB projects.
The module supports
check_mode.Project fields such as
name,description, andmv_prefixare immutable after creation.Updates to
sync_source_configare not yet implemented.
Parameters
Parameter |
Comments |
|---|---|
The path to a client certificate for authenticating to the API endpoint. |
|
The path to a client key for authenticating to the API endpoint. |
|
A flag to enable debug logging of the module’s execution. Choices:
|
|
A description of the project. This field is immutable after project creation. |
|
A flag to force a refresh of the API request, ignoring any cached results. Choices:
|
|
A flag to force basic authentication for API requests. Choices:
|
|
The User-Agent string to send with API requests. Default: |
|
The unique identifier of the project. This parameter is mutually exclusive with This field is read-only and cannot be modified after creation. |
|
The materialized view prefix for the project. This field is immutable after project creation. |
|
The name of the project. Required when creating a new project ( This parameter is mutually exclusive with This field is immutable after project creation. |
|
The number of items to return per page in a paginated API response. Default: |
|
The desired state of the project. Use Use Use Choices:
|
|
Configuration for the project’s sync source. Updates to this field are not yet implemented. |
|
Whether to allow deletions from the sync source. Choices:
|
|
The branch to sync from the repository. |
|
The URL to clone the sync source repository. |
|
Credentials for accessing the sync source. |
|
The password for authentication. Required when |
|
The passphrase for the SSH key. Optional when |
|
The SSH private key for authentication. Required when |
|
The SSH public key for authentication. Required when |
|
The type of credential. Use Use Choices:
|
|
The username for authentication. Required when |
|
The type of sync source. |
|
The timeout in seconds for any API requests. Default: |
|
The base URL of the API endpoint, including the port if necessary. |
|
The password for authenticating to the API endpoint. |
|
The username for authenticating to the API endpoint. |
|
A flag to enable or disable GSSAPI authentication for API requests. Choices:
|
|
A flag to enable or disable the use of a proxy for API requests. Choices:
|
|
A flag to enable or disable SSL certificate validation for API requests. Choices:
|
Examples
- name: Create a minimal SSB project
cloudera.services.ssb_project:
name: "my-project"
state: present
- name: Create an SSB project with description and mv_prefix
cloudera.services.ssb_project:
name: "my-project"
description: "My analytics project"
mv_prefix: "analytics_"
state: present
- name: Ensure project exists (idempotent)
cloudera.services.ssb_project:
name: "my-project"
state: present
- name: Delete an SSB project by name
cloudera.services.ssb_project:
name: "my-project"
state: absent
- name: Delete an SSB project by id
cloudera.services.ssb_project:
id: "12345"
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The project details. Returned: when state is present |
|
The ID of the active environment for the project. Returned: when available |
|
A description of the project. Returned: when available |
|
The unique identifier of the project. Returned: always |
|
The materialized view prefix for the project. Returned: when available |
|
The name of the project. Returned: always |
|
Configuration for the project’s sync source. Returned: when available |
|
Whether to allow deletions from the sync source. Returned: when available |
|
The branch to sync from the repository. Returned: when available |
|
The URL to clone the sync source repository. Returned: always |
|
Credentials for accessing the sync source. Returned: when available |
|
The password for authentication. Returned: when available |
|
The passphrase for the SSH key. Returned: when available |
|
The SSH private key for authentication. Returned: when available |
|
The SSH public key for authentication. Returned: when available |
|
The type of credential (e.g., password, ssh). Returned: always |
|
The username for authentication. Returned: when available |
|
The type of sync source. Returned: always |
|
Returns the captured REST API log. Returned: when supported |
|
Returns a list of each line of the captured REST API log. Returned: when supported |