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

fix script

parent 31aba4c5
Branches
No related tags found
No related merge requests found
# - hosts: localhost
# vars_files:
# - host_vars/nectar.yaml
# gather_facts: true
- hosts: localhost
vars_files:
- host_vars/nectar.yaml
gather_facts: true
# roles:
# - role: openstack-common
# - role: openstack-volume
# - role: openstack-security-group
# - role: cluster-security-group
# - role: openstack-instance
roles:
- role: openstack-common
- role: openstack-volume
- role: openstack-security-group
- role: cluster-security-group
- role: openstack-instance
# - hosts: instances
# vars_files:
# - host_vars/docker.yaml
# gather_facts: true
- hosts: instances
vars_files:
- host_vars/docker.yaml
gather_facts: true
# roles:
# - role: openstack-proxy
# - role: all-dependencies
# - role: all-mount
# - role: all-docker
roles:
- role: openstack-proxy
- role: all-dependencies
- role: all-mount
- role: all-docker
# - hosts: dbs
- hosts: dbs
# roles:
# - role: cluster-build
roles:
- role: cluster-build
- hosts: slaves
......
[web]
[master]
172.26.130.231
[slaves]
172.26.131.16
172.26.130.71
[dbs:children]
master
......
......@@ -19,7 +19,7 @@
script: ./templates/run.sh '{{ ansible_default_ipv4.address }}' "-name couchdb@{{ ansible_default_ipv4.address }}"
register: out
- debug: var=out.stdout_lines
# - debug: var=out.stdout_lines
# - name: Reboot machine
# become: yes
......
......@@ -5,4 +5,7 @@
# QUICK FIX
- name: Build CouchDB Cluster
script: ./templates/set-cluster.sh --node '{{ ansible_default_ipv4.address }}' --nodes (172.26.130.71 172.26.131.16 172.26.130.231) --masternode 172.26.130.231
script: ./templates/set-cluster.sh '{{ ansible_default_ipv4.address }}' "(172.26.130.71 172.26.131.16 172.26.130.231)" "172.26.130.231"
register: out
- debug: var=out.stdout_lines
\ No newline at end of file
......@@ -6,6 +6,9 @@ export pass=admin
export VERSION='3.0.0'
export cookie='a192aeb9904e6590849337933b000c99'
export uuid='a192aeb9904e6590849337933b001159'
export node="$1"
export declare -a nodes="$2"
export masternode="$3"
echo "== Set up the CouchDB cluster: =="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment