Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Guides > Dashboard Users Guide > Design > RightScripts > Actions > Add a RightScript or Recipe to a ServerTemplate

Add a RightScript or Recipe to a ServerTemplate

Table of Contents

Objective

Add a RightScript or a Recipe to a ServerTemplate.

Prerequisites

  • The 'designer' user role
  • An editable ServerTemplate (a HEAD revision)

Overview

You have the ability to add RightScripts and recipes to ServerTemplates. In the API, RightScripts and recipes are viewed as the same object and referred to as "runnables".

RightScripts

Steps

Use the following steps to add a RightScript to a ServerTemplate and place it in the proper sequence.

  1. Go to Design > ServerTemplates and click the ServerTemplate that you are adding the RightScript to. You can use the "Filter by" search box to help if you have many ServerTemplates in the list.

screen-servertemplates.png

Hint:  Click the Help action button to toggle the context sensitive Help Text built into the RightScale Dashboard. The Help Text contains useful overview information to assist you wherever you are within the Dashboard. If you are not yet familiar with ServerTemplates and the MultiCloud Marketplace, please take a minute to read the Help Text.

 

  1. Click the ServerTemplate's Scripts tab.

RightScripts can be added to ServerTemplates as either a Boot Sequence, Operational, or Decommission Sequence scripts.

  1. Click Modify.  The Script Selection window opens.
    1. Select RightScripts.
    2. Find the RightScript that you want to add. Use the Filter Recipes and RightScripts field to narrow your search. 
    3. Drag and drop the desired RightScript into place in the desired category. You can drag RightScripts up or down in the list to change the order in which they will run. 

 

screen-drag_and_drop_scripts.png

The RightScript is now listed with the other scripts of the same type (Boot Sequence, Operational, or Decomission Sequence). 

Note:  Operational Scripts can be manually run when a server is operational, whereas Decommission Scripts are executed during the shutdown phase in order to provide a more graceful server termination.

Recipes

Steps

Use the following steps to add a recipe to a ServerTemplate and place it in the proper sequence.

  1. Go to Design > ServerTemplates and click the ServerTemplate that you are adding the recipe to. You can use the "Filter by" search box to help if you have many ServerTemplates in the list.

 

Hint:  Click the Help action button to toggle the context sensitive Help Text built into the RightScale Dashboard. The Help Text contains useful overview information to assist you wherever you are within the Dashboard. If you are not yet familiar with ServerTemplates and the MultiCloud Marketplace, please take a minute to read the Help Text.

screen-SelectTemplate-v2.png

  1. Click the ServerTemplate's Scripts tab.

Recipes can be added to ServerTemplates as either an Operational Script, Boot or Decommission Sequence.

  1. Click Modify. The Recipe Selection window appears in the right pane.
    1. All the cookbooks that are attached to your ServerTemplate are listed. Select a cookbook to view its recipes. Then drag and drop recipes into the ServerTemplate. If the cookbook that you're looking for is not in the list, use the Attach Cookbooks button to view all the cookbooks in your account and select which cookbooks you would like to attach to the ServerTemplate so their recipes are available to add.

Note: as always, you can only make these changes on a HEAD revision.

screen-AddRecipetoST.png

 

 

The recipe is now listed with the others of the same type (boot, operational, or decommission). 

Note:  Operational Scripts can be manually run when a server is operational, whereas Decommission Sequence recipes are executed during the shutdown phase in order to provide a more graceful server termination.

 

You must to post a comment.
Last modified
08:36, 15 Aug 2013

Tags

This page has no custom tags.

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.