feat: cleanup reposync conf files

- add feature to /etc/reposync/conf.d to ensure the subfiles are cleaned
  up when they are not defined
This commit is contained in:
Ben Vincent 2024-02-10 15:37:24 +11:00
parent 5471294f1e
commit 71c316e7ae

View File

@ -14,10 +14,13 @@ class profiles::reposync::syncer {
mode => '0755',
}
file { '/etc/reposync/conf.d':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
purge => true,
recurse => true,
force => true,
}
# get a list of repos as a hash, and iterate through them