Project created as set of support tools to deploy kazoo solution on docker environment. My needs:
To cover this reqirments i selected CoreOS
dist and wrote this tools.
Project ready to deploy kazoo as cluster with zones and as All in one
with one zone
To start
Container Linux Config Transpiler
utility and play folder included~/.local/bin/
folder;config.yaml
filecurl -O https://raw.githubusercontent.com/sergey-safarov/kazoo-configs-docker/master/config.yaml
vi config.yaml
ignition
datact -in-file config.yaml
ignition
data into Amazon CoreOS instance
creation dialog as user-data
CoreOS
instance and wait when systemd booted.On first Amazon instance need to create docker swarm master
node
docker swarm init
On all next nodes need to join to created docker swarm cluster
using token generatd on first master node. Additonal nodes is created as workers
.
If you need, then you can switch node from worker
to master
.
Then need to create docker swam network
docker network create --driver overlay --attachable --subnet 192.168.30.0/24 --gateway 192.168.30.1 kazoo
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-core.git /etc/kazoo/kazoo-configs-core
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-freeswitch.git /etc/kazoo/kazoo-configs-freeswitch
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-haproxy.git /etc/kazoo/kazoo-configs-haproxy
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-couchdb.git /etc/kazoo/kazoo-configs-couchdb
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-kamailio.git /etc/kazoo/kazoo-configs-kamailio