Package org.apache.whirr.service.puppet.statements

Examples of org.apache.whirr.service.puppet.statements.CreateSitePpAndApplyRoles


    super.beforeConfigure(event);
   
    if (isLastPuppetRoleIn(event.getInstanceTemplate().getRoles()).apply(getRole())) {
      Configuration config = event.getClusterSpec().getConfiguration();
      Iterable<String> roles = RolesManagedByPuppet.INSTANCE.apply(event.getInstanceTemplate().getRoles());
      addStatement(event, new CreateSitePpAndApplyRoles(roles, event.getCluster().getInstances(), config));
    }

  }
View Full Code Here


    super.beforeConfigure(event);

    if (isLastPuppetRoleIn(event.getInstanceTemplate().getRoles()).apply(getRole())) {
      Configuration config = event.getClusterSpec().getConfiguration();
      Iterable<String> roles = RolesManagedByPuppet.INSTANCE.apply(event.getInstanceTemplate().getRoles());
      addStatement(event, new CreateSitePpAndApplyRoles(roles, config));
    }

  }
View Full Code Here

TOP

Related Classes of org.apache.whirr.service.puppet.statements.CreateSitePpAndApplyRoles

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.