automatics.automatics.automatics_sap_profile_parameter module – Manages profile parameters in automatics systems of type ‘sap’

Note

This module is part of the automatics.automatics collection (version version_filler).

To install it, use: ansible-galaxy collection install automatics.automatics.

To use it in a playbook, specify: automatics.automatics.automatics_sap_profile_parameter.

Synopsis

  • Manages profile parameters in automatics systems of type ‘sap’

Parameters

Parameter

Comments

auth_token

string / required

automatics authentication bearer token returned from automatics_login module

execution_timeout

integer

Execution timeout in minutes for the triggered executions in automatics

hostname

string / required

Hostname of the automatics server.

instance_profile_regex

string

Regex for instance profile matching

Default: "^.+$"

parameter

list / elements=dictionary / required

Parameter to set on matching profiles and systems

name

string / required

Parameter name

value

string / required

Parameter value to be set

profile_type

string

SAP profile types to apply the given parameters

Choices:

  • "default" ← (default)

  • "instance"

  • "all"

system

list / elements=dictionary

systems in automatics to select for the operation (name matching)

dict containing ‘type’, ‘name’ and ‘client’ that must match the automatics system-type, name and client

for systems of type ‘sap’ and ‘sap-hana-db’, the ‘name’ equals the SAP SID

for systems of type ‘sap-wdp’, the ‘name’ equals <sapsid>@<node>

client

string

the client to which the system is assigned

can either be the client id or client name

Default: "default client (id=1)"

name

string / required

must match the automatics system name

type

string / required

must match the automatics system-type

Choices:

  • "sap"

  • "sap-hana-db"

  • "sap-wdp"

system_id

list / elements=integer

systems in automatics to select for the operation (id matching)

must match the automatics system-id

validate_certs

boolean

Verify the https certificate of the automatics server.

Choices:

  • false

  • true ← (default)

Notes

Note

  • either ‘system’ or ‘system_id’ is required

Examples

- name: set single profile parameter on multiple systems in default profile in matching instance profiles
  automatics_sap_profile_parameter:
    hostname: automatics.example.org
    auth_token: aW4iLCJlbWFpbCI6ImFkbWluIiw...
    validate_certs: false
    system:
      - type: sap
        sid: AUT
      - type: sap
        sid: AUS
      - type: sap-hana-db
        sid: HDB
    profile_type: all
    instance_profile_regex: ^[A-z][A-z0-9]{2}_D.+$
    parameter:
      name: rdisp/max_wprun_time
      value: 3600

- name: set multiple profile parametes on single system in all instance profiles
  automatics_sap_profile_parameter:
    hostname: automatics.example.org
    auth_token: aW4iLCJlbWFpbCI6ImFkbWluIiw...
    validate_certs: false
    system:
      type: sap
      sid: AUT
      client: client_1
    profile_type: instance
    parameter:
      - name: login/min_password_lng
        value: 16
      - name: login/min_password_letters
        value: 2
      - name: login/min_password_digits
        value: 2

- name: delete single profile parametes on single system in default profile
  automatics_sap_profile_parameter:
    hostname: automatics.example.org
    auth_token: aW4iLCJlbWFpbCI6ImFkbWluIiw...
    validate_certs: false
    system:
      type: sap
      sid: AUT
      client: 21
    profile_type: default
    parameter:
      name: rdisp/max_wprun_time
      value: ""

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

info

list / elements=dictionary

Information on all triggered automatics executions

Returned: always

Sample: [{"comment": null, "date_ended": 1676372465, "date_started": 1676372444, "parameters": {"ClientID": {"default": false, "label": "Client ID", "origin": "automatics", "type": "client", "value": "1"}, "ExecutionDelay": {"default": true, "label": "Execution Delay", "origin": "automatics", "type": "timespan", "value": "0"}, "ParameterList": {"default": false, "label": "Parameter List", "origin": "automatics", "type": "sap_param_list", "value": "[{ \"profile_name\": \"DEFAULT\", \"parameter_name\": \"rdisp/max_wprun_time\", \"old_value\": \"\", \"new_value\": \"3600\"}]"}, "SystemID": {"default": false, "details": {"name": "AUT"}, "label": "System ID", "origin": "automatics", "type": "system", "value": "1056"}, "WorkflowTimeout": {"default": true, "label": "Workflow Timeout", "origin": "automatics", "type": "timespan", "value": "3600"}}, "runtime": 20.32, "status": "succeeded", "user": "ansible", "workflow": {"description": "Set specific SAP profile parameters for systems", "id": "78b3241c-a86e-4108-a48d-b73e1898dcb9", "name": "Set specific profile parameters", "origin": "automatics"}}]

Authors

  • Manuel Sanz