Puppet Class: profile::spicerack::reposync

Defined in:
modules/profile/manifests/spicerack/reposync.pp

Overview

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: lookup('profile::spicerack::reposync::ensure'))

    ensureable parameter

  • repos (Array[String[1]]) (defaults to: lookup('profile::spicerack::reposync::repos'))

    list of repos to configure

  • remotes (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::spicerack::reposync::remotes'))

    list of remote servers by default all cumin and netbox frontend hosts



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/spicerack/reposync.pp', line 5

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,
    }
}