heat/contrib/docker-plugin
Pavlo Shchelokovskyy 594dd453a8 Fix comparison with singletons
Many plases in tests code use assertEqual(AA, None),
the same with True and False and negatives of such comparisons.

As comparison to singletons must use `is` operator, appropriate usage
is assertIs, assertIsNot, assertIsNone, assertIsNotNone

These assertions are provided by the `testtools` package,
so this change is not breaking backward compatibility with Python 2.6

This second patch inlcudes the other half of the files touched by these
changes to ease the review.

Change-Id: I9965ae158f3e0dc49b93b9357a32a302ac7dc735
Closes-Bug: #1259023
2014-01-13 10:06:44 +02:00
..
plugin Allow docker plugin to run w/o deps 2013-12-10 12:47:41 -06:00
tests Fix comparison with singletons 2014-01-13 10:06:44 +02:00
__init__.py contrib: Add Docker Container plugin 2013-12-05 13:42:36 -08:00
README.md contrib: Add Docker Container plugin 2013-12-05 13:42:36 -08:00
requirements.txt contrib: Add Docker Container plugin 2013-12-05 13:42:36 -08:00

Docker plugin for OpenStack Heat

This plugin enable using Docker containers as resources in a Heat template.

1. Install the Docker plugin in Heat

NOTE: Heat scans several directories to find plugins. The list of directories is specified in the configuration file "heat.conf" with the "plugin_dirs" directive.

Running the following commands will install the Docker plugin in an existing Heat setup.

pip install -r requirements.txt
ln -sf $(cd heat/contrib/docker-plugin/plugin; pwd) /usr/lib/heat/docker
echo "plugin_dirs=$(cd heat/contrib/docker-plugin/plugin; pwd)" > /etc/heat/heat.conf

NOTE: If you already have plugins enabled, you should not run the last command and instead edit the config file "/etc/heat/heat.conf" manually.

2. Restart heat

Only the process "heat-engine" needs to be restarted to load the new installed plugin.