Merge pull request 'chore: cleanup yum repos' (#72) from neoloc/firtsun_improvements into develop
Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/72
This commit is contained in:
commit
95e387d3ad
9
site/profiles/manifests/firstrun/cleanup.pp
Normal file
9
site/profiles/manifests/firstrun/cleanup.pp
Normal 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'],
|
||||
}
|
||||
}
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user