summaryrefslogtreecommitdiff
path: root/templates/default/flumotion
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-02-04 03:40:13 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-02-04 03:40:13 +0100
commit61b341e40961770b285725cecafbc28de95054fe (patch)
tree1431b47bdce4d7fac5a69301117e8f6355c0b0c4 /templates/default/flumotion
parentworker password are secrets now as well (diff)
change handling of flags
Diffstat (limited to 'templates/default/flumotion')
-rw-r--r--templates/default/flumotion/planet.xml.j212
-rw-r--r--templates/default/flumotion/recorder.xml.j24
2 files changed, 10 insertions, 6 deletions
diff --git a/templates/default/flumotion/planet.xml.j2 b/templates/default/flumotion/planet.xml.j2
index cac9fc0..5c2575c 100644
--- a/templates/default/flumotion/planet.xml.j2
+++ b/templates/default/flumotion/planet.xml.j2
@@ -2,19 +2,19 @@
<planet name="{{ globals.name }}">
<manager name="{{ globals.name }}">
-{%- if globals.deployment.type == "kubernetes" %}
+%% if globals.deployment.type == "kubernetes"
<host>0.0.0.0</host>
-{%- else %}
+%% else
<host>{{ globals.manager.host }}</host>
-{%- endif %}
+%% endif
<port>{{ globals.manager.port }}</port>
<transport>{{ globals.manager.transport }}</transport>
<component name="manager-bouncer" type="htpasswdcrypt-bouncer">
-{%- if globals.deployment.type == "kubernetes" %}
+%% if globals.deployment.type == "kubernetes"
<property name="filename">/srv/secret/htpasswd</property>
-{%- else %}
+%% else
<property name="filename">/etc/flumotion/{{ globals.name }}.passwd</property>
-{%- endif %}
+%% endif
</component>
</manager>
diff --git a/templates/default/flumotion/recorder.xml.j2 b/templates/default/flumotion/recorder.xml.j2
index b2fce9e..2634978 100644
--- a/templates/default/flumotion/recorder.xml.j2
+++ b/templates/default/flumotion/recorder.xml.j2
@@ -8,7 +8,11 @@
<feed alias="default">{{ component.feeder }}</feed>
</eater>
%% for name, value in component.properties.items()
+%% if globals.deployment.type == "kubernetes" and name == "directory"
+ <property name="{{ name }}">/srv/recordings/{{ component._recorder_id }}</property>
+%% else
<property name="{{ name }}">{{ value }}</property>
+%% endif
%% endfor
<clock-master>false</clock-master>
</component>