Creating virtual system patterns for resource templates#

To provision dynamic environments from a cloud system, you must create a virtual system pattern that specifies the contents of the environment.

The virtual system pattern specifies one or more virtual images. The pattern also lists the script packages to apply to the virtual images. These scripts perform tasks such as opening the firewall and installing the UrbanCode Deploy agent.

  1. On the web console for the cloud host, create a new virtual system pattern.

    This process differs depending on the type of cloud. For instructions, read the documentation for your cloud system.

    For example, for IBM Workload Deployer, click Patterns > Virtual Systems and then click the New button.

    Creating a new virtual system pattern

  2. Give the pattern a name and click OK.

  3. Click Edit.

  4. In the Parts list, find one or more base virtual images for the application.

    Note: These virtual images must have the following characteristics:

    • An installation of Java™
    • The unzip program
    • The JAVA_HOME system variable set If the image does not have one or more of these prerequisites, you can add them later with script packages or select an appropriate image.

    Restriction: For versions of UrbanCode Deploy prior to version 6.0.1.4, the image must not have more than one network card. For version 6.0.1.4 and later, the image can have more than one network card.

  5. Drag one or more copies of the base images to the editor.

    For example, the following figure shows a pattern that contains two images. Adding the image to the topology

  6. Add script packages to the nodes based on the requirements of your cloud system.

    For example, you might need to open the firewall on the images. You might also need to run script packages for security compliance or registration. To add a script package, find it in the Pattern Editor, under Scripts and then drag the script package to one node at a time.

  7. Add the Install UrbanCode Deploy Agent script package to each node.

    You do not need to specify the parameters on this script package; these parameters are filled in when you provision an environment using this pattern.

  8. Customize the pattern.

    For example, you can specify the passwords for the images by clicking the Properties icon at the top of each image. Depending on the images you are using, you might be able to specify the memory or processing power of the images, or other details about the images.

  9. Click Done editing to save the pattern.

Now you can import this pattern to a resource template. See Importing resource templates from clouds