Skip to content

Commit

Permalink
Merge 6ebe637 into 4f2154e
Browse files Browse the repository at this point in the history
  • Loading branch information
pigmej committed Nov 30, 2015
2 parents 4f2154e + 6ebe637 commit 8b9b2ca
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Contents:
source/glossary
source/resource
source/orchestration
source/transports
source/examples


Expand Down
19 changes: 12 additions & 7 deletions docs/source/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ Solar Glossary
Resource
========

You can learn more about it in :ref:`Resource Details <resource_details>`
.. seealso::

You can learn more about it in :ref:`Resource Details <resource_details>`

.. _res-input-term:

Expand Down Expand Up @@ -51,26 +53,29 @@ Layer that responsible for action execution and tracking result.
Transport
=========

Used in handlers to communicate with managed by solar hosts. List of transports
should be added to a node. Transports will be added to a resource by means
of transports id.
Used in handlers to communicate with managed by solar hosts.

.. seealso::

:ref:`More details about transports <transports_details>`

Two different types of transports are used: run and sync.
Run transport - reponsible for running command on remote host.
Sync transport - uploads required information.
.. _location-id-term:

location_id
-----------
Used in transport layer to find ip address of a node. ::

'location_id': '96bc779540d832284680785ecd948a2d'

.. _transports-id-term:

transports_id
-------------
Used to find transports array that will be used for transport selection. ::

'transports_id': '3889e1790e68b80b4f255cf0e13494b1'


BAT transport
-------------
According to preferences solar will choose best available transport for
Expand Down
47 changes: 47 additions & 0 deletions docs/source/transports.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.. _transports_details:


Transports
==========

Transports are used by Solar to communicate with managed nodes.
Transports are also resuorces, so they have all features of it.
Transports should be added to a node, but if you need you can add different transports for different resources.


How it works
------------

* Each resource in solar have randomly generated :ref:`transports-id-term`, when you connect resources together,
* Solar will ensure that correct `transport_id` is passed around. then using this `transport_id` a correct real value is fetched.
* Changing transports contents will not cause resource.update action for related resources.

Sync transport
--------------

It uploads required information to target node.

Currently there are following sync transports available:

* ssh
* rsync
* solar_agent
* torrent


Run transport
-------------

It is responsible for running command on remote host.

Currently there are following run transports available:

* ssh
* solar_agent



BAT transport
-------------

A transport that will automaticaly select best available transport (BAT) that is available for given resource. Currently it's default enabled transport, so when you add more transports to your system, then everything happens automaticaly.

0 comments on commit 8b9b2ca

Please sign in to comment.