diff --git a/site/profiles/manifests/firstrun/cleanup.pp b/site/profiles/manifests/firstrun/cleanup.pp new file mode 100644 index 0000000..fc090db --- /dev/null +++ b/site/profiles/manifests/firstrun/cleanup.pp @@ -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'], + } +} diff --git a/site/profiles/manifests/firstrun/init.pp b/site/profiles/manifests/firstrun/init.pp index abb0a2b..014fefc 100644 --- a/site/profiles/manifests/firstrun/init.pp +++ b/site/profiles/manifests/firstrun/init.pp @@ -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