From 066e462c64643280c4c824435c5cbd273462d89c Mon Sep 17 00:00:00 2001 From: Frank Kloeker Date: Sun, 29 Jul 2018 12:38:06 +0200 Subject: [PATCH] Extend Zanata Pull with module option and more dashboard plugins horizon-manage.py provides a module option to define different project modules (horizon modules are default), so provide this option also here Compile messages can be perform directly in horizon_lib_dir. It's not required to go in each module dir, so removed this. All messages will compiled now which takes insignificantly longer. Change-Id: I82be90e722780d27bb0593575b8bfe5befe46686 --- tasks/horizon_translations_update.yml | 8 ++------ vars/main.yml | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/tasks/horizon_translations_update.yml b/tasks/horizon_translations_update.yml index 6900f997..d9134de9 100644 --- a/tasks/horizon_translations_update.yml +++ b/tasks/horizon_translations_update.yml @@ -14,7 +14,7 @@ # limitations under the License. - name: Perform a Zanata Pull Catalog - command: "{{ horizon_bin }}/horizon-manage.py pull_catalog -p {{ translation.project }} -b {{ (translation.branch | default(horizon_translations_project_version)) | replace('/', '-') }}" + command: "{{ horizon_bin }}/horizon-manage.py pull_catalog -p {{ translation.project }} -m {{ translation.module }} -b {{ (translation.branch | default(horizon_translations_project_version)) | replace('/', '-') }}" args: chdir: "{{ horizon_lib_dir }}/" changed_when: false @@ -27,11 +27,7 @@ - name: Perform Zanata Compile Messages command: "{{ horizon_bin }}/horizon-manage.py compilemessages" args: - chdir: "{{ horizon_lib_dir }}/{{ item }}" - with_items: - - horizon - - openstack_dashboard - - openstack_auth + chdir: "{{ horizon_lib_dir }}/" tags: - skip_ansible_lint notify: Restart apache2 diff --git a/vars/main.yml b/vars/main.yml index fca303aa..7c07fcf6 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -15,6 +15,29 @@ _horizon_translations_pull: - project: "horizon" + branch: master enabled: True + module: + - horizon + - openstack_auth + - openstack_dashboard + - project: "designate-dashboard" + branch: master + enabled: True + module: designatedashboard + - project: "sahara-dashboard" + branch: master + enabled: True + module: sahara_dashboard - project: "heat-dashboard" + branch: master enabled: "{{ horizon_enable_heat_ui }}" + module: heat_dashboard + - project: "magnum-ui" + branch: master + enabled: True + module: magnum_ui + - project: "trove-dashboard" + branch: master + enabled: True + module: trove_dashboard