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
This commit is contained in:
Frank Kloeker 2018-07-29 12:38:06 +02:00
parent 500057a4f1
commit 066e462c64
2 changed files with 25 additions and 6 deletions

View File

@ -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

View File

@ -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