Defined Type: approx::repository

Defined in:
manifests/repository.pp

Overview

Approx repository

Add a repository line to an approx proxy

Examples:

basic usage

approx::repository{'debian-security':
  url => 'http://security.debian.org/debian-security',
}

Parameters:

  • url (String)
  • reponame (String) (defaults to: $title)
  • order (String) (defaults to: '50')


17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/repository.pp', line 17

define approx::repository (
  String $url,
  String $reponame = $title,
  String $order    = '50',
) {

  include ::approx

  concat::fragment{ $title:
    target  => $approx::conffile,
    content => inline_template("<%= @reponame.ljust(25,' ') %> <%= @url %>\n"),
    order   => $order,
  }
}