You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`cloudera.cluster` is an Ansible collection that lets you manage your **[Cloudera Data Platform (CDP)](https://www.cloudera.com/products/cloudera-data-platform.html) Private Cloud** resources and interact with Cloudera Manager for both Private Cloud installations and Public Cloud Data Hub deployments. With this collection, you can:
5
+
`cloudera.cluster` is an Ansible collection that lets you manage your **[Cloudera Platform](https://www.cloudera.com/products/cloudera-data-platform.html)on premise (Private Cloud)** resources and interact with Cloudera Manager for both on premise installations and cloud Data Hub deployments. With this collection, you can:
6
6
7
-
*Create and manage [Private Cloud](https://www.cloudera.com/products/cloudera-data-platform.html) deployments and Public Cloud [Data Hubs](https://www.cloudera.com/products/data-hub.html), including:
8
-
* Manage services like Impala, NiFi, and Ozone
9
-
* Configure Cloudera Manager and `cm_agent`-enabled hosts
7
+
*Manager clusters, from `base` to `compute`
8
+
* Manage services like Impala, NiFi, Ranger, and Ozone
9
+
* Configure Cloudera Manager and `cm_agent`-enabled hosts
10
10
11
11
If you have any questions, want to chat about the collection's capabilities and usage, need help using the collection, or just want to stay updated, join us at our [Discussions](https://github.com/cloudera-labs/cloudera.cluster/discussions).
12
12
13
13
## Quickstart
14
14
15
+
See the [API documentation](https://cloudera-labs.github.io/cloudera.cluster/) for details for each plugin and role within the collection.
16
+
15
17
1.[Install the collection](#installation)
16
18
2.[Install the requirements](#requirements)
17
19
3.[Use the collection](#using-the-collection)
18
20
19
-
## API
20
-
21
-
See the [API documentation](https://cloudera-labs.github.io/cloudera.cluster/) for details for each plugin and role within the collection.
22
-
23
21
## Roadmap
24
22
25
23
If you want to see what we are working on or have pending, check out:
@@ -36,12 +34,16 @@ For more information on how to get involved with the `cloudera.cluster` Ansible
36
34
37
35
## Installation
38
36
39
-
To install the `cloudera.cluster` collection, you have several options. Please note that we have not yet published this collection to the public Ansible Galaxy server, so you cannot install it via direct namespace, rather you must specify by Git project and (optionally) branch.
37
+
To install the `cloudera.cluster` collection, you have several options.
38
+
39
+
The preferred method is to install via Ansible Galaxy; in your `requirements.yml` file, add the following:
40
40
41
-
### Option #1: Install from GitHub
41
+
```yaml
42
+
collections:
43
+
- name: cloudera.cluster
44
+
```
42
45
43
-
Create or edit your `requirements.yml` file in your project with the
44
-
following:
46
+
If you want to install from GitHub, add to your `requirements.yml` file the following:
The collection's Python dependencies alone, _not_ the required Python libraries of its collection dependencies, are in `requirements.txt`.
107
-
108
-
All collection dependencies, required and optional, can be found in `requirements.yml`; only the _required_ dependencies are in `galaxy.yml`. `ansible-galaxy` will install only the _required_ collection dependencies; you will need to add the _optional_ collection dependencies as needed (see above).
109
-
110
73
`ansible-builder`can discover and install all Python dependencies - current collection and dependencies - if you wish to use that application to construct your environment. Otherwise, you will need to read each collection and role dependency and follow its installation instructions.
111
74
112
75
See the [Collection Metadata](https://ansible.readthedocs.io/projects/builder/en/latest/collection_metadata/) section for further details on how to install (and manage) collection dependencies.
113
76
114
77
You may wish to use a _virtual environment_ to manage the Python dependencies.
115
78
116
-
See the `base`*Execution Environment* configuration in [`cloudera-labs/cldr-runner`](https://github.com/cloudera-labs/cldr-runner) as an example of how you can install the optional dependencies to suit your specific needs.
117
-
118
79
## Using the Collection
119
80
120
-
This collection is designed to work hand-in-hand with the [`cloudera-deploy` application](https://github.com/cloudera-labs/cloudera-deploy), which uses reference playbooks from the [`cloudera.exe` collection](https://github.com/cloudera-labs/cloudera.exe) and example definitions. Coming releases will decouple these collections further while maintaining backwards compatibility.
81
+
This collection is designed to interact with only the Cloudera Manager endpoint -- on cloud and on premise. It is decidedly _non-opinionated_ -- that is, these roles and plugins do not make any assumptions about supporting resources and configurations.
121
82
122
-
Once installed, reference the collection in your playbooks and roles.
83
+
Once installed, reference the collection in playbooks and roles.
123
84
124
85
For example, here we use the
125
-
[`cloudera.cluster.cm_resource` module](https://cloudera-labs.github.io/cloudera.cluster/cm_resource_module.html) to patch the Hue service with updated Knox proxy hosts:
86
+
[`cloudera.cluster.service` module](https://cloudera-labs.github.io/cloudera.cluster/service_module.html) to manage the HDFS service for a base cluster, specifically the _service-wide_ configurations and 3 _role configuration groups_:
Update the collection version using [`hatch version`](https://hatch.pypa.io/latest/version/). For example, to increment to the next minor release:
143
+
Update the collection version using [`hatch version`](https://hatch.pypa.io/latest/version/). For example, to increment to the next _minor_ release:
186
144
187
145
```bash
188
146
hatch version minor
@@ -196,50 +154,6 @@ hatch run docs:changelog
196
154
197
155
You can then examine (and update if needed) the resulting `changelog.yaml` and `CHANGELOG.rst` files before committing to the release branch.
198
156
199
-
## Tested Platforms
200
-
201
-
Active development is focused on **CDP Private Cloud** deployments and their respective platform compatibility matrices.
202
-
203
-
> [!NOTE]
204
-
> While the collection's plugins and roles can be used to deploy CDH 5.x and CDH 6.x environments, it is only possible to install a subset of their supported platform components (i.e JDK and database versions) using this tooling.
> These operational features are deprecated as of version 4.x. If you want to use or build similar features and functions, head over to the [Discussions](https://github.com/cloudera-labs/cloudera.cluster/discussions) to learn more about using the collection to achieve your platform operations needs.
224
-
225
-
This collection includes support for:
226
-
227
-
- Upgrading Cloudera Manager Server and Cloudera Manager Agents
228
-
- Upgrading CDH 5 and/or CDH6 to CDP Private Cloud Base
229
-
- Refreshing the config for running clusters, including adding new services or updating the config of existing services.
230
-
231
-
These features are potentially very dangerous and can cause damage to running clusters if used incorrectly. If you plan to use these features, please ensure that you test thoroughly on a disposable environment.
232
-
233
-
Cloudera recommends that Cloudera Professional Services be engaged before using these features, particularly as none of these operational features are covered under Cloudera Support agreements.
234
-
235
-
In order to use these capabilities you will need some permutation of the following variables:
236
-
-`cloudera_runtime_pre_upgrade` (specify the version of the legacy cluster - e.g. 5.16.2)
237
-
-`update_services` (true if you want to update the config of existing services)
238
-
-`upgrade_kts_cluster` (true to upgrade a kts cluster)
239
-
-`activate_runtime_upgrade` (true to do a patch release activation)
240
-
-`cdh_cdp_upgrade` (true to do a CDH to CDP upgrade)
241
-
-`upgrade_runtime` (true to upgrade between versions of CDH or CDP)
0 commit comments