Skip to content

Commit

Permalink
Stop kolla fighting with kayobe over selinux state
Browse files Browse the repository at this point in the history
Change-Id: I0bfcb36224c403b04d04d51b4faad188a1dd2cac
  • Loading branch information
jovial committed Dec 1, 2023
1 parent 189076c commit 7d9311e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 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
4 changes: 1 addition & 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,7 @@ 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 %}
change_selinux: false

{% if kolla_enable_host_ntp is not none %}
enable_host_ntp: {{ kolla_enable_host_ntp | bool }}
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/selinux/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
selinux_policy: targeted

# Target SELinux state
selinux_state: disabled
selinux_state: "{{ kolla_selinux_state | default('disabled') }}"

# Whether to reboot to apply SELinux config changes.
disable_selinux_do_reboot: true
Expand Down

0 comments on commit 7d9311e

Please sign in to comment.