def run_bootstrap(data, bootstrap_args, overwrite = false)
      node_name = data['name']
      args = setup_bootstrap_args(bootstrap_args, data)
      delete_client_node(node_name) if overwrite

      ui.info "Bootstrapping node #{node_name}"
      run_cmd(Chef::Knife::Bootstrap, args)
    rescue StandardError => e
      raise if Chef::Config[:verbosity] == 2
      ui.warn "bootstrap of node #{node_name} exited with error"
      humanize_exception(e)
      false
    end
def run_bootstrap(data, bootstrap_args, overwrite = false)
      node_name = data['name']
      args = setup_bootstrap_args(bootstrap_args, data)
      delete_client_node(node_name) if overwrite

      ui.info "Bootstrapping node #{node_name}"
      run_cmd(Chef::Knife::Bootstrap, args)
    rescue StandardError => e
      raise if Chef::Config[:verbosity] == 2
      ui.warn "bootstrap of node #{node_name} exited with error"
      humanize_exception(e)
      false
    end
Setup the bootstrap args and run the bootstrap command