Skip to content

Commit

Permalink
Merge pull request #4179 from zowe/user/zlatnikp/apimlwfdocForV2x
Browse files Browse the repository at this point in the history
  • Loading branch information
janan07 authored Feb 17, 2025
2 parents 0d5a296 + ced4a0c commit 05ce170
Show file tree
Hide file tree
Showing 15 changed files with 608 additions and 132 deletions.
129 changes: 90 additions & 39 deletions docs/user-guide/configure-apiml-zosmf-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ expertise that is needed to perform manual API ML/Zowe configuration. The **Stan
:::info Required role: system programmer
:::

## Prerequisites

Ensure that you meet the following requirements before you start your Zowe configuration:

- Install and configure z/OSMF
- Install Zowe with an SMP/E build, PSWI, or a convenience build

## Overview of Stand-alone Zowe API ML Configuration workflow

The following components are automatically enabled after performing the **Stand-alone Zowe API ML Configuration** workflow:

- API Gateway
Expand All @@ -29,84 +33,131 @@ The following components are automatically disabled:
- USS Explorer

:::note
These components can be enabled by performing manual changes in the yaml file, but making such changes to the yaml file is not recommended for simplified and optimized configuration of API ML.
These disabled components can be enabled by performing manual changes in the yaml file. Note that making such changes to the yaml file is not recommended for simplified and optimized configuration of API ML.
:::

You can execute the API ML/Zowe configuration workflow either from a PSWI during deployment or later from a created software
instance in z/OSMF. Alternatively, you can execute the configuration workflow z/OSMF during the workflow registration process.
You can execute the **Stand-alone Zowe API ML Configuration** workflow either from a PSWI during deployment or later from a created software instance in z/OSMF. Alternatively, you can execute the configuration workflow in z/OSMF during the workflow registration process.

The configuration workflow described in this article is executed directly from a deployment of the Zowe PSWI.

## Execute Stand-alone Zowe API ML Configuration workflow from PSWI
## Executing Stand-alone Zowe API ML Configuration workflow from PSWI

After Zowe installation, follow this procedure to perform Zowe API ML Configuration workflow from PSWI.

:::tip
For more information about installing Zowe server-side components with z/OSMF, see [Installing Product Software Using z/OSMF Deployments](./install-zowe-pswi-deployment.md).
:::

1. In the **Software Management** panel, click **Actions** and **Add from z/OSMF System**.
2. Specify your system name and file location path (UNIX file).
3. Click **Retrieve**.
4. Review the Deployment Jobs and click **Deployment Checklist**.
5. Follow each step outlined in the **Deployment Checklist**.

In the PSWI deployment phase, you are presented with a checklist that helps guide you during the deployment process.
![Deployment Checklist](../images/zosmf/perform-workflows.png)

![Deployment Checklist](../images/zosmf/perform-workflows.png)
6. After you complete all of the preceding steps outlined in the Deployment checklist, click **Perform workflows** to leverage configuration of API ML with z/OSMF workflows.

Each workflow appears in the panel.

:::note
The **Perform Workflows** step enables you to run either all attached workflows or just the
post-deployment workflow for mounting, which is required.
post-deployment workflow for mounting, which is required.
:::

:::caution Important
Before you start your configuration, ensure that you first perform the **Zowe Mount** workflow. For more information, see [Configure - UNIX file system mount points](https://www.newera.com/INFO/061422_zOSMF_SM.pdf) in the IBM documentation.
:::

After you successfully perform the **Zowe Mount** workflow, you can start the **Stand-alone Zowe API ML Configuration** workflow.

After you successfully performed the Zowe Mount workflow, you can start the **Stand-alone Zowe API ML Configuration** workflow.
When you select this workflow from the list of Workflow Definition Files, the following screen displays:
Select the **Stand-alone Zowe API ML Configuration** workflow from the list of Workflow Definition Files.

The following screen displays:

![Stand-alone Zowe API ML Configuration workflow](../images/zosmf/workflow-APIMLConfiguration.png)

You can see the workflow details by expanding the Workflow details panel.
This workflow has three main steps:
Expand the **Workflow Details** panel to see the workflow details and the state of each step.
This workflow is in three parts:

### 1. **Define variables**
[Define variables](#define-variables)
[Create configuration](#create-configuration)
[Perform Zowe installation](#perform-zowe-installation)

This workflow step includes the list of Zowe variables.
When you expand this step, the following screen displays:
### Define variables

First, define the main variables for your configuration.
This workflow step includes the list of Zowe variables for configuration and as well as sub-steps.

![Step1.1: Define variables](../images/zosmf/workflow-APIMLdefineMainVariables.png)
1. Expand **Define variables**.

After you complete defining the main variables for your configuration, define all ports for automatically enabled API ML services.
2. Under **Input Variables**, click **Define the main variables**.

![Step1.2: Ports](../images/zosmf/workflow-APIMLdefinePorts.png)
3. Click the **Perform** tab. The input variables are displayed by category.

Perform the following steps to execute each sub-step individually:
4. Customize workflow variables in the fields provided.
**Example:**

1. Click the title of the sub-step.
2. Select the **Perform** tab.
3. Review the step contents and update the variables that are marked by a red asterisk based on your mainframe environment.
4. Select **Next**.
5. Repeat the previous two steps to complete all items until the **Finish** option is available.
![Step1.1: Define variables](../images/zosmf/workflow-APIMLdefineMainVariables.png)

:::note
A basic validation is supported in many fields. Validation includes proper path structure, dataset name conventions, or numeric size.
The workflow, however, does not check, for example, whether a target dataset exists, or a directory has sufficient space.
:::
5. After you complete defining the main variables for your configuration, define all ports for automatically enabled API ML services.

![Step1.2: Ports](../images/zosmf/workflow-APIMLdefinePorts.png)

#### Sequence to execute steps and sub-steps in the workflow

Perform the following steps for each step and sub-step:

After both sub-steps, **Define the main variables** and **Ports** are completed, the step **Define variables** is marked as Complete.
1. Click the title of the step or sub-step.
2. Select the **Perform** tab.
3. Review the step contents and update the variables that are marked by a red asterisk based on your mainframe environment.
4. Select **Next**.
5. Repeat the previous steps in this sequent to complete all items until the **Finish** option is available.
:::note Notes
* You can click **Save**, to save your values and **Finish** to populate these values in subsequent steps.

* Basic validation is supported in many of the fields including the proper path structure, dataset name conventions, or numeric size.
The workflow, however, does not check, for example, if a target dataset exists, or if a directory has sufficient space.
:::
6. When you complete this list of Input variables, click **Next** to view the components. Tick each component in this list that you want to enable.
7. Click **Finish** to populate the values. This action customizes your workflow according to the components.
You are then presented with enabled sub-steps according to the Zowe components you specified.
8. Click each sub-step and customize component-specific variables. Click **Next** until you complete your customization of the variables.
9. Click **Finish** to apply the values.

### 2. **Create configuration**
After all sub-steps are completed, the step **Define variables** is marked as Complete.

Execute this step to create a configuration zowe.yaml file with the variable setup that was defined in the previous step.
In this step you can review your configurations and, if necessary, make further changes directly in the JCL.
When you are done, click **Finish**. The zowe.yaml file is ready, and the step is marked as Complete.
### Create configuration

This step creates a configuration zowe.yaml file with the variable setup that was defined in the **Define variables** workflow.

1. Review your configurations.
2. If necessary, customize the JCL according you your specifications and click **Finish**.
The zowe.yaml file is ready, and the step is marked as Complete.

:::note
The **Create configuration** step is mandatory. A valid zowe.yaml is required to execute the **Zowe installation** step.
:::

### 3. **Zowe Installation**

This step consumes the zowe.yaml configuration file you created in the previous step. It contains two sub-steps:
### Perform Zowe Installation

This step consumes the zowe.yaml configuration file and contains two sub-steps:

1. **Run the Zowe install** to run the `zwe install` command.
2. **Run the Zowe init** to run `zwe init mvs` and `zwe init stc` commands.
1. **Run Zowe install** to run the `zwe install` command.
2. **Run Zowe init** to run `zwe init mvs` and `zwe init stc` commands.

:::note
If you did not set up security prior this installation, you can alternatively submit the `ZWESECUR` JCL. For details, see [Configuring security](configuring-security.md).
If you did not set up security prior to this installation, you can submit the `ZWESECUR` JCL. For details, see [Configuring security](configuring-security.md).
:::

For more information about `zwe install` and `zwe init` commands, see the following articles:
* [zwe install command](../appendix/zwe_server_command_reference/zwe/zwe-install.md)
* [Configuring Zowe with zwe init](initialize-zos-system.md)

## Schema information and next steps

The **Stand-alone Zowe API ML Configuration** workflow strictly follows the Zowe v3 install and configuration schema. This workflow generates the zowe.yaml file and runs the Zowe `zwe` CLI tool.
After completing the workflow execution, you can return to the **Deployment Checklist** for the Zowe PSWI.

After completing the workflow execution, you can return to the **Deployment Checklist** for the Zowe PSWI.

After you complete the steps in the checklist you are ready to start your Zowe instance with optimized setup for Zowe API Mediation Layer.
Loading

0 comments on commit 05ce170

Please sign in to comment.