Search in sources :

Example 1 with InstallFreeIpaServicesRequest

use of com.sequenceiq.freeipa.flow.freeipa.provision.event.services.InstallFreeIpaServicesRequest in project cloudbreak by hortonworks.

the class FreeIpaUpscaleActions method installFreeIpaAction.

@Bean(name = "UPSCALE_FREEIPA_INSTALL_STATE")
public Action<?, ?> installFreeIpaAction() {
    return new AbstractUpscaleAction<>(StackEvent.class) {

        @Override
        protected void doExecute(StackContext context, StackEvent payload, Map<Object, Object> variables) {
            Stack stack = context.getStack();
            stackUpdater.updateStackStatus(stack.getId(), getInProgressStatus(variables), "Installing FreeIPA");
            InstallFreeIpaServicesRequest request = new InstallFreeIpaServicesRequest(stack.getId());
            sendEvent(context, request.selector(), request);
        }
    };
}
Also used : StackEvent(com.sequenceiq.freeipa.flow.stack.StackEvent) StackContext(com.sequenceiq.freeipa.flow.stack.StackContext) Map(java.util.Map) Stack(com.sequenceiq.freeipa.entity.Stack) CloudStack(com.sequenceiq.cloudbreak.cloud.model.CloudStack) InstallFreeIpaServicesRequest(com.sequenceiq.freeipa.flow.freeipa.provision.event.services.InstallFreeIpaServicesRequest) Bean(org.springframework.context.annotation.Bean)

Aggregations

CloudStack (com.sequenceiq.cloudbreak.cloud.model.CloudStack)1 Stack (com.sequenceiq.freeipa.entity.Stack)1 InstallFreeIpaServicesRequest (com.sequenceiq.freeipa.flow.freeipa.provision.event.services.InstallFreeIpaServicesRequest)1 StackContext (com.sequenceiq.freeipa.flow.stack.StackContext)1 StackEvent (com.sequenceiq.freeipa.flow.stack.StackEvent)1 Map (java.util.Map)1 Bean (org.springframework.context.annotation.Bean)1