From 61b341e40961770b285725cecafbc28de95054fe Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 4 Feb 2018 03:40:13 +0100 Subject: change handling of flags --- templates/default/flumotion/planet.xml.j2 | 12 ++++++------ templates/default/flumotion/recorder.xml.j2 | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'templates/default/flumotion') 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 @@ -{%- if globals.deployment.type == "kubernetes" %} +%% if globals.deployment.type == "kubernetes" 0.0.0.0 -{%- else %} +%% else {{ globals.manager.host }} -{%- endif %} +%% endif {{ globals.manager.port }} {{ globals.manager.transport }} -{%- if globals.deployment.type == "kubernetes" %} +%% if globals.deployment.type == "kubernetes" /srv/secret/htpasswd -{%- else %} +%% else /etc/flumotion/{{ globals.name }}.passwd -{%- endif %} +%% endif 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 @@ {{ component.feeder }} %% for name, value in component.properties.items() +%% if globals.deployment.type == "kubernetes" and name == "directory" + /srv/recordings/{{ component._recorder_id }} +%% else {{ value }} +%% endif %% endfor false -- cgit v1.2.3