@Override
  public boolean isBluePrintDeployed() {

    List<TopologyRequestEntity> topologyRequests = topologyRequestDAO.findByClusterId(getClusterId());

    // Iterate through the topology requests associated with this cluster and look for PROVISION request
    for (TopologyRequestEntity topologyRequest: topologyRequests) {
      TopologyRequest.Type requestAction = TopologyRequest.Type.valueOf(topologyRequest.getAction());
      if (requestAction == TopologyRequest.Type.PROVISION) {
        return true;
      }
    }

    return false;
  }
Returns whether this cluster was provisioned by a Blueprint or not.
@return true if the cluster was deployed with a Blueprint otherwise false.
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java