Puppet Class: conf::headless

Defined in:
manifests/headless.pp

Overview



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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'manifests/headless.pp', line 1

class conf::headless {
  $pkgs_to_remove = [
    "desktop-base",
    "lightdm",
    "lxappearance",
    "lxde-common",
    "lxde-icon-theme",
    "lxinput",
    "lxpanel",
    "lxpolkit",
    "lxrandr",
    "lxsession-edit",
    "lxshortcut",
    "lxtask",
    "lxterminal",
    "wolfram-engine",
    "obconf",
    "openbox",
    "raspberrypi-artwork",
    "xarchiver",
    "xinit",
    "xserver-xorg",
    "xserver-xorg-video-fbdev",
    "libglade2-0",
    "libutempter0",
    "p7zip-full",
    "python-xdg",
    "xbitmaps",
    "lxde",
    "lxde-core",
    "pipanel",
    "raspberrypi-ui-mods",
    "squeak-vm",
    "gnome-desktop3-data",
    "gnome-icon-theme",
    "gnome-icon-theme-symbolic",
    "gnome-menus",
    "gnome-themes-standard",
    "gnome-themes-standard-data",
    "libgnome-desktop-3-10",
    "libgnome-keyring-common",
    "libgnome-keyring0",
    "libgnome-menu-3-0",
    "epiphany-browser",
    "lxappearance-obconf",
    "lxkeymap",
    "lxmenu-data",
    "lxpanel-data",
    "lxsession",
    "alacarte",
    "gir1.2-gmenu-3.0",
    "gksu",
    "libfm4",
    "libgksu2-0",
    "raspberrypi-net-mods",
    "rc-gui",
    "scratch",
    "nuscratch",
    "xserver-xorg-core",
    "xserver-xorg-video-fbturbo"]

#    "xterm",

  package { $pkgs_to_remove:
    ensure => purged,
    before => Exec["/usr/bin/apt-get -y autoremove"],
    notify => Exec["/usr/bin/apt-get -y autoremove"],
  }

  exec { "/usr/bin/apt-get -y autoremove":
    cwd         => "/tmp",
    refreshonly => true,
    provider    => shell,
    user        => root,
  }
}