This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Role to create a new user in the runtime local user registry (eg. eas…
…user)
- Loading branch information
1 parent
4de3294
commit 65b0e51
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# defaults for creating an embedded ldap user | ||
# Both of these are required variables | ||
user_registry_user_username: null | ||
user_registry_user_password: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
galaxy_info: | ||
author: IBM | ||
description: Role that creates an embedded ldap user | ||
company: IBM | ||
|
||
license: Apache | ||
|
||
min_ansible_version: 2.6 | ||
|
||
galaxy_tags: | ||
- isam | ||
- ibm | ||
- password | ||
- user_registry | ||
- create | ||
|
||
dependencies: | ||
- start_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Role to create a user in the embedded ldap directory | ||
# | ||
# Example: | ||
# - name: Create easuser in the runtime registry | ||
# tags: ["oauth"] | ||
# include_role: | ||
# name: aac/create_user_registry_user | ||
# vars: | ||
# user_registry_user_username: "easuser" | ||
# user_registry_user_password: "{{ vault_easuser_password }}" | ||
# | ||
- name: Create User in the AAC User Registry | ||
isam: | ||
appliance: "{{ inventory_hostname }}" | ||
adminProxyProtocol: "{{ adminProxyProtocol | default(omit) }}" | ||
adminProxyHostname: "{{ adminProxyHostname | default(omit) }}" | ||
adminProxyPort: "{{ adminProxyPort | default(omit) }}" | ||
adminProxyApplianceShortName: "{{ adminProxyApplianceShortName | default(omit) }}" | ||
omitAdminProxy: "{{ omitAdminProxy | default(omit) }}" | ||
username: "{{ username }}" | ||
password: "{{ password }}" | ||
lmi_port: "{{ port | default(omit) }}" | ||
log: "{{ log_level | default(omit) }}" | ||
force: "{{ force | default(omit) }}" | ||
action: ibmsecurity.isam.aac.user_registry.user.add | ||
isamapi: | ||
id: "{{ user_registry_user_username }}" | ||
password: "{{ user_registry_user_password }}" | ||
when: user_registry_user_username is defined | ||
notify: Commit Changes |