Configuring environment variables for agents
Each agent requires its own environment values. Refer to the agent-specific
.env.agent.<agent-name>.example file and update the values for your target
environment.
Deploy agent services
- Create the environment file in the respective agent
folder:
Each agent requires a separate environment file.agents/<agent-name>/.env.agent.<agent-name>Example for the Automation Insight agent:cp agents/automation-insight-agent/.env.agent.automation-insight.example \ agents/automation-insight-agent/.env.agent.automation-insight -
Edit the file on Linux (AMD64 system):
vi agents/automation-insight-agent/.env.agent.automation-insight -
If you are using zCX, create or update the file using a supported editor.
For example:nano agents/automation-insight-agent/.env.agent.automation-insight
Common agent environment variables
Agents typically require the following values:
| Variable | Is the variable mandatory? | Description |
|---|---|---|
| AGENT_AUTH_TOKEN | Yes | Specifies the authentication token that the agent uses. Note: The API key must match the name
specified in the API Key field when activating agent registration.
|
| AIOPS_TOKEN | No | Specifies the AIOps token. The agent inherits this value from .env.core or
overrides it in the agent environment file. |
Automation insight agent environment values
Configure the environment variables for the Automation Insight agent that provides automation monitoring and insights.
| Variable | Is the variable mandatory? | Description | Default Value |
|---|---|---|---|
| AGENT_AUTH_TOKEN | Yes | Specifies the authentication token that the agent uses to verify and authenticate incoming requests. | None |
Workload Scheduler agent environment values
Configure the environment variables for the Workload Scheduler agent that manages workload scheduling operations.
| Variable | Is the variable mandatory? | Description | Default Value |
|---|---|---|---|
| AGENT_AUTH_TOKEN | Yes | Specifies the authentication token that the agent uses to verify and authenticate incoming requests. | None |
OMEGAMON Insight agent environment values
Configure the environment variables for the OMEGAMON Insight agent that provides system monitoring and performance insights.
| Variable | Is the variable mandatory? | Description | Default Value |
|---|---|---|---|
| AGENT_AUTH_TOKEN | Yes | Specifies the authentication token that the agent uses to verify and authenticate incoming requests. | None |
Support agent environment values
Before configuring the environment variables for the Support Agent, ensure that you have completed the setup and configuration described in Ansible Automation Platform (AAP).
Configure the environment variables for the Support agent that handles support and troubleshooting operations.
| Variable | Is the variable mandatory? | Description | Default Value |
|---|---|---|---|
| AAP_ENDPOINT | Yes | Specifies the URL or endpoint of the Ansible Automation Platform (AAP) server that the application connects to for job execution and automation tasks. | None |
| AAP_USERNAME | Yes | Specifies the username used to authenticate with the Ansible Automation Platform (AAP). | None |
| AAP_PASSWORD | Yes | Specifies the password associated with the AAP user account for authentication when connecting to the Ansible Automation Platform. | None |
| AAP_VERSION | No | Specifies the Ansible Automation Platform API version used for communication. | v2 |
| EXTERNAL_API_KEY | No | Specifies the API key used to authenticate requests to an external service or third-party API required by the application. | WXA4Z_SAMPLE_API_KEY |
| SEND_DUMP_TRANSFER_ID | Yes | Specifies the transfer identifier used when sending z/OS dump files to the configured destination. | sample_id |
| SEND_DUMP_TRANSFER_PASSWORD | No | Specifies the password associated with the dump transfer account or transfer identifier for secure authentication of dump transfer operations. | sample_passwd |
| TAKE_DUMP_JOB_TEMPLATE | No | Specifies the name of the Ansible Automation Platform job template used to initiate and capture a z/OS dump. | Take z/OS dump |
| SEND_DUMP_JOB_TEMPLATE | No | Specifies the name of the Ansible Automation Platform job template used to transfer a captured z/OS dump to the configured target location. | z/OS Send Dump |
| AGENT_AUTH_TOKEN | Yes | Specifies the authentication token that the agent uses to verify incoming requests. Ensure that the token is valid and authorized for agent access. | None |
Upgrade agent environment values
Before you install the upgrade agent, ensure that you deploy the Token Exchange Service for pass ticket generation.
Configure the environment variables for the Upgrade agent that manages system upgrades and updates.
| Variable | Is the variable mandatory? | Description | Default Value |
|---|---|---|---|
| AGENT_AUTH_TOKEN | Yes | Specifies the authentication token that the agent uses to verify and authenticate incoming requests. Ensure the token is valid and authorized for agent access. | None |
| HOST_NAME | Yes | Specifies the host name with the full path for serving files. | None |
| ENABLE_DOC_INGESTION | No | Enables document ingestion on startup. | TRUE |
zRAG agent environment values
Configure the environment variables required for the zRAG agent to support external retrieval-augmented generation capabilities.
| Variable | Is the variable mandatory? | Description | Default Value |
|---|---|---|---|
| ENABLE_WEB_SEARCH | No | Boolean variable that enables web search capability for the zRAG agent. | False |
| SERPER_API_KEY | No | Specifies the Serper API key for web search functionality. | None |
| AGENT_AUTH_TOKEN | Yes | Specifies the authentication token that the agent uses to verify and authenticate incoming requests. Ensure the token is valid and authorized for agent access. | None |
Serper API key is optional; the agent works without it. For information on obtaining a Serper API key, see Serper.
For more information on enabling web search, see Configuring web search for zRAG agent.
Set Up the Ansible Platform Agent (Required for the Support Agent)
- Create a new inventory.
- Specify a name, organization, and optional description.
- In the variables section, add the following values:
_BPXK_AUTOCVT: 'ON' ZOAU_HOME: '{{ ZOAU }}' PYTHONPATH: '' PYTHONSTDINENCODING: cp1047 LIBPATH: '{{ ZOAU }}/lib:{{ PYZ }}/lib:/lib:/usr/lib:.' PATH: '{{ ZOAU }}/bin:{{ PYZ }}/bin:/bin:/var/bin' _CEE_RUNOPTS: FILETAG(AUTOCVT,AUTOTAG) POSIX(ON) _TAG_REDIR_ERR: txt _TAG_REDIR_IN: txt _TAG_REDIR_OUT: txt LANG: C - Save the inventory.
- Create a new host.
- Specify a name, assign the host to the inventory that you created, and add an optional description.
- In the variables section, add the following
values:
ansible_host: IP Address of the LPAR (xx.xx.xx.xx) ansible_user: user that will perform the actions on the LPAR ansible_python_interpreter: /path/to/your/pyz/bin/python PYZ: /path/to/your/pyz PYZ_VERSION: '3.xx' ZOAU: /path/to/your/zoau/folder ZOAU_PYTHON_LIBRARY_PATH: ''
Create credentials that allow Ansible Automation Platform to access the source control repository and the target z/OS system.
- Create a new credential.
- Specify a name and optional description.
- Select Source Control as the credential type.
- Paste the SSH private key into the appropriate field and configure any additional required
values.
Ensure that the corresponding public key exists in the source control repository.
- Save the credential.
- Create a new credential.
- Specify a name and optional description.
- Select Machine as the credential type.
- Paste the SSH private key whose public key is configured on the target LPAR.
- Save the credential.
- Create a new project.
- Specify a name and optional description.
- Select an execution environment.
- Select Git as the source control type if the playbooks are stored in Git.
- Specify the repository URL and branch, if required.
- Select the source control credential that you created.
- Save the project.
- Create a new job template.
- Specify a name and optional description.
- Select the inventory that you created.
- Select the project that you created.
- Select a playbook from the Playbook list.
- Save the job template.
- Repeat these steps for each additional playbook.
- Click on a job template.
- Select Surveytab.
- Create the following survey questions for the playbook job template that you are editing.
- Dump Collection Template:Configure the following survey questions:
Table 1. Question Variable name Answer type Default value Please enter the title of the dump dump_titleText None Please enter the job name or job names to include in the dump jobnameText None Please enter the SDATA parameters sdataText (ALLNUC,CSA,GRSQ,LPA,LSQA,PSA,RGN,SQA,SUM,SWA,TRT)Please enter the data set name to copy the dump into copy_ds_nameText None - Dump Upload TemplateConfigure the following survey questions:
Table 2. Question Variable name Answer Type Please enter your transfer ID transfer_idText Please enter your transfer password transfer_pwPassword Please enter the data set to send ds_to_sendText Please enter the case number to submit the data set to case_numText
- Dump Collection Template:
- After you add the survey questions, enable the survey on the Survey tab.
- You can now run the job templates and provide the required input values when prompted.