DC on Docker with OpenSwitch
Creating your own data-center (DC) on your laptop with Ansible and Docker-Compose in a snap!
Here is dc-on-docker in action, which is the step-by-step screen cast how to create dc-on-docker on your laptop with vagrant, docker, and OpenSwitch.
Ansible 2.1 and above, because OpenSwitch ansible roles, e.g. ops switch role, depends on Ansible 2.1 modules.
|1
+--+---+
| fab1 |
++---+-+
|2 |3
+----+ +----+
|1 |1
+---+----+ +----+---+
| spine1 | | spine2 |
++--+--+-+ +-+--+--++
|2 |3 |4 |2 |3 |4
+------+ | | | | +------+
| | +-------|--|-----+ |
| +-----|----------+ | | |
| | | | | |
| | +----+ +----+ | |
|1 |2 |1 |2 |1 |2
+-+---+-+ +-+---+-+ +-+---+-+
| leaf1 | | leaf2 | | leaf3 |
+---+---+ +---+---+ +---+---+
|3 |3 |3
Single playbook to setup the above topology. It's basically
It's primarily the docker-compose
with the new docker networking
stuff, with additional tweaks for OpenSwitch interfaces:
$ ansible-playbook utils/setup.yaml
Now, you're ready for play, and of course, it's called site.yaml
:
$ ansible-playbook site.yaml
Teardown the topology, once you have a fun:
$ ansible-playbook utils/teardown.yaml
Here is the screenshot
of the ansible-playbook site.yaml
for your reference.
Enjoy and happy hacking!