Use ROS to execute the default patch baseline
ROS resources
ALIYUN::OOS::Execution: Creates a patch fix execution.
Prerequisites
To protect your Alibaba Cloud account and cloud resources, we recommend that you do not use your Alibaba Cloud account to access the service unless necessary.
A RAM role is created and granted the required permissions.
-
For more information about how to create a RAM role, see Create a RAM role for Alibaba Cloud services.
-
For more information about how to grant permissions to a RAM role, see Manage permissions for a RAM role. The following table lists the policies that contain the required permissions of the RAM role you created.
Policy
Description
AliyunOOSFullAccess
Manages OOS.
AliyunROSFullAccess
Manages ROS.
AliyunECSFullAccess
Manages Elastic Compute Service (ECS).
Procedure
Step 1: Check the parameters
Go to the label-quickSetup-config-name-map page in the CloudOps Orchestration Service (OOS) console. Review the parameters in the following table against the page content and the ALIYUN::OOS::Execution resource type of Resource Orchestration Service (ROS).
|
Parameter |
Data type |
Description |
|
OOSTemplateName |
String |
The OOS template name. |
|
ResourceType |
String |
The resource type. |
|
Targets |
Json |
The target instances to manage. |
|
Timeout |
Number |
The timeout period. |
|
CancelOnDelete |
Boolean |
Specifies whether to cancel incomplete executions when the resource is deleted. |
|
Action |
String |
The operation to perform on the patch baseline. |
|
TimerTrigger |
Json |
The execution mode of the patch baseline. |
|
WhetherCreateSnapshot |
Boolean |
Specifies whether to create snapshots for the system disks. |
|
RetentionDays |
Number |
The retention period of the snapshots. |
|
RebootIfNeed |
Boolean |
Specifies whether to restart the instances if needed. |
Step 2: Create an ROS template
After you check the parameters, create an ROS template using the Parameters, Resources, and Outputs sections.
For more information about ROS templates, see Get started with template content.
Step 3: Use the ROS template to create a stack
This section covers only the main steps for stack creation. For more information, see Create a stack.
-
Log on to the ROS> Deployment> Stacks and go to the Stacks page.
-
Click Create Stack.
-
On the Create Stack page, copy and paste the complete sample template provided in Step 2 to the Template Content field. Then, click Next.
-
Configure the template and resource stack, and click Next.
-
After you complete the Compliance Precheck and Check and Confirm steps, click Create.
-
On the Stacks page, view the created stack.
-
If the Status of the stack is Created., the stack is created.
-
If the Status of the stack is Failed, you can click Diagnostics to view the cause of the failure.
-
-
Click the Resources tab, and then click the resource ID to go to the console of the resource.
References
To create a custom patch baseline, see Create and execute a patch baseline by using ROS.