Book Image

VMware vSphere 5.5 Cookbook

By : Abhilash G B
Book Image

VMware vSphere 5.5 Cookbook

By: Abhilash G B

Overview of this book

Table of Contents (22 chapters)
VMware vSphere 5.5 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Activating a deploy rule


The Auto Deploy rules that you create are not active and can't be used by the Auto Deploy server. Newly created rules must be activated by adding them to a ruleset. A ruleset is nothing but an array of deploy-rules, in which the rules are queued in the order in which they are added.

There are two types of rule sets:

  • Active ruleset

  • Working ruleset

How to do it…

Deploy rules can be added to the ruleset by using the Add-DeployRule cmdlet:

  • Syntax:

    Add-DeployRule –DeployRule "<Name of the Rule>" 
    
  • Example:

    Add-DeployRule -DeployRule Rule001
    Add-DeployRule -DeployRule Rule001-HP –At 0
    

Here, the -At is the queue location of the rule in the ruleset. The lower numbered rules are auctioned first by Auto Deploy:

How it works…

Only rules in the active ruleset are referenced by the Auto Deploy server when it receives an HTTP boot request. The Add-DeployRule command, by default, adds the deploy rule to both the working and active rulesets. When a machine boots for the first time...