Configuring Zowe with z/OSMF Workflows
Configuring Zowe with z/OSMF Workflows
After you install Zowe, you can register and execute the z/OSMF workflows in the web interface to perform a range of Zowe configuration tasks. z/OSMF helps to simplify the Zowe configuration tasks and does not require the level of expertise that is needed to perform manual Zowe configuration. This configuration method also runs the zwe init
command to initialize Zowe z/OS runtime.
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
You can complete the following tasks with the z/OSMF workflow:
- Configure the Zowe instance directory
- Enable the API ML Gateway
- Enable the metrics service
- Enable the API catalog
- Enable automatic discovery
- Enable a caching service
- Enable an application server
- Enable the ZSS component
- Enable the jobs API
- Enable the files API
- Enable JES Explorer
- Enable MVS Explorer
- Enable USS Explorer
You can execute the 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.
Configure the Zowe instance directory
The Zowe instance directory contains configuration data that is required to launch a Zowe runtime. This includes port numbers, location of dependent runtime such as Java, Node, z/OSMF, as well as log files. When Zowe is started, configuration data is read from files in the instance directory and logs will be written to files in the instance directory. Zowe has three runtime systems: the z/OS Service microservice server, the Zowe Application Server, and the Zowe API Mediation Layer microservices.
Register the ZWECONF.xml workflow definition file in the z/OSMF web interface to create a Zowe instance directory and start the Zowe started task. The path to the workflow definition file is <pathPrefix>/workflows/
After you register the workflow definition file, perform the following steps to complete the process:
- Define variables
The workflow includes the list of instance configuration and the Zowe variables. Enter the values for variables based on your mainframe environment, Zowe instance configuration, and wanted components.
-
Create configuration
Execute the step to create a configuration zowe.yaml file with the variable setup that was defined in step 1.
-
Run Zowe install
Execute the
zwe install
command with the previously stored zowe.yaml file as a parameter.If you receive an error message (such as RC higher than 0), ensure that you edit incorrect input values or system setup before you re-run the
zwe install
command. To overwrite changed output, edit the step by adding the--allow-overwritten
tag to the install command.Example: Command that re-runs the installation
zwe install -c '/path/zowe.yaml' --allow-overwritten
-
Run Zowe init
Execute the
zwe init
command with the previously stored zowe.yaml file as a parameter.noteMessages and error codes from the subsequent JOBS command are not forwarded back to z/OSMF.
The
zwe init
command is a combination of the following sub-commands that define configuration:- mvs
Copies the data sets that are provided with Zowe to custom data sets. - security
Creates user IDs and security manager settings. - apfauth
APF authorizes the LOADLIB that contains the modules that perform priviledged security calls on z/OS. - certificate
Configures Zowe to use TLS certificates. - vsam
Configures the VSAM files that help run the Zowe caching service for high availability (HA) - stc
Configures the system to launch the Zowe started task.
If you execute the
init
step again, perform one of the following steps:- Manually delete failed artifacts that are created from previous
init
steps. - Edit the step by adding the
--allow-overwritten
tag to theinit
command.
Example: Command that re-runs init
zwe init -c '/path/zowe.yaml' --allow-overwritten
- mvs
After you execute each step, the step is marked as complete. After completing the workflow execution, you can view the Zowe started task.
Execute the configuration workflow
You can use the following methods to execute the configuration workflow:
- Directly from a PSWI during deployment
- From a deployed software instance (SI)
- From the Workflows tab in the z/OSMF web UI