use of com.sequenceiq.cloudbreak.blueprint.template.views.RdsView in project cloudbreak by hortonworks.
the class BlueprintTemplateModelContextBuilder method withRdsConfigs.
public BlueprintTemplateModelContextBuilder withRdsConfigs(Iterable<RDSConfig> rdsConfigs) {
for (RDSConfig rdsConfig : rdsConfigs) {
if (rdsConfig != null) {
RdsView rdsView = new RdsView(rdsConfig);
String componentName = rdsConfig.getType().toLowerCase();
this.rds.put(componentName, rdsView);
}
}
return this;
}
use of com.sequenceiq.cloudbreak.blueprint.template.views.RdsView in project cloudbreak by hortonworks.
the class ClusterHostServiceRunner method decoratePillarWithAmbariDatabase.
private void decoratePillarWithAmbariDatabase(Cluster cluster, Map<String, SaltPillarProperties> servicePillar) throws CloudbreakOrchestratorFailedException {
RDSConfig ambariRdsConfig = rdsConfigService.findByClusterIdAndType(cluster.getOwner(), cluster.getAccount(), cluster.getId(), RdsType.AMBARI);
if (ambariRdsConfig == null) {
throw new CloudbreakOrchestratorFailedException("Ambari RDSConfig is missing for stack");
}
RdsView ambariRdsView = new RdsView(ambariRdsConfig);
servicePillar.put("ambari-database", new SaltPillarProperties("/ambari/database.sls", singletonMap("ambari", singletonMap("database", ambariRdsView))));
}
Aggregations