summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/sniproxy.pp
blob: a12673998867c22b45bd06f3576529b382cf3bcb (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Class: profiles::sniproxy
# =========================
#
# This class takes care if setting up SNIProxy.
#
# Parameters
# ----------
#
# -
#
# Examples
# --------
#
# @example
#   class roles::myhost {
#     include profiles::sniproxy
#   }
#
# Authors
# -------
#
# Jan Dittberner <jandd@cacert.org>
#
# Copyright
# ---------
#
# Copyright 2017 Jan Dittberner
#
class profiles::sniproxy {
  file { '/etc/apt/sources.list.d/debian-testing.list':
    ensure => file,
    owner  => 'root',
    group  => 'root',
    mode   => '0644',
    source => 'puppet:///modules/profiles/apt_sources_debian_testing.list',
  }

  file { '/etc/apt/preferences.d/sniproxy':
    ensure => file,
    owner  => 'root',
    group  => 'root',
    mode   => '0644',
    source => 'puppet:///modules/profiles/sniproxy/sniproxy_apt_preferences',
  }

  package { 'sniproxy':
    ensure => present,
  }
}