Skip to content

Remove CentOS-specific code and assets#620

Open
neddp wants to merge 1 commit into
ubuntu-jammyfrom
remove-centos-cleanup-jammy
Open

Remove CentOS-specific code and assets#620
neddp wants to merge 1 commit into
ubuntu-jammyfrom
remove-centos-cleanup-jammy

Conversation

@neddp

@neddp neddp commented Jun 9, 2026

Copy link
Copy Markdown
Member

CentOS stemcells are no longer built, so this drops dead stages, assets, and code paths. Also removes the default_su_directive override (already removed on ubuntu-noble), which silently overrode the correct 'su root syslog' set globally in ubuntu-logrotate.conf.

CentOS stemcells are no longer built, so this drops dead stages,
assets, and code paths. Also removes the default_su_directive
override (already removed on ubuntu-noble), which silently overrode
the correct 'su root syslog' set globally in ubuntu-logrotate.conf.
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5203ec63-c2a3-4b42-9f5d-50f04c5471d4

📥 Commits

Reviewing files that changed from the base of the PR and between 8c989bc and b98e2b1.

📒 Files selected for processing (12)
  • bosh-stemcell/lib/shellout_types/service.rb
  • bosh-stemcell/spec/support/stemcell_shared_examples.rb
  • stemcell_builder/stages/bosh_audit_centos/apply.sh
  • stemcell_builder/stages/image_install_grub/apply.sh
  • stemcell_builder/stages/image_install_grub_efi/apply.sh
  • stemcell_builder/stages/image_install_grub_softlayer_two_partitions/apply.sh
  • stemcell_builder/stages/logrotate_config/apply.sh
  • stemcell_builder/stages/logrotate_config/assets/centos-logrotate.conf
  • stemcell_builder/stages/logrotate_config/assets/default_su_directive
  • stemcell_builder/stages/password_policies/assets/centos/password-auth.patch
  • stemcell_builder/stages/password_policies/assets/centos/system-auth.patch
  • stemcell_builder/stages/system_open_vm_tools/apply.sh
💤 Files with no reviewable changes (8)
  • stemcell_builder/stages/password_policies/assets/centos/password-auth.patch
  • stemcell_builder/stages/logrotate_config/apply.sh
  • stemcell_builder/stages/bosh_audit_centos/apply.sh
  • stemcell_builder/stages/logrotate_config/assets/centos-logrotate.conf
  • stemcell_builder/stages/system_open_vm_tools/apply.sh
  • stemcell_builder/stages/logrotate_config/assets/default_su_directive
  • stemcell_builder/stages/password_policies/assets/centos/system-auth.patch
  • bosh-stemcell/spec/support/stemcell_shared_examples.rb

Walkthrough

This PR removes CentOS as a supported Linux distribution from the BOSH Linux stemcell builder while enhancing security policies for remaining supported distributions. The changes include removing CentOS from distribution detection logic, eliminating CentOS-specific logrotate configuration assets and directives, updating PAM authentication and password policies with faillock and cracklib modules, and refreshing infrastructure documentation examples from CentOS to Ubuntu paths.

Suggested reviewers

  • mkocher
  • rkoster
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive The description explains the reasoning (CentOS stemcells no longer built) and covers key changes (removal of stages, assets, and the default_su_directive), but does not address the merge-forward strategy or branching guidance specified in the template. Consider referencing the merge-forward strategy from the template, such as indicating which branch this targets and whether subsequent merge-forward PRs are needed.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Remove CentOS-specific code and assets' clearly and concisely summarizes the main objective of the pull request, which is demonstrated across all the file changes.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch remove-centos-cleanup-jammy

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Pending Merge | Prioritized

Development

Successfully merging this pull request may close these issues.

1 participant