chore: cleanup yum repos

- cleanup yum repos on first run
This commit is contained in:
Ben Vincent 2024-06-27 21:59:27 +10:00
parent 5aac7752cd
commit febd98d316
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# profiles::firstrun::cleanup
class profiles::firstrun::cleanup {
# remove all the exisiting yum repos
exec {'cleanup_yum_repos':
command => 'rm -f /etc/yum.repos.d/*.repo',
path => ['/bin', '/usr/bin'],
}
}

View File

@ -5,6 +5,7 @@ class profiles::firstrun::init {
include profiles::pki::vaultca
# fast install packages on the first run
include profiles::firstrun::cleanup
include profiles::base::repos
include profiles::firstrun::packages