solar/doc/source/orchestration/configuration.rst
Bogdan Dobrelya e1e304c4f9 Add packer build for docker container
* Add docker Ubuntu Trusty packer template.
* Rework cmtools to install ansible and puppet
* Add support for Vagrant provider docker.
* Containers will share the host system docker daemon
  and images in the storage, so may be run nested.
* Ensure the rsyslogd and sshd is running in containers.
* Also ensure the /var/log/solar dir, which is required for docker.
* W/a Solar-hardcoded and vbox specific ssh key paths
  for docker case.
* Update FAQ and docs

Depends-on: I881d362968a10d816cbd368cb185900dfaa0b3bc
Partial-bug: #1547587

Note, vagrant does not support vm.network and exec based
provisioning for docker, so there are workarounds.

Change-Id: Idf91bd6ed2fb90601f517064705df7721aeae3fb
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-02 11:16:23 +01:00

2.5 KiB

Configuration

Orchestration is configured using two different methods.

  1. orchestration_config
  2. orchestration_entrypoints

Config options

system_log_address

Passed to executor which will run system log worker

tasks_address

Passed to executor which will run tasks worker

scheduler_address

Passed to executor which will run scheduler worker

executor

Driver name should be registered in entrypoints, see namespace_executors

tasks_driver

Driver name should be registered in appropriate entrypoints (see namespace_workers)

scheduler_driver

Driver name should be registered in appropriate entrypoints (see namespace_workers)

system_log_driver

Driver name should be registered in appropriate entrypoints (see namespace_workers)

runner

Driver name should be registered in entrypoints (see namespace_runner)

Entrypoints

Executor namespace

Note

solar.orchestration.executors

One specified in configuration will be used.

Extensions namespace

Note

solar.orchestration.extensions

Using driver namespaces for each worker - loads all workers.

Worker driver namespaces

Note

| solar.orchestration.drivers.tasks | solar.orchestration.drivers.scheduler | solar.orchestration.drivers.system_log

Only one driver can be selected from each namespace, see driver options in config.

Constructor namespace

Note

solar.orchestration.constructors

Loads callables from this namespace and executes hooks connected to those namespaces.

Constructor hooks namespaces

Note

| solar.orchestration.hooks.tasks.construct | solar.orchestration.hooks.system_log.construct | solar.orchestration.hooks.scheduler.construct

All callables in each hook will be loaded and executed before spawning executor with instance of worker. Currently all subscriptions are done in this hooks.

Runner namespace

Note

solar.orchestration.runners

Runner should be selected in solar config. Runner will be executed as a last step in solar-worker main function.