Skip to content

Commit

Permalink
Merge pull request #630 from karelyatin/OSPRH-6430
Browse files Browse the repository at this point in the history
[edpm_neutron_sriov] Add caCerts to container if tls enabled
  • Loading branch information
openshift-merge-bot[bot] authored Apr 19, 2024
2 parents 319d295 + 9dab35e commit 7360d40
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/edpm_neutron_sriov/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ edpm_neutron_sriov_common_volumes:
- /var/lib/kolla/config_files/neutron_sriov_agent.json:/var/lib/kolla/config_files/config.json:ro
- /var/log/containers/neutron:/var/log/neutron:z

edpm_neutron_sriov_tls_enabled: "{{ edpm_tls_certs_enabled | default(False) }}"
edpm_neutron_sriov_tls_ca_src_dir: "/var/lib/openstack/cacerts/{{ edpm_service_name | default('neutron-sriov') }}"
edpm_neutron_sriov_tls_volumes:
- "/var/lib/openstack/cacerts/{{ edpm_service_name | default('neutron-sriov') }}/tls-ca-bundle.pem:/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem:ro,z"

# neutron.conf
# DEFAULT
edpm_neutron_sriov_DEFAULT_debug: false
Expand Down
5 changes: 5 additions & 0 deletions roles/edpm_neutron_sriov/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ argument_specs:
- /var/log/containers/neutron:/var/log/neutron:z
description: List of volumes in a mount point form.
type: list
edpm_neutron_sriov_tls_enabled:
default: false
description: >
Should TLS cacerts be configured for neutron sriov
type: bool
edpm_neutron_sriov_DEFAULT_debug:
default: false
description: "Enable or disable DEBUG mode in the Neutron agent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ volumes:
{%- set edpm_neutron_sriov_volumes =
edpm_neutron_sriov_volumes +
edpm_neutron_sriov_common_volumes %}
{%- if edpm_neutron_sriov_tls_enabled | bool %}
{%- set edpm_neutron_sriov_volumes =
edpm_neutron_sriov_volumes +
edpm_neutron_sriov_tls_volumes %}
{%- endif -%}
{{ edpm_neutron_sriov_volumes }}
environment:
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS

0 comments on commit 7360d40

Please sign in to comment.