Merge "Use osp_release flag to set selinux mode"

This commit is contained in:
Zuul 2019-12-17 18:14:33 +00:00 committed by Gerrit Code Review
commit 768695d904
2 changed files with 6 additions and 6 deletions

View File

@ -183,8 +183,8 @@ resource_registry_args:
# We disable selinux when running under CentOS. It's enabled for RHEL
overcloud_selinux_enabled: >-
{% if ansible_distribution == 'CentOS' -%}
permissive
{%- else -%}
{% if osp_release is defined -%}
enforcing
{%- else -%}
permissive
{%- endif -%}

View File

@ -85,10 +85,10 @@ default_undercloud_roles_data_path: "{{ undercloud_templates_path }}/roles_data_
# We disable selinux when running under CentOS. It's enabled for RHEL
undercloud_selinux_enabled: >-
{% if ansible_distribution == 'CentOS' -%}
false
{%- else -%}
{% if osp_release is defined -%}
true
{%- else -%}
false
{%- endif -%}
undercloud_container_cli: >-