Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B69917D7B for ; Fri, 7 Nov 2014 14:46:27 +0000 (UTC) Received: (qmail 88860 invoked by uid 500); 7 Nov 2014 14:46:26 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 88723 invoked by uid 500); 7 Nov 2014 14:46:26 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 88281 invoked by uid 99); 7 Nov 2014 14:46:26 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2014 14:46:26 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 322D7989AD8; Fri, 7 Nov 2014 14:46:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jan@apache.org To: commits@couchdb.apache.org Date: Fri, 07 Nov 2014 14:46:35 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [11/23] couchdb-setup git commit: add action hints add action hints Project: http://git-wip-us.apache.org/repos/asf/couchdb-setup/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-setup/commit/068bdf18 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-setup/tree/068bdf18 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-setup/diff/068bdf18 Branch: refs/heads/master Commit: 068bdf18f0c2c9d30e5fa9fb70fb9c12a0247a7c Parents: 9f1fa23 Author: Jan Lehnardt Authored: Fri Oct 31 17:47:48 2014 +0100 Committer: Jan Lehnardt Committed: Fri Oct 31 17:47:48 2014 +0100 ---------------------------------------------------------------------- src/setup_httpd.erl | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-setup/blob/068bdf18/src/setup_httpd.erl ---------------------------------------------------------------------- diff --git a/src/setup_httpd.erl b/src/setup_httpd.erl index 6a4433a..a5eb644 100644 --- a/src/setup_httpd.erl +++ b/src/setup_httpd.erl @@ -31,8 +31,19 @@ handle_setup_req(Req) -> handle_action("enable_cluster", Setup) -> io:format("~nenable_cluster: ~p~n", [Setup]); + % if admin.username && admin.password + % create admin + % if bind_address + % set bind_address + % else + % bind_address to 0.0.0.0 + % if port + % set port + % set cluster_state to cluster_enabled handle_action("finish_cluster", Setup) -> io:format("~nfinish_cluster: ~p~n", [Setup]); + % create clustered databases (_users, _replicator, _cassim/_metadata + handle_action("add_node", Setup) -> io:format("~nadd_node: ~p~n", [Setup]); handle_action("remove_node", Setup) ->