thalesgroup.ciphertrust.cte_user_set module – Create and manage CTE user-sets

Note

This module is part of the thalesgroup.ciphertrust collection (version 1.0.0).

To install it, use: ansible-galaxy collection install thalesgroup.ciphertrust.

To use it in a playbook, specify: thalesgroup.ciphertrust.cte_user_set.

New in thalesgroup.ciphertrust 1.0.0

Synopsis

  • Create and edit CTE User set or add, edit, or remove a user to or from the user set

Parameters

Parameter

Comments

description

string

Description of the user set

gid

integer

Group id of the user which shall be added in user-set

gname

string

Group name of the user which shall be added in user-set

id

string

Identifier of the CTE CSI Storage Group to be patched

localNode

dictionary / required

this holds the connection parameters required to communicate with an instance of CipherTrust Manager (CM)

holds IP/FQDN of the server, username, password, and port

password

string / required

admin password of CM

server_ip

string / required

CM Server IP or FQDN

server_port

integer / required

Port on which CM server is listening

Default: 5432

server_private_ip

string / required

internal or private IP of the CM Server, if different from the server_ip

user

string / required

admin username of CM

verify

boolean / required

if SSL verification is required

Choices:

  • false ← (default)

  • true

name

string

Name of the user set

op_type

string / required

Operation to be performed

Choices:

  • "create"

  • "patch"

  • "add_user"

  • "patch_user"

  • "delete_user"

os_domain

string

OS domain name in case of windows environment

uid

integer

User id of the user which shall be added in user-set

uname

string

Name of the user which shall be added in user-set

userIndex

string

Identifier of the CTE User within UserSet to be patched or deleted

users

list / elements=string

List of users to be added to the user set

Examples

- name: "Create CTE Userset"
  thalesgroup.ciphertrust.cte_user_set:
    localNode:
        server_ip: "IP/FQDN of CipherTrust Manager"
        server_private_ip: "Private IP in case that is different from above"
        server_port: 5432
        user: "CipherTrust Manager Username"
        password: "CipherTrust Manager Password"
        verify: false
    op_type: create
    name: UserSet1
    description: "Using Ansible"
    users:
      - uname: root1234
        uid: 1000
        gname: rootGroup
        gid: 1000
      - uname: test1234
        uid: 1234
        gname: testGroup
        gid: 1234
  register: userset

- name: "Add user to UserSet"
  thalesgroup.ciphertrust.cte_user_set:
    localNode:
        server_ip: "IP/FQDN of CipherTrust Manager"
        server_private_ip: "Private IP in case that is different from above"
        server_port: 5432
        user: "CipherTrust Manager Username"
        password: "CipherTrust Manager Password"
        verify: false
    op_type: add_user
    id: "{{ userset['response']['id'] }}"
    users:
      - uname: root0001
        uid: 1001
        gname: rootGroup
        gid: 1000

Authors

  • Anurag Jain, Developer Advocate Thales Group