Search in sources :

Example 1 with AwsProvider

use of com.netflix.spinnaker.halyard.config.model.v1.providers.aws.AwsProvider in project halyard by spinnaker.

the class OrcaProfileFactory method setProfile.

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
    super.setProfile(profile, deploymentConfiguration, endpoints);
    profile.appendContents(profile.getBaseContents());
    AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws();
    if (awsProvider.isEnabled()) {
        profile.appendContents("default.bake.account: " + awsProvider.getPrimaryAccount());
        profile.appendContents("default.securityGroups: ");
        profile.appendContents("default.vpc.securityGroups: ");
    }
    String pipelineTemplates = Boolean.toString(deploymentConfiguration.getFeatures().getPipelineTemplates() != null ? deploymentConfiguration.getFeatures().getPipelineTemplates() : false);
    profile.appendContents("pipelineTemplates.enabled: " + pipelineTemplates);
    // For backward compatibility
    profile.appendContents("pipelineTemplate.enabled: " + pipelineTemplates);
}
Also used : AwsProvider(com.netflix.spinnaker.halyard.config.model.v1.providers.aws.AwsProvider)

Aggregations

AwsProvider (com.netflix.spinnaker.halyard.config.model.v1.providers.aws.AwsProvider)1