Include volumes in docs generation
diff --git a/glusterfs/meta/sphinx.yml b/glusterfs/meta/sphinx.yml
index b7b9a65..33782a2 100644
--- a/glusterfs/meta/sphinx.yml
+++ b/glusterfs/meta/sphinx.yml
@@ -5,10 +5,31 @@
{%- if pillar.glusterfs.server is defined %}
server:
name: server
- param: {}
+ param:
+ version:
+ value: "{{ salt['cmd.run']('gluster --version|head -1') }}"
+ {%- if pillar.glusterfs.server.get('peers', []) %}
+ peers:
+ value: {{ pillar.glusterfs.server.peers|yaml }}
+ {%- endif %}
+ {%- if pillar.glusterfs.server.get('volumes', {}) %}
+ volumes:
+ value:
+ {%- for name, volume in pillar.glusterfs.server.volumes.iteritems() %}
+ {{ name }}: "{{ volume.storage }}"
+ {%- endfor %}
+ {%- endif %}
{%- endif %}
{%- if pillar.glusterfs.client is defined %}
- dashboard:
+ client:
name: client
- param: {}
+ param:
+ {%- if pillar.glusterfs.client.get('volumes', {}) %}
+ mounts:
+ value:
+ {%- for name, volume in pillar.glusterfs.client.volumes.iteritems() %}
+ {{ name }}: {{ volume.path }}
+ {%- endfor %}
+ {%- endif %}
+
{%- endif %}