Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SELinux option in node pools #1397

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mysticaltech
Copy link
Collaborator

@mysticaltech mysticaltech commented Jul 6, 2024

Related to #1370

Update the disable_selinux option to correctly disable SELinux on node pools.

  • Change the selinux option to disable_selinux in agents.tf, autoscaler-agents.tf, control_planes.tf, init.tf, locals.tf, and variables.tf.
  • Update the local.k3s-agent-config variable in agents.tf to use the disable_selinux option.
  • Update the data.cloudinit_config.autoscaler_config variable in autoscaler-agents.tf to use the disable_selinux option.
  • Update the local.k3s-config variable in control_planes.tf to use the disable_selinux option.
  • Update the null_resource.first_control_plane resource in init.tf to use the disable_selinux option.
  • Update the local.control_plane_nodes, local.agent_nodes_from_integer_counts, and local.agent_nodes_from_maps_for_counts variables in locals.tf to use the disable_selinux option.
  • Update the control_plane_nodepools and agent_nodepools variables in variables.tf to use the disable_selinux option.

For more details, open the Copilot Workspace session.

@@ -178,7 +178,7 @@ resource "null_resource" "control_planes" {
inline = [
"systemctl start k3s 2> /dev/null",
# prepare the needed directories
"mkdir -p /var/post_install /var/user_kustomize",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this on purpose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants