Skip to main content

Configuration management and implicit dependency setup for Docker containers in SaltStack.

Project description

Salt Container-Map

Configuration management and implicit dependency setup for Docker containers in SaltStack.

Project: https://github.com/merll/salt-container-map

Docs: Basic usage is provided in the state module. Details about container configurations are available in the docs for Docker-Map.

Overview

This package contains SaltStack modules for configuring Docker containers. They do not replace, but complement Salt’s built-in dockerio module in the following aspects:

  • Container dependencies that have to be followed during startup and shutdown do not have to be modelled via require or require_in. Instead, these are implicitly defined through their shared volumes and links.

  • For the purpose of sharing data between containers, virtual volumes can be created via a minimal runnable image (tianon/true obtained from the public Docker registry). These are considered during the dependency check and become adjusted with necessary file system permissions during startup.

  • When the configuration of a container is modified, the affected containers and their dependents can automatically be shut down and recreated.

  • Image updates can also result in an automated shutdown and recreation of containers and their dependents, without explicit watch or onchanges.

An example is documented in the state module.

Installation

Besides the usual package installation, a few simple post-installation steps are required. They are described in the docs.

Modules

Custom renderer

Container configurations can be set in both pillars and states. Pillars have the advantage that they are loaded automatically before any state (e.g. container_map.updated) or execution module uses it. Usually the disadvantage is that pillars cannot refer to other pillars. This package however provides a custom renderer lazy_yaml along with custom tags !pillar and !grain, which are resolved to their values on the minion just before the container maps and their configurations are instantiated.

By default, container maps are loaded from a pillar container_maps. This can be changed in the configuration by setting the configuration value container_map.pillar_name.

State and execution module

The modules distributed to the minions provide the functionality as outlined in the overview. A usage example is included in the state module documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

salt-container-map-0.2.2.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

salt_container_map-0.2.2-py2.7.egg (54.2 kB view details)

Uploaded Source

File details

Details for the file salt-container-map-0.2.2.tar.gz.

File metadata

File hashes

Hashes for salt-container-map-0.2.2.tar.gz
Algorithm Hash digest
SHA256 dec1be6c767c56364efcfdda41dff49425bafa5d2c388ba4a510f28d8f2af689
MD5 02072e8420ce1fad40872b93820cec8e
BLAKE2b-256 5cf0784ea5095b0aa339d17ab148571ed0d93970f480dd521e712b5892460281

See more details on using hashes here.

File details

Details for the file salt_container_map-0.2.2-py2.7.egg.

File metadata

File hashes

Hashes for salt_container_map-0.2.2-py2.7.egg
Algorithm Hash digest
SHA256 344ac77836183f622ddfed5cb13880a02b91304145e83892032e1e82bd64a1ab
MD5 58006b8d8695bb4fe45b65c201cdf336
BLAKE2b-256 0fefffe57208733b8ba6810f38ea85bb1468c23838619d398e23697fe7977078

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page