Skip to content
Snippets Groups Projects
Commit 1ae14c26 authored by matt01671's avatar matt01671
Browse files

cluster code'

parent bf75708a
Branches
No related tags found
No related merge requests found
......@@ -21,10 +21,10 @@
# - role: all-mount
# - role: all-docker
- hosts: dbs
# - hosts: dbs
roles:
- role: cluster-build
# roles:
# - role: cluster-build
- hosts: slaves
......
#!/usr/bin/env bash
echo "== Set variables =="
export user=admin
export pass=admin
......@@ -14,7 +16,6 @@ curl -XPOST "http://${user}:${pass}@${masternode}:5984/_cluster_setup" \
\"remote_node\": \"${node}\", \"node_count\": \"$(echo ${nodes[@]} | wc -w)\",\
\"remote_current_user\":\"${user}\", \"remote_current_password\":\"${pass}\"}"
curl -XPOST "http://${user}:${pass}@${masternode}:5984/_cluster_setup"\
--header "Content-Type: application/json"\
--data "{\"action\": \"add_node\", \"host\":\"${node}\",\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment