couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [11/23] couchdb-setup git commit: add action hints
Date Fri, 07 Nov 2014 14:46:35 GMT
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 <jan@apache.org>
Authored: Fri Oct 31 17:47:48 2014 +0100
Committer: Jan Lehnardt <jan@apache.org>
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) ->


Mime
View raw message