Puppet Class: profile::spicerack::reposync
- Defined in:
- modules/profile/manifests/spicerack/reposync.pp
Summary
class to configure a server as a reposync receiverOverview
SPDX-License-Identifier: Apache-2.0
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'modules/profile/manifests/spicerack/reposync.pp', line 6
class profile::spicerack::reposync (
Wmflib::Ensure $ensure = lookup('profile::spicerack::reposync::ensure'),
Array[String[1]] $repos = lookup('profile::spicerack::reposync::repos'),
Array[Stdlib::Fqdn] $remotes = lookup('profile::spicerack::reposync::remotes'),
) {
$_remotes = $remotes.empty ? {
false => $remotes,
default => wmflib::role::hosts('cluster::management') + $facts['networking']['fqdn'] + wmflib::role::hosts('netbox::frontend'),
}.sort.unique
class {'reposync':
ensure => $ensure,
repos => $repos,
remotes => $_remotes,
}
}
|