Search in sources :

Example 16 with FreeIpaServerRequest

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.FreeIpaServerRequest in project cloudbreak by hortonworks.

the class StackToCreateFreeIpaRequestConverter method getFreeIpaServerRequest.

private FreeIpaServerRequest getFreeIpaServerRequest(Stack stack) {
    FreeIpaServerRequest request = new FreeIpaServerRequest();
    FreeIpa freeIpa = freeIpaService.findByStack(stack);
    if (freeIpa != null) {
        request.setAdminGroupName(freeIpa.getAdminGroupName());
        request.setAdminPassword(freeIpa.getAdminPassword());
        request.setDomain(freeIpa.getDomain());
        request.setHostname(freeIpa.getHostname());
    }
    LOGGER.debug("Created FreeIPA server request {} from FreeIPA {}", request, freeIpa);
    return request;
}
Also used : FreeIpa(com.sequenceiq.freeipa.entity.FreeIpa) FreeIpaServerRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.FreeIpaServerRequest)

Aggregations

FreeIpaServerRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.FreeIpaServerRequest)16 InstanceGroupRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceGroupRequest)11 Test (org.junit.jupiter.api.Test)11 NetworkRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.NetworkRequest)10 InstanceGroup (com.sequenceiq.freeipa.entity.InstanceGroup)10 Stack (com.sequenceiq.freeipa.entity.Stack)10 AwsInstanceTemplate (com.sequenceiq.cloudbreak.cloud.model.instance.AwsInstanceTemplate)9 DetailedEnvironmentResponse (com.sequenceiq.environment.api.v1.environment.model.response.DetailedEnvironmentResponse)9 Template (com.sequenceiq.freeipa.entity.Template)9 AzureInstanceTemplate (com.sequenceiq.cloudbreak.cloud.model.instance.AzureInstanceTemplate)8 InstanceTemplateRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceTemplateRequest)6 Json (com.sequenceiq.cloudbreak.common.json.Json)5 CreateFreeIpaRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.create.CreateFreeIpaRequest)4 HashMap (java.util.HashMap)4 TelemetryRequest (com.sequenceiq.common.api.telemetry.request.TelemetryRequest)3 StackAuthenticationRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.security.StackAuthenticationRequest)3 Telemetry (com.sequenceiq.common.api.telemetry.model.Telemetry)2 Backup (com.sequenceiq.freeipa.api.model.Backup)2 SecurityGroupRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.security.SecurityGroupRequest)2 FreeIpa (com.sequenceiq.freeipa.entity.FreeIpa)2