Puppet Class: linuxmint::config::software_centre

Inherits:
linuxmint::params
Defined in:
manifests/config/software_centre.pp

Overview

linuxmint::config::software_centre

Configures Linux Mint software centre

Parameters:

  • user (String) (defaults to: $linuxmint::params::user)

    Mandatory parameter that specifies the user to configure



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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'manifests/config/software_centre.pp', line 6

class linuxmint::config::software_centre (
  String $user  = $linuxmint::params::user,
) inherits linuxmint::params {
  # Software Centre / Updates configuration
  file { '/etc/apt/sources.list.d/official-package-repositories.list':
    ensure => file,
    source => 'puppet:///modules/linuxmint/official-package-repositories.list',
    owner  => 'root',
    group  => 'root',
    mode   => '0644',
  }

  exec { 'apt-update':
    command   => '/usr/bin/apt-get update',
    subscribe => File['/etc/apt/sources.list.d/official-package-repositories.list'],
  }

  gnome::gsettings { 'com.linuxmint.updates_show-policy-configuration':
    schema => 'com.linuxmint.updates',
    key    => 'show-policy-configuration',
    value  => false,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level3-is-visible':
    schema => 'com.linuxmint.updates',
    key    => 'level3-is-visible',
    value  => true,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level4-is-visible':
    schema => 'com.linuxmint.updates',
    key    => 'level4-is-visible',
    value  => true,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level3-is-safe':
    schema => 'com.linuxmint.updates',
    key    => 'level3-is-safe',
    value  => false,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level4-is-safe':
    schema => 'com.linuxmint.updates',
    key    => 'level4-is-safe',
    value  => false,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_security-updates-are-safe':
    schema => 'com.linuxmint.updates',
    key    => 'security-updates-are-safe',
    value  => true,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_kernel-updates-are-safe':
    schema => 'com.linuxmint.updates',
    key    => 'kernel-updates-are-safe',
    value  => false,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level1-is-visible':
    schema => 'com.linuxmint.updates',
    key    => 'level1-is-visible',
    value  => true,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level2-is-visible':
    schema => 'com.linuxmint.updates',
    key    => 'level2-is-visible',
    value  => true,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level5-is-visible':
    schema => 'com.linuxmint.updates',
    key    => 'level5-is-visible',
    value  => false,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level1-is-safe':
    schema => 'com.linuxmint.updates',
    key    => 'level1-is-safe',
    value  => true,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level2-is-safe':
    schema => 'com.linuxmint.updates',
    key    => 'level2-is-safe',
    value  => true,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_level5-is-safe':
    schema => 'com.linuxmint.updates',
    key    => 'level5-is-safe',
    value  => false,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_security-updates-are-visible':
    schema => 'com.linuxmint.updates',
    key    => 'security-updates-are-visible',
    value  => true,
    user   => $user,
  }

  gnome::gsettings { 'com.linuxmint.updates_kernel-updates-are-visible':
    schema => 'com.linuxmint.updates',
    key    => 'kernel-updates-are-visible',
    value  => true,
    user   => $user,
  }
}