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:
parent
5471294f1e
commit
71c316e7ae
@ -14,10 +14,13 @@ class profiles::reposync::syncer {
|
|||||||
mode => '0755',
|
mode => '0755',
|
||||||
}
|
}
|
||||||
file { '/etc/reposync/conf.d':
|
file { '/etc/reposync/conf.d':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
|
purge => true,
|
||||||
|
recurse => true,
|
||||||
|
force => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
# get a list of repos as a hash, and iterate through them
|
# get a list of repos as a hash, and iterate through them
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user