summaryrefslogtreecommitdiff
path: root/manifests/params.pp
blob: 3879c81c499b00dfef023adb630119a5c5abe99e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class apt::params () {
  $use_lts            = false
  $use_volatile       = false
  $use_backports      = true
  $include_src        = false
  $use_next_release   = false
  $manage_preferences = true
  $custom_preferences = undef
  $debian_url         = 'http://httpredir.debian.org/debian/'
  $security_url       = 'http://security.debian.org/'
  $ubuntu_url         = 'http://archive.ubuntu.com/ubuntu'
  $lts_url            = $debian_url
  $volatile_url       = 'http://volatile.debian.org/debian-volatile/'
  case $::operatingsystem {
    'debian': {
      $repos = 'main contrib non-free'
    }
    'ubuntu': {
      $repos = 'main restricted universe multiverse'
    }
    default: {
      fail("Unsupported system '${::operatingsystem}'.")
    }
  }
  $custom_key_dir = false
}