use of com.sequenceiq.freeipa.flow.freeipa.provision.event.services.InstallFreeIpaServicesSuccess in project cloudbreak by hortonworks.
the class InstallFreeIpaServicesHandler method accept.
@Override
public void accept(Event<InstallFreeIpaServicesRequest> event) {
StackEvent request = event.getData();
Selectable response;
try {
freeIpaInstallService.installFreeIpa(request.getResourceId());
response = new InstallFreeIpaServicesSuccess(request.getResourceId());
} catch (Exception e) {
LOGGER.error("FreeIPA service install failed", e);
response = new InstallFreeIpaServicesFailed(request.getResourceId(), e);
}
eventBus.notify(response.selector(), new Event<>(event.getHeaders(), response));
}
use of com.sequenceiq.freeipa.flow.freeipa.provision.event.services.InstallFreeIpaServicesSuccess in project cloudbreak by hortonworks.
the class FreeIpaUpscaleActions method updateClusterProxyRegistrationAction.
@Bean(name = "UPSCALE_UPDATE_CLUSTERPROXY_REGISTRATION_STATE")
public Action<?, ?> updateClusterProxyRegistrationAction() {
return new AbstractUpscaleAction<>(InstallFreeIpaServicesSuccess.class) {
@Override
protected void doExecute(StackContext context, InstallFreeIpaServicesSuccess payload, Map<Object, Object> variables) {
Stack stack = context.getStack();
stackUpdater.updateStackStatus(stack.getId(), getInProgressStatus(variables), "Update cluster proxy registration after bootstrap");
ClusterProxyUpdateRegistrationRequest request = new ClusterProxyUpdateRegistrationRequest(stack.getId());
sendEvent(context, request.selector(), request);
}
};
}
Aggregations