Defined Type: apt::conf

Defined in:
modules/apt/manifests/conf.pp

Overview

Parameters:

  • key (Any)
  • value (Any)
  • priority (Any) (defaults to: '20')
  • ensure (Any) (defaults to: present)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'modules/apt/manifests/conf.pp', line 1

define apt::conf(
    $key,
    $value,
    $priority='20',
    $ensure=present,
) {
    file { "/etc/apt/apt.conf.d/${priority}${name}":
        ensure  => $ensure,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        content => "${key} \"${value}\";\n",
        notify  => Exec['apt-get update'],
    }
}