Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Tutorials > Base ServerTemplate for Linux (RSB)

Base ServerTemplate for Linux (RSB)

Objective

To learn how to use the "base" ServerTemplate as a starting point to develop custom ServerTemplates.

Note: The following ServerTemplate uses RightScripts. If you prefer to use Chef cookbooks and recipes, see the Base ServerTemplate for Linux (Chef) tutorial.

Table of Contents

Prerequisites

  • 'actor', 'designer', and 'library' user role privileges
  • For Amazon EC2, CloudStack, and other clouds that support security groups, you must have a security group defined with TCP port 22 open for SSH access and port 80 for client HTTP access.

Overview

This tutorial describes how you can quickly develop custom ServerTemplates by starting with a "base" ServerTemplate that contains the minimum set of scripts that are required to support monitoring, alerts, logging, and audit entries. Instead of building a ServerTemplate from scratch, it's recommended that you start your development with the "base" ServerTemplate if you cannot find an existing ServerTemplate in the MultiCloud Marketplace (MCM) that more closely meets your needs. 

diag-Chef_Dev_Server-v1.png

Steps

Add a Server to a Deployment

  1. Create a new deployment. See Create a New Deployment.
  2. Go to Design > MultiCloud Marketplace > ServerTemplates. Import the Base ServerTemplate for Linux (RSB) ServerTemplate.
  3. Clone the imported ServerTemplate to create an editable HEAD version. Change the name of the ServerTemplate so that it more accurately describes the type of ServerTemplate that you are going to build.
  4. (Optional) Commit the ServerTemplate so that the first committed revision of the ServerTemplate matches the original version that you imported from the MCM. You can use a simple commit message such as "Matches original imported version. No changes." This way, you'll be able to easily perform a differential between the current HEAD version and the "original" version to see an exhaustive list of all the changes.
  5. Click Add Server to add a server to the new deployment using the HEAD version of the cloned ServerTemplate (the one you just created). For more information, see Add a Server to a Deployment
    screen-BaseLinuxAddServer-v1.png
    Because the ServerTemplate supports multiple clouds, you need to select any cloud-specific resources that are required to create the server for the chosen cloud. See Add Server Assistant for details. 
    Note: It's important to create and launch a test server using the HEAD version of a ServerTemplate because it allows you to more easily add/change/remove scripts from the ServerTemplate and test the scripts on a running server without having to relaunch the server each time you make a change. 

Launch the Server

The "base" ServerTemplate only contains the bare minimum set of scripts that are common to all ServerTemplates published by RightScale, which support monitoring, alerts, logging, and detailed audit entries. 

  1. After you select an SSH Key and a Security Group, the Info tab for the server opens. Click Launch. If you are not launching from the Info tab, you can go to your deployment > Servers and click the Launch icon (Launch_icon.png) next to the server that you just added. 
  2. Because there are no missing inputs to define, scroll to the bottom of the page and click Launch. In a few minutes you will have an operational server. You can now click the server's Monitoring tab to view real-time monitoring graphs, set up alerts, and use the audit entries for  troubleshooting information as you continue your ServerTemplate development.

Next Steps

You must to post a comment.
Last modified
21:22, 16 May 2013

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.