Add variable to define list of manager plugins

In order to be more flexible regarding required plugins, we implement a
new variable that will allow to set a list of enabled filters for blazar.

With that we also enable floatingip plugin that has been added to Blazar
a while ago.

Change-Id: Iaff9284eec3a57a6470afb5e912cad17970baa2f
This commit is contained in:
Dmitriy Rabotyagov 2024-01-05 22:53:16 +01:00
parent 06291ec0e6
commit 21f304634e
3 changed files with 16 additions and 1 deletions

View File

@ -45,6 +45,10 @@ blazar_etc_dir: /etc/blazar
blazar_config_option: "--config-file {{ blazar_etc_dir }}/blazar.conf"
blazar_nova_aggregate_name: freepool
blazar_manager_plugins:
- physical.host.plugin
- virtual.instance.plugin
- virtual.floatingip.plugin
## Common PIP requirements
blazar_pip_packages:

View File

@ -0,0 +1,11 @@
---
features:
- |
Implements variable ``blazar_manager_plugins`` that allows to configure
list of enabled plugins for Blazar.
upgrade:
- |
Floating IP plugin for Blazar (virtual.floatingip.plugin) is now enabled
by default. Use ``blazar_manager_plugins`` variable to change the list of
enabled plugins if needed.

View File

@ -32,7 +32,7 @@ driver = {{ (blazar_ceilometer_enabled | bool) | ternary('messagingv2', 'noop')
transport_url = {{ blazar_oslomsg_notify_transport }}://{% for host in blazar_oslomsg_notify_servers.split(',') %}{{ blazar_oslomsg_notify_userid }}:{{ blazar_oslomsg_notify_password }}@{{ host }}:{{ blazar_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ _blazar_oslomsg_notify_vhost_conf }}{% if blazar_oslomsg_notify_use_ssl | bool %}?ssl=1&ssl_version={{ blazar_oslomsg_notify_ssl_version }}&ssl_ca_file={{ blazar_oslomsg_notify_ssl_ca_file }}{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
[manager]
plugins=physical.host.plugin,virtual.instance.plugin
plugins = {{ blazar_manager_plugins | join(',') }}
[keystone_authtoken]
auth_type = {{ blazar_keystone_auth_plugin }}