Skip to content

Commit

Permalink
Merge pull request #211 from stackhpc/bugfix/kolla-selinux
Browse files Browse the repository at this point in the history
Disable configuration of SELinux by Kolla Ansible
  • Loading branch information
jovial authored Dec 1, 2023
2 parents 189076c + e4bcc84 commit 72475f7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
7 changes: 0 additions & 7 deletions ansible/kolla-ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@
kolla_ansible_passwords_path: "{{ kayobe_env_config_path }}/kolla/passwords.yml"
kolla_overcloud_group_vars_path: "{{ kayobe_env_config_path }}/kolla/inventory/group_vars"
kolla_ansible_certificates_path: "{{ kayobe_env_config_path }}/kolla/certificates"
# NOTE: This differs from the default SELinux mode in kolla ansible,
# which is permissive. The justification for using this mode is twofold:
# 1. it avoids filling up the audit log
# 2. it avoids an issue seen when using diskimage-builder in the bifrost
# container.
# We could look at making the SELinux mode configurable in future.
kolla_selinux_state: disabled
kolla_inspector_dhcp_pool_start: "{{ inspection_net_name | net_inspection_allocation_pool_start }}"
kolla_inspector_dhcp_pool_end: "{{ inspection_net_name | net_inspection_allocation_pool_end }}"
kolla_inspector_netmask: "{{ inspection_net_name | net_mask }}"
Expand Down
6 changes: 0 additions & 6 deletions ansible/roles/kolla-ansible/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,6 @@ kolla_ansible_custom_passwords: {}
kolla_external_tls_cert:
kolla_internal_tls_cert:

###############################################################################
# SELinux

# Desired SELinux state.
kolla_selinux_state:

###############################################################################
# NTP

Expand Down
6 changes: 3 additions & 3 deletions ansible/roles/kolla-ansible/templates/kolla/globals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,9 @@ grafana_admin_username: "{{ grafana_local_admin_user_name }}"
# Bootstrap-servers - Host Configuration
#########################################

{% if kolla_selinux_state is not none %}
selinux_state: {{ kolla_selinux_state }}
{% endif %}
# Kayobe performs configuration of SELinux, so there is no need for Kolla
# Ansible to repeat this.
change_selinux: false

{% if kolla_enable_host_ntp is not none %}
enable_host_ntp: {{ kolla_enable_host_ntp | bool }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Disables configuration of SELinux by Kolla Ansible, which could revert
configuration set by Kayobe.

0 comments on commit 72475f7

Please sign in to comment.