Note: Please go to to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > Guides > RightScale 101 > Advanced Concepts > Laws of Inheritance and Hierarchy > Inheritance of Scripts

Inheritance of Scripts

Table of Contents


A server will always inherit its scripts (RightScripts or Chef Recipes) from its ServerTemplate.  Once you've added a server to a deployment using a ServerTemplate, you cannot add/remove scripts at the server level.  The scripts that appear at the server level always reflect the scripts of the selected HEAD version or committed revision of the ServerTemplate. Therefore, you can only change a server's scripts if it's using an editable HEAD version of the ServerTemplate.  


Don't forget that on an operational server you can also use the 'Any Script' option to run any script that's currently available in your RightScale account's local collection.  See Run 'Any Script' on a Server(s).

Note: Currently, you can only use the 'Any Script' feature to run a RightScript. The ability to select and run a Chef recipe will be supported in a future release.

Changing Scripts at the Server Level

To learn how to make changes to a Current/Next Server's scripts, see Changing Scripts at the Server Level.

Best Practices

When you're actively developing ServerTemplates, it's best to launch servers that are referencing HEAD ServerTemplates.  This way, any changes that you make to the editable HEAD version is automatically reflected at the server level.  For example, if you're testing a custom PHP application ServerTemplate and you need to upgrade one of the scripts to a different revision or add/remove a script, you simply make the change to the HEAD version and it's automatically reflected at the server level.  You should always commit the ServerTemplate once you're satisfied with your changes to the HEAD version.  You should never launch Servers that are referencing a HEAD ServerTemplate in a production environment. 

Note:  Any modifications to the ServerTemplate's Boot Scripts will only take effect on future launches of that Server. Boot Scripts run during the boot phase when a server is launched or rebooted.

Since a user with the 'designer' user role privilege can make modifications to a HEAD ServerTemplate, keep in mind that such changes could directly impact currently running servers or future server launches. 

See also

You must to post a comment.
Last modified
23:10, 16 May 2013



This page has no classifications.



© 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.