Puppet Class: aptly::client

Defined in:
modules/aptly/manifests/client.pp

Overview

Parameters:

  • servername (Any) (defaults to: "${::labsproject}-packages.${::labsproject}.${::site}.wmflabs")
  • source (Any) (defaults to: false)
  • components (Any) (defaults to: 'main')
  • protocol (Any) (defaults to: 'http')


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/aptly/manifests/client.pp', line 1

class aptly::client(
    $servername="${::labsproject}-packages.${::labsproject}.${::site}.wmflabs",
    $source=false,
    $components='main',
    $protocol='http',
) {
    apt::repository { 'project-aptly':
        uri        => "${protocol}://${servername}/repo",
        dist       => "${::lsbdistcodename}-${::labsproject}",
        components => $components,
        source     => $source,
        trust_repo => true,
    }

    # Pin it so it has higher preference
    apt::pin { 'project-aptly':
        package  => '*',
        pin      => "origin ${servername}",
        priority => 1500,
    }
}