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

clean

parent 5635f716
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@
script: ./templates/install.sh
register: build
- debug: var=build.stdout_lines
# - debug: var=build.stdout_lines
# - debug: var=ansible_default_ipv4.address
......@@ -47,8 +47,11 @@
# - name: Reboot machine
# become: yes
# reboot:
# reboot_timeout: 3000
# reboot_timeout: 3000MGVjNGJjYTU2ZmZmZGQx
- name: Reboot CouchDB
script: ./templates/reboot.sh '{{ ansible_default_ipv4.address }}'
register: reboot
- debug: var=reboot.stdout_lines
\ No newline at end of file
......@@ -2,8 +2,9 @@
# declare -a conts=(`sudo docker ps --all | grep couchdb | cut -f1 -d' ' | xargs -n1 -d'\n'`)
export node="$1"
echo "== Stop the containers: =="
sudo docker stop couchdb${node}
sudo docker restart couchdb${node}
# echo "== Stop the containers: =="
# sudo docker stop couchdb${node}
echo "== Start the containers (and wait a bit while they boot): =="
sudo docker start couchdb${node}
\ No newline at end of file
# echo "== Start the containers (and wait a bit while they boot): =="
# sudo docker start couchdb${node}
\ No newline at end of file
......@@ -50,7 +50,7 @@ echo "cd /opt/couchdb/etc/;echo ${NOOENAME} >> vm.args"
sudo docker exec -u root -it couchdb${node} /bin/sh -c "export node=${node}; cd /opt/couchdb/etc/;echo -name couchdb@${node} >> vm.args;exit"
sudo docker exec -u root -it couchdb${node} /bin/sh -c "export cookie=${cookie};cd /opt/couchdb/etc/;echo -setcookie ${cookie} >> vm.args;exit"
# sudo docker exec -u root -it couchdb${node} /bin/sh -c "export flag=${flag};cd /opt/couchdb/etc/;echo ${flag} >> vm.args;exit"
sudo docker exec -u root -it couchdb${node} /bin/sh -c "cd /opt/couchdb/etc/;sed -it 's/max 9110/max 9200/g' vm.args;exit"
sudo docker exec -u root -it couchdb${node} /bin/sh -c "cd /opt/couchdb/etc/;sed -it 's/max 9100/max 9200/g' vm.args;exit"
# for cont in "${conts[@]}"; do sudo docker exec -u root -it ${cont} bash edit-vm.sh; done
#sudo docker exec -it couchdb bash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment