Add metadata for client
diff --git a/docker/meta/sphinx.yml b/docker/meta/sphinx.yml
new file mode 100644
index 0000000..15f4ce3
--- /dev/null
+++ b/docker/meta/sphinx.yml
@@ -0,0 +1,44 @@
+doc:
+ name: Docker
+ description: Docker is an open source project to pack, ship and run any application as a lightweight container.
+ role:
+ {%- if pillar.docker.host is defined %}
+ host:
+ name: host
+ param:
+ version:
+ value: "{{ salt['cmd.run']('docker --version') }}"
+ {%- endif %}
+ {%- if pillar.docker.swarm is defined %}
+ {%- from "docker/map.jinja" import swarm with context %}
+ swarm:
+ name: swarm
+ param:
+ role:
+ value: {{ swarm.role }}
+ {%- if swarm.role != "master" %}
+ master:
+ value: "{{ swarm.master.host }}:{{ swarm.master.port }}"
+ {%- endif %}
+ advertise_addr:
+ value: {{ swarm.advertise_addr }}
+ {%- endif %}
+ {%- if pillar.docker.client is defined %}
+ {%- from "docker/map.jinja" import client with context %}
+ client:
+ name: client
+ param:
+ source:
+ value:
+ engine: {{ client.compose.source.engine }}
+ {%- if client.compose.source.engine == 'docker' %}
+ image: {{ client.compose.source.image|default('docker-compose') }}
+ {%- endif %}
+ {%- if client.get('service', {}) %}
+ services:
+ value:
+ {%- for name, service in client.service.iteritems() %}
+ - "{{ name }} (image {{ service.image }})"
+ {%- endfor %}
+ {%- endif %}
+ {%- endif %}
diff --git a/metadata/service/client.yml b/metadata/service/client.yml
index ac6c99d..1e92676 100644
--- a/metadata/service/client.yml
+++ b/metadata/service/client.yml
@@ -1,5 +1,7 @@
applications:
- docker
+classes:
+ - service.docker.support
parameters:
docker:
client:
diff --git a/metadata/service/host/init.yml b/metadata/service/host/init.yml
index 7e8ef5f..c8a4f26 100644
--- a/metadata/service/host/init.yml
+++ b/metadata/service/host/init.yml
@@ -1,5 +1,7 @@
applications:
- docker
+classes:
+ - service.docker.support
parameters:
docker:
host:
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index a366e44..a77821b 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -6,6 +6,6 @@
heka:
enabled: false
sensu:
- enabled: true
+ enabled: false
sphinx:
enabled: true