Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Role to create a new user in the runtime local user registry (eg. eas…
Browse files Browse the repository at this point in the history
…user)
  • Loading branch information
tombosmansibm committed Apr 29, 2019
1 parent 4de3294 commit 65b0e51
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aac/create_user_registry_user/defaults/main.yml
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
18 changes: 18 additions & 0 deletions aac/create_user_registry_user/meta/main.yml
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
30 changes: 30 additions & 0 deletions aac/create_user_registry_user/tasks/main.yml
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

0 comments on commit 65b0e51

Please sign in to comment.