org.apache.whirr.service.puppet
Class PuppetInstallClusterActionHandler

java.lang.Object
  extended by org.apache.whirr.service.ClusterActionHandler
      extended by org.apache.whirr.service.ClusterActionHandlerSupport
          extended by org.apache.whirr.service.puppet.PuppetInstallClusterActionHandler
Direct Known Subclasses:
PuppetClusterActionHandler

public class PuppetInstallClusterActionHandler
extends ClusterActionHandlerSupport

Installs puppet (and ruby). After this service is configured other services can use it to setup/start other services. To test manually, run whirr launch-cluster with 1 puppet node, then ssh and confirm puppet exists


Field Summary
static String PUPPET_INSTALL_ROLE
           
 
Fields inherited from class org.apache.whirr.service.ClusterActionHandler
BOOTSTRAP_ACTION, CONFIGURE_ACTION, DESTROY_ACTION
 
Constructor Summary
PuppetInstallClusterActionHandler()
           
 
Method Summary
protected  void beforeBootstrap(ClusterActionEvent event)
           
 String getRole()
           
 
Methods inherited from class org.apache.whirr.service.ClusterActionHandlerSupport
addRunUrl, addStatement, afterAction, afterBootstrap, afterConfigure, afterDestroy, afterOtherAction, beforeAction, beforeConfigure, beforeDestroy, beforeOtherAction, getCleanupFunction, getConfiguration, getConfiguration, getConfigureFunction, getFunctionName, getInstallFunction, getStartFunction, getStopFunction, prepareRemoteFileUrl
 
Methods inherited from class org.apache.whirr.service.ClusterActionHandler
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PUPPET_INSTALL_ROLE

public static final String PUPPET_INSTALL_ROLE
See Also:
Constant Field Values
Constructor Detail

PuppetInstallClusterActionHandler

public PuppetInstallClusterActionHandler()
Method Detail

getRole

public String getRole()
Specified by:
getRole in class ClusterActionHandler

beforeBootstrap

protected void beforeBootstrap(ClusterActionEvent event)
                        throws IOException,
                               InterruptedException
Overrides:
beforeBootstrap in class ClusterActionHandlerSupport
Throws:
IOException
InterruptedException


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.