protected void updateConfigurationProperties(String configType,
        Map<String, String> properties, boolean updateIfExists, boolean createNewConfigType) throws
    AmbariException {
    AmbariManagementController controller = injector.getInstance(AmbariManagementController.class);

    Clusters clusters = controller.getClusters();
    if (clusters == null) {
      return;
    }
    Map<String, Cluster> clusterMap = clusters.getClusters();

    if (clusterMap != null && !clusterMap.isEmpty()) {
      for (Cluster cluster : clusterMap.values()) {
        updateConfigurationPropertiesForCluster(cluster, configType,
            properties, updateIfExists, createNewConfigType);
      }
    }
  }
Create a new cluster scoped configuration with the new properties added
to the existing set of properties.
@param configType Configuration type. (hdfs-site, etc.)
@param properties Map of key value pairs to add / update.
ambari-server/src/main/java/org/apache/ambari/server/upgrade/AbstractUpgradeCatalog.java