private boolean setDefaultPassword(ClusterTopology topology, String configType, String property) {
    boolean setDefaultPassword = false;
    if (defaultPassword != null && ! defaultPassword.trim().isEmpty()) {
      topology.getConfiguration().setProperty(configType, property, defaultPassword);
      setDefaultPassword = true;
    }
    return setDefaultPassword;
  }
Attempt to set the default password in cluster configuration for missing password property.

@param configType       configuration type
@param property         password property name

@return true if password was set, otherwise false.  Currently the password will always be set
        unless it is null
ambari-server/src/main/java/org/apache/ambari/server/topology/validators/RequiredPasswordValidator.java