Add variables for rabbitmq ssl configuration
Change-Id: I4f19472f3552a07d97c7cd4219c020bbfbc82137
This commit is contained in:
parent
ac4db5cd28
commit
db3d249f8b
@ -169,6 +169,8 @@ masakari_oslomsg_rpc_port: "{{ oslomsg_rpc_port | default('5672') }}"
|
|||||||
masakari_oslomsg_rpc_use_ssl: "{{ oslomsg_rpc_use_ssl | default(False) }}"
|
masakari_oslomsg_rpc_use_ssl: "{{ oslomsg_rpc_use_ssl | default(False) }}"
|
||||||
masakari_oslomsg_rpc_userid: masakari
|
masakari_oslomsg_rpc_userid: masakari
|
||||||
masakari_oslomsg_rpc_vhost: /masakari
|
masakari_oslomsg_rpc_vhost: /masakari
|
||||||
|
masakari_oslomsg_rpc_ssl_version: "{{ oslomsg_rpc_ssl_version | default('TLSv1_2') }}"
|
||||||
|
masakari_oslomsg_rpc_ssl_ca_file: "{{ oslomsg_rpc_ssl_ca_file | default('') }}"
|
||||||
|
|
||||||
# Notify
|
# Notify
|
||||||
masakari_oslomsg_notify_host_group: "{{ oslomsg_notify_host_group | default('rabbitmq_all') }}"
|
masakari_oslomsg_notify_host_group: "{{ oslomsg_notify_host_group | default('rabbitmq_all') }}"
|
||||||
@ -180,6 +182,8 @@ masakari_oslomsg_notify_use_ssl: "{{ oslomsg_notify_use_ssl | default(False) }}"
|
|||||||
masakari_oslomsg_notify_userid: "{{ masakari_oslomsg_rpc_userid }}"
|
masakari_oslomsg_notify_userid: "{{ masakari_oslomsg_rpc_userid }}"
|
||||||
masakari_oslomsg_notify_password: "{{ masakari_oslomsg_rpc_password }}"
|
masakari_oslomsg_notify_password: "{{ masakari_oslomsg_rpc_password }}"
|
||||||
masakari_oslomsg_notify_vhost: "{{ masakari_oslomsg_rpc_vhost }}"
|
masakari_oslomsg_notify_vhost: "{{ masakari_oslomsg_rpc_vhost }}"
|
||||||
|
masakari_oslomsg_notify_ssl_version: "{{ oslomsg_notify_ssl_version | default('TLSv1_2') }}"
|
||||||
|
masakari_oslomsg_notify_ssl_ca_file: "{{ oslomsg_notify_ssl_ca_file | default('') }}"
|
||||||
|
|
||||||
## (Qdrouterd) integration
|
## (Qdrouterd) integration
|
||||||
# TODO(ansmith): Change structure when more backends will be supported
|
# TODO(ansmith): Change structure when more backends will be supported
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
enabled_apis = masakari_api
|
enabled_apis = masakari_api
|
||||||
transport_url = {{ masakari_oslomsg_rpc_transport }}://{% for host in masakari_oslomsg_rpc_servers.split(',') %}{{ masakari_oslomsg_rpc_userid }}:{{ masakari_oslomsg_rpc_password }}@{{ host }}:{{ masakari_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ masakari_oslomsg_rpc_vhost }}{% if (masakari_oslomsg_rpc_use_ssl | lower) | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
|
transport_url = {{ masakari_oslomsg_rpc_transport }}://{% for host in masakari_oslomsg_rpc_servers.split(',') %}{{ masakari_oslomsg_rpc_userid }}:{{ masakari_oslomsg_rpc_password }}@{{ host }}:{{ masakari_oslomsg_rpc_port }}{% if not loop.last %},{% else %}/{{ masakari_oslomsg_rpc_vhost }}{% if masakari_oslomsg_rpc_use_ssl | bool %}?ssl=1&ssl_version={{ masakari_oslomsg_rpc_ssl_version }}&ssl_ca_file={{ masakari_oslomsg_rpc_ssl_ca_file }}{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
|
||||||
# Enable to specify listening IP other than default
|
# Enable to specify listening IP other than default
|
||||||
masakari_api_listen = 0.0.0.0
|
masakari_api_listen = 0.0.0.0
|
||||||
# Enable to specify port other than default
|
# Enable to specify port other than default
|
||||||
@ -57,4 +57,4 @@ process_all_instances = false
|
|||||||
ssl = {{ masakari_oslomsg_notify_use_ssl | bool }}
|
ssl = {{ masakari_oslomsg_notify_use_ssl | bool }}
|
||||||
|
|
||||||
[oslo_messaging_notifications]
|
[oslo_messaging_notifications]
|
||||||
transport_url = {{ masakari_oslomsg_notify_transport }}://{% for host in masakari_oslomsg_notify_servers.split(',') %}{{ masakari_oslomsg_notify_userid }}:{{ masakari_oslomsg_notify_password }}@{{ host }}:{{ masakari_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ masakari_oslomsg_notify_vhost }}{% if (masakari_oslomsg_notify_use_ssl | lower) | bool %}?ssl=1{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
|
transport_url = {{ masakari_oslomsg_notify_transport }}://{% for host in masakari_oslomsg_notify_servers.split(',') %}{{ masakari_oslomsg_notify_userid }}:{{ masakari_oslomsg_notify_password }}@{{ host }}:{{ masakari_oslomsg_notify_port }}{% if not loop.last %},{% else %}/{{ masakari_oslomsg_notify_vhost }}{% if masakari_oslomsg_notify_use_ssl | bool %}?ssl=1&ssl_version={{ masakari_oslomsg_notify_ssl_version }}&ssl_ca_file={{ masakari_oslomsg_notify_ssl_ca_file }}{% else %}?ssl=0{% endif %}{% endif %}{% endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user