Adds key ``theme_src_archive`` to ``horizon_custom_themes``,
which should point to archive with packed theme inside.
Archive should be placed on the deployment host and it
may be easily created by git-archive, or ansible git module.
Structure inside archive should be as a standard theme,
without any leading folders.
Unarchive is used instead of synchronize with flat files,
as synchronize establishes independent SSH connection
and doesn't use nspawn or any other methods from
custom ssh plugin and may case connection errors.
Recursive copy has limitations on number of files inside of the
directory. This limit is pretty high, but still it's a limit.
This method differs from uploading custom files, as themes may
have complex structure and include a lot of files.
As a result, if ``horizon_custom_themes`` contains
``theme_src_archive`` key, theme will be distributed by role.
Change-Id: Icbfff0793a703de94091cfdcdecf5a2c91bae4be
Related-Bug: 1778098
(cherry picked from commit acf7a29609c81529981b9e4a167c63faa78819d8)
Reviewed: https:/ /review. openstack. org/592635 /git.openstack. org/cgit/ openstack/ openstack- ansible- os_horizon/ commit/ ?id=2f9f1a2e4b7 cf2b57fe8de9a5c 62c4c10afcc7a1
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 2f9f1a2e4b7cf2b 57fe8de9a5c62c4 c10afcc7a1
Author: Dmitriy R <email address hidden>
Date: Thu Jul 26 21:31:55 2018 +0300
Implements custom theme distribution
Adds key ``theme_ src_archive` ` to ``horizon_ custom_ themes` `,
which should point to archive with packed theme inside.
Archive should be placed on the deployment host and it
may be easily created by git-archive, or ansible git module.
Structure inside archive should be as a standard theme,
without any leading folders.
Unarchive is used instead of synchronize with flat files,
as synchronize establishes independent SSH connection
and doesn't use nspawn or any other methods from
custom ssh plugin and may case connection errors.
Recursive copy has limitations on number of files inside of the
directory. This limit is pretty high, but still it's a limit.
This method differs from uploading custom files, as themes may
have complex structure and include a lot of files.
As a result, if ``horizon_ custom_ themes` ` contains src_archive` ` key, theme will be distributed by role.
``theme_
Change-Id: Icbfff0793a703d e94091cfdcdecf5 a2c91bae4be 9981b9e4a167c63 faa78819d8)
Related-Bug: 1778098
(cherry picked from commit acf7a29609c8152