Merge pull request #120 from dshulyak/lxc_readme

Add README for lxc example
This commit is contained in:
Jędrzej Nowak 2015-09-07 09:28:32 +02:00
commit e776d7f01f

25
examples/lxc/README.md Normal file
View File

@ -0,0 +1,25 @@
Bootstraping lxc containers using solar and roles from os-ansible-deployment
At first run:
`python examples/lxc/example-lxc.py deploy`
It will do several things:
* Prepare about ~10 containers on solar-dev1
* Add linux bridge on solar-dev and solar-dev1 with uid br-int53
* Setup vxlan tunnel for solar-dev and solar-dev1
* Generate ssh key and inject it into containers
Later this containers can be used as regular nodes in solar.
Check rabbitmq example at the end of the file.
To deploy everything use usual solar commands.
```
solar changes stage -d
solar changes process
solar changes run-once last
watch -n 1 solar changes report last
```
Wait until all actions have state `SUCCESS`