solar-resources/examples/lxc
Łukasz Oleś 25dc2685f5 Refactor VirtualResources
- rename VirtualResource to Composer
- rename event parameter depend_action to child_action
- rename values parameter to input

Closes-bug: #1526780

Change-Id: Ib974e14ff4bda44c2d7d991f62aa4a06dea160ea
2015-12-29 16:50:46 +01:00
..
example-lxc.py Refactor VirtualResources 2015-12-29 16:50:46 +01:00
README.md Update lxc README 2015-09-08 08:58:04 +02:00

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 orch run-once last
watch -n 1 solar orch report last

Wait until all actions have state SUCCESS