Creating a Runbook
Create a custom runbook in Fleet Application Management by using the visual designer.
On the Runbooks list page, select Create runbook. If you need help finding the list page, see Listing Runbooks.
Creating a runbook consists of the following pages:
Run each of the following workflows in order. You can return to a previous page by selecting Previous.
1. Basic information
The Basic information page is where you provide the basic information for the runbook.
Enter the following information:
- Name: Enter a friendly name for the runbook. The name doesn't have to be unique, but it can't be changed in the Console. You can, however, change it with the API. Avoid entering confidential information.
- Description: Enter a suitable description for the runbook.
- Create in compartment: Select the compartment that you want to create the runbook in.
- Lifecycle operation compartment: Select a compartment where the specific lifecycle operation exists. To know about various lifecycle operations, see Lifecycle Operation in Fleet Application Management.
- Lifecycle operation: Select a lifecycle operation—for example, patch, discovery, provision, or custom.
- For patch or discovery lifecycle operations, enter the following information:
- Product/Product stack compartment: Select the compartment where the product or product stack is in.
- Product/Product stack: Select a product or product stack to which the task belongs from the compartment.
- OS type: Select a supported platform from the options on which the runbook runs.
- Estimated time (Hours): Select the estimated time in hours to complete the runbook execution.
- Set as default runbook: Switch on the toggle to let Fleet Application Management use this runbook as the default runbook for performing lifecycle operations.Note
You can set only one runbook for a particular lifecycle operation and product or product stack combination as the default runbook. Fleet Application Management uses the default discovery runbook of a product or product stack to discover the software inventory of the product and the default patching runbook to automatically select a runbook during the schedule creation and compliance fix tasks. - This runbook need SUDO access: Switch on the toggle if the OS type is Oracle Linux for discovering and applying patches for the software running on Compute instances.
The
sudo
access is required when product support is needed for Oracle WebLogic Server, Oracle HTTP Server (OHS), and Oracle Java, which aren't OCI-specific.Note
When the runbook hassudo
access enabled, the Fleet Application Management plugin executes the tasks with thesudo
privilege. The Fleet Application Management plugin uses a built-in sudo privilege, but it's fully controlled through the runbook propertyisSudoAccessNeeded
. See Runbook Reference.
Select Next to proceed to the next step.
2. Streamline (Design Runbook)
The Streamline (Design runbook) page is where you design a runbook workflow using the visual designer or runbook code.
With the visual designer, you can drag an action from the actions pane into the canvas, placing it where you want it in your runbook's workflow. You can also reorder actions in your workflow by dragging them to a different location.
Select Next to proceed to the next step. 3. Review
Verify the contents of the runbook in the Review page. Edit settings or return to previous screens to add information.
Select Save as draft to save the runbook initially until you're sure of all the components.Note
This draft version of the runbook isn't active, can't be used, and is marked as a Draft.To make the runbook usable after you're sure about all its tasks and streamline (sequence of execution), select Publish latest version from the runbook's details page.
The published runbook is available for use in provisioning, discovery, application of patches, or rollback, and it has an active status.Note
The runbook is created with version1
as the initial version and it has an active status.Use the oci fleet-apps-management fleet-apps-management-runbooks runbook create command and required parameters to create a custom runbook:
oci fleet-apps-management fleet-apps-management-runbooks runbook create --compartment-id <compartment_OCID> --display-name <text> --operation <text> --runbook-version <json_file_or_string> [OPTIONS]
For a complete list of flags and variable options for Fleet Application Management CLI commands, see the CLI for Fleet Application Management.
Run the CreateRunbook operation to create a custom runbook.