|
| 1 | +# cm_agent |
| 2 | + |
| 3 | +Install Cloudera Manager agent packages. |
| 4 | + |
| 5 | +This role installs the Cloudera Manager agent packages on a target host and configures it to connect to a specified Cloudera Manager server. The management of the agent's version is handled implicitly through the configured package repository profile. |
| 6 | + |
| 7 | +The role will: |
| 8 | +- Install the necessary Cloudera Manager agent packages. |
| 9 | +- Configure the agent to point to the `cloudera_manager_host`. |
| 10 | +- Enable and start the Cloudera Manager agent service. |
| 11 | + |
| 12 | +# Requirements |
| 13 | + |
| 14 | +- A valid Java Development Kit (JDK) is required on the target host. Refer to `cloudera.exe.prereq_jdk` for examples of installation options. |
| 15 | +- A valid Cloudera Manager package repository must be configured and accessible on the target host. Refer to `cloudera.exe.cm_repo` for examples of configuration options. |
| 16 | + |
| 17 | +# Dependencies |
| 18 | + |
| 19 | +None. |
| 20 | + |
| 21 | +# Parameters |
| 22 | + |
| 23 | +| Variable | Type | Required | Default | Description | |
| 24 | +| --- | --- | --- | --- | --- | |
| 25 | +| `cloudera_manager_host` | `str` | `True` | | Hostname of the Cloudera Manager server (e.g., `cm.example.com`). | |
| 26 | + |
| 27 | +# Example Playbook |
| 28 | + |
| 29 | +```yaml |
| 30 | +- hosts: cm_agents |
| 31 | + tasks: |
| 32 | + - name: Install Cloudera Manager agent on hosts |
| 33 | + ansible.builtin.import_role: |
| 34 | + name: cloudera.exe.cm_agent |
| 35 | + vars: |
| 36 | + cloudera_manager_host: cm.mycluster.internal |
| 37 | +``` |
| 38 | +
|
| 39 | +# License |
| 40 | +
|
| 41 | +``` |
| 42 | +Copyright 2024 Cloudera, Inc. |
| 43 | + |
| 44 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 45 | +you may not use this file except in compliance with the License. |
| 46 | +You may obtain a copy of the License at |
| 47 | + |
| 48 | + https://www.apache.org/licenses/LICENSE-2.0 |
| 49 | + |
| 50 | +Unless required by applicable law or agreed to in writing, software |
| 51 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 52 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 53 | +See the License for the specific language governing permissions and |
| 54 | +limitations under the License. |
| 55 | +``` |
0 commit comments