Skip to content
Snippets Groups Projects
Commit 62e22665 authored by Diego Alejandro Arias Rodriguez's avatar Diego Alejandro Arias Rodriguez
Browse files

without snapshot

parent 25da1b87
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
- hosts: COUCHGROUP - hosts: COUCHGROUP
gather_facts: true gather_facts: true
- hosts: COUCHGROUP[0] - hosts: COUCHGROUP
roles: roles:
- role: openstack-run-script - role: openstack-run-script
#roles: #roles:
......
#!/bin/sh #!/bin/bash
# export declare -a nodes=(172.26.130.79 172.26.131.9) export declare -a nodes=($1 $2)
export declare -a nodes=$1 #export declare nodes=$1
export masternode=`echo ${nodes} | cut -f1 -d' '` export masternode=`echo ${nodes} | cut -f1 -d' '`
export declare -a othernodes=`echo ${nodes[@]} | sed s/${masternode}//` export declare othernodes=`echo ${nodes[@]} | sed s/${masternode}//`
export size=${#nodes[@]} export size=${#nodes[@]}
export user='admin' export user='admin'
export pass='admin' export pass='admin'
......
- name: Run script cluster - name: Run script cluster
ansible.builtin.script: /home/alex/CCC/project/comp90024/Ansible/cluster_setup.sh COUCHGROUP script: /home/alex/CCC/project/comp90024/Ansible/cluster_setup.sh COUCHGROUP[0] COUCHGROUP[1]
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment