Skip to content

Commit 98e5653

Browse files
authored
Add Edge Flow Manager user role (#293)
* Add Edge Flow Manager user role * Update version_added to 3.1.0 for Edge Flow Manager setup Signed-off-by: rsuplina <[email protected]>
1 parent 872b2ca commit 98e5653

File tree

11 files changed

+796
-0
lines changed

11 files changed

+796
-0
lines changed

roles/prereq_efm/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# prereq_efm
2+
3+
Set up for efm
4+
5+
This role prepares a host for Edge Flow Manager usage by creating a dedicated system user and group named `efm`. This user is essential for running efm processes with appropriate permissions and isolation. The role can also optionally set up Access Control Lists (ACLs) on TLS entities if required for secure efm communication.
6+
7+
The role will:
8+
- Create the `efm` system user and group.
9+
- Configure home directories and other necessary local paths for the `efm` user, if required.
10+
- Ensure appropriate permissions are set for files and directories related to efm.
11+
- Configure TLS ACLs to secure efm communication, if needed.
12+
13+
# Requirements
14+
15+
- Root or `sudo` privileges are required on the target host to create system users and groups, and to configure file system permissions and ACLs.
16+
17+
# Dependencies
18+
19+
None.
20+
21+
# Parameters
22+
23+
| Variable | Type | Required | Default | Description |
24+
| --- | --- | --- | --- | --- |
25+
| | | | | This role has no configurable parameters. |
26+
27+
# Example Playbook
28+
29+
```yaml
30+
- hosts: efm_nodes
31+
tasks:
32+
- name: Set up the Edge Flow Manager user and environment
33+
ansible.builtin.import_role:
34+
name: cloudera.exe.prereq_efm
35+
```
36+
37+
# License
38+
39+
```
40+
Copyright 2025 Cloudera, Inc.
41+
42+
Licensed under the Apache License, Version 2.0 (the "License");
43+
you may not use this file except in compliance with the License.
44+
You may obtain a copy of the License at
45+
46+
https://www.apache.org/licenses/LICENSE-2.0
47+
48+
Unless required by applicable law or agreed to in writing, software
49+
distributed under the License is distributed on an "AS IS" BASIS,
50+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
51+
See the License for the specific language governing permissions and
52+
limitations under the License.
53+
```
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# Copyright 2025 Cloudera, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
argument_specs:
17+
main:
18+
short_description: Set up for Edge Flow Manager
19+
description:
20+
- Set up for Edge Flow Manager usage, notably, create the local C(efm) user.
21+
- Optionally, set up ACLs on TLS entities.
22+
author: Cloudera Labs
23+
version_added: "3.1.0"
24+
options: {}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
# Copyright 2025 Cloudera, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
- name: Converge
17+
hosts: all
18+
gather_facts: false
19+
become: true
20+
tasks:
21+
- name: Set up for Edge Flow Manager
22+
ansible.builtin.import_role:
23+
name: cloudera.exe.prereq_efm

0 commit comments

Comments
 (0)