N1 Grid Service Provisioning System 5.0 Plan and Component Developer's Guide

Creating Plans

You can create an auto-generated plan, create a custom plan, or customize an auto-generated plan.

The provisioning system can automatically generate a plan that consists of more than one direct-run procedures. You can run this plan directly or save it for use as a template for more complex plans that you author in XML.

For deployments that involve the coordination of multiple components, multiple host sets, or both, write a plan and use the provisioning system XML schema to define operations. Such operations might include dependency checks and scripting that execute commands on an application console. Once the plan is written, you need to check it in to the plan repository.

ProcedureHow to Create an Auto-Generated Plan

You create an auto-generated plan from inside a component.

Before You Begin

To create a generated plan, you must belong to a user group that has Create, Edit, and Delete permission on the folder that contains the component for which you want to generate a plan.

Steps
  1. From the navigation menu, choose Components.

    The Components page lists the components that are already checked in.

  2. Click Change Folder.

  3. Specify the name of the folder in which to create the component, and click Change to Selected Folder.

    The Components page now lists the components in the specified folder.

  4. Click the name of the component that you want.

    The Details page for that component appears.

  5. In the Component Procedures table, select each procedure to include in the plan.

  6. In the bottom row of the Component Procedures table, click Generate Plan With Checked Procedures.

    The generated plan's Advanced Edit page appears.

  7. In the Plan field, type the new plan's name.

  8. Click Check In.


    Note –

    You might see this message: Warning - plan names and/or paths differ. This message indicates that you specified a plan name that is different from the plan name specified in the XML model. The XML model is updated according to what you type in the plan name field.


  9. Confirm the component check-in.

    1. Verify that you specified the correct plan name.

    2. If necessary, select the component's new version number.

    3. Click Continue to Check In.

    The new plan's Details page appears.

ProcedureHow to Create a Custom Plan

You can create a plan by using a schema-validating editor, such as TurboXML, or on the Advanced Edit page of the browser interface.

This procedure describes how to import a plan that you have written by using an XML editor.

Steps
  1. Write a plan.

    See the XML schema elements described in Chapter 2, Shared Schema Used by Components and Simple Plans, in N1 Grid Service Provisioning System 5.0 XML Schema Reference Guide and Chapter 4, Plan Schema, in N1 Grid Service Provisioning System 5.0 XML Schema Reference Guide.

  2. Launch the browser interface and go to the Plans page.

  3. Type the name and brief description for the plan that you want to create, and click Create.

    The Advanced Edit page for the plan appears.

    The provisioning system creates an XML skeleton for the plan.

  4. In the Plan Definition field, do the following:

    • Enter the XML for the plan.

    • To import a plan that is stored on your local system, type the full path name of the file or click the Browse button. Then, click Replace.

  5. Click Check In.

    A window appears that tells you that you are about to check in a plan. The plan is assigned Version 1.0.

  6. Click Continue To Check In.