fuel-ccp/fuel_ccp/tests
Kirill Bespalov 29133f2787 Introduce cross-repository config templating
Make possible sharing and using of common parts of configs
like keystone, db, messaging, etc as jinja templates (e.g.
via macros) located at 'exports' directories of related
repositories.

Example of usage:
-------------------------------------------------
share rabbitmq configuration as macros:
-------------------------------------------------
  # file fuel-ccp-rabbitmq/exports/messaging.j2
  {% macro oslo_config() -%}
    [DEFAULT]
    transport_url=rabbit://{{ rabbitmq.user }}
    [oslo_messaging_rabbit]
    rabbit_ha_queues = true
  {%- endmacro %}
-------------------------------------------------
use it in nova.conf.j2:
-------------------------------------------------
  # file fuel-ccp-nova/service/files/nova.conf.j2
  [upgrade_levels]
  compute = auto

  {{ messaging.oslo_config() }} <-----------

  [wsgi]
  api_paste_config = /etc/nova/api-paste.ini
 -------------------------------------------------

During 'ccp deploy' the following occurs:

- loading templates files from /exports/ dirs of avaliable repositories.
- push files to k8s as ConfigMap with name 'exports'.
- adding a container volume '/etc/ccp/macros' with the ConfigMap content
- implicitly adding jinja imports of these templates files to all config
  files from /fuel-ccp-xxx/service/* to make possible macros usage.

Change-Id: I4858d62a9713e90c09300f75e01e06a31d3ac0ae
Depends-On: I429656b7eaf6312ee2d27ccaf0cb8802a234e871
2016-12-13 17:02:23 +00:00
..
common Add gethostbyname filter to get ip address from host name 2016-12-01 11:41:04 +03:00
test_repository/service Rename microservices to fuel-ccp 2016-07-21 13:45:24 +03:00
__init__.py Rename microservices to fuel-ccp 2016-07-21 13:45:24 +03:00
base.py Switch main config object to be result of YAML parsing 2016-09-08 11:56:15 +03:00
conf_fixture.py Switch to cliff 2016-09-19 15:41:32 -07:00
test_build.py Inform about orphan images during build/validate 2016-11-24 13:53:17 +03:00
test_cleanup.py Improve cleanup network resources 2016-10-26 18:15:13 +03:00
test_cli.py Adding dsl version validation 2016-11-22 17:30:12 +03:00
test_config_yaml.py Add deep merging when loading component configs 2016-10-05 18:06:36 +03:00
test_config.py Add unwrapping for lists of AttrDicts 2016-10-17 11:03:47 +03:00
test_deploy.py Merge "Adding cluster_domain config option" 2016-11-29 08:57:10 +00:00
test_fetch.py Change repositories list in config 2016-10-11 17:16:33 +03:00
test_kubernetes.py Enable updates for Ingress resources 2016-11-15 16:28:20 +03:00
test_templates.py Introduce cross-repository config templating 2016-12-13 17:02:23 +00:00
test_validation.py Adding dsl version validation 2016-11-22 17:30:12 +03:00