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

adj template?

parent 1ae14c26
No related branches found
No related tags found
No related merge requests found
# - hosts: localhost - hosts: localhost
# vars_files: vars_files:
# - host_vars/nectar.yaml - host_vars/nectar.yaml
# gather_facts: true gather_facts: true
# roles: roles:
# - role: openstack-common - role: openstack-common
# - role: openstack-volume - role: openstack-volume
# - role: openstack-security-group - role: openstack-security-group
# - role: cluster-security-group - role: cluster-security-group
# - role: openstack-instance - role: openstack-instance
# - hosts: instances - hosts: instances
# vars_files: vars_files:
# - host_vars/docker.yaml - host_vars/docker.yaml
# gather_facts: true gather_facts: true
# roles: roles:
# - role: openstack-proxy - role: openstack-proxy
# - role: all-dependencies - role: all-dependencies
# - role: all-mount - role: all-mount
# - role: all-docker - role: all-docker
# - hosts: dbs - hosts: dbs
# roles: roles:
# - role: cluster-build - role: cluster-build
- hosts: slaves # - hosts: slaves
roles: # roles:
- role: slaves-cluster # - role: slaves-cluster
# - hosts: web # - hosts: web
# vars_files: # vars_files:
......
[web] [web]
[master] [master]
172.26.132.221 172.26.130.110
[slaves] [slaves]
172.26.132.246 172.26.132.212
172.26.132.36 172.26.133.89
[dbs:children] [dbs:children]
master master
......
...@@ -34,3 +34,10 @@ declare -a conts=(`sudo docker ps --all | grep couchdb | cut -f1 -d' ' | xargs - ...@@ -34,3 +34,10 @@ declare -a conts=(`sudo docker ps --all | grep couchdb | cut -f1 -d' ' | xargs -
echo "== Start the containers (and wait a bit while they boot): ==" echo "== Start the containers (and wait a bit while they boot): =="
for cont in "${conts[@]}"; do sudo docker start ${cont}; done for cont in "${conts[@]}"; do sudo docker start ${cont}; done
for cont in "${conts[@]}"; do sudo docker exec -it ${cont} bash; done
cd /opt/couchdb/etc/
sed -i "s/STRING_TO_REPLACE/STRING_TO_REPLACE_IT/g" <file>
#sudo docker exec -it couchdb bash
\ 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