thalesgroup.ciphertrust.cte_resource_set module – Create and manage CTE resource-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_resource_set.

New in thalesgroup.ciphertrust 1.0.0

Synopsis

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

Parameters

Parameter

Comments

classification_tags

list / elements=dictionary

Classification set to be added to the resource set

description

string

Description of the resource set

directory

string

directory path of the Resource which shall be associated with the resource-set

file

string

file name of the Resource which shall be associated with the resource-set

hdfs

boolean

Whether the specified path is a HDFS path

Choices:

  • false

  • true

id

string

Identifier of the CTE ResourceSet to be patched or deleted

include_subfolders

boolean

Flag to include subfolders in the Resource

Choices:

  • false

  • true

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 resource set

op_type

string / required

Operation to be performed

Choices:

  • "create"

  • "patch"

  • "add_resource"

  • "patch_resource"

  • "delete_resource"

resourceIndex

string

Identifier of the CTE Resource within ResourceSet to be patched or deleted

resources

list / elements=dictionary

List of resources to be added to the resource set

type

string

Type of the resource set i.e. Directory or Classification. Default value is Directory

Choices:

  • "Directory"

  • "Classification"

Examples

- name: "Create CTE ResourceSet"
  thalesgroup.ciphertrust.cte_resource_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: "RS-Ans-001"
    description: "Created via Ansible"
    type: Directory
    resources:
      - directory: "/"
        file: "*"
        include_subfolders: true
        hdfs: false
  register: resource_set

- name: "Add resource to a ResourceSet"
  thalesgroup.ciphertrust.cte_resource_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_resource
    id: "{{ resource_set['response']['id'] }}"
    resources:
      - directory: "/tmp"
        file: "*"
        include_subfolders: true
        hdfs: false

Authors

  • Anurag Jain, Developer Advocate Thales Group