Puppet Class: linuxmint::config::mintwelcome

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

Overview

linuxmint::config::mintwelcome

Configures Linux Mint Mint Welcome tool

Parameters:

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

    Mandatory parameter that specifies the group for the user param

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

    Mandatory parameter that specifies the user to configure



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
# File 'manifests/config/mintwelcome.pp', line 7

class linuxmint::config::mintwelcome (
  String $group = $linuxmint::params::group,
  String $user  = $linuxmint::params::user,
) inherits linuxmint::params {
  assert_type(String[1], $user)
  assert_type(String[1], $group)

  $dirs = [
    "/home/${user}/.linuxmint",
    "/home/${user}/.linuxmint/mintwelcome",
  ]

  file { $dirs:
    ensure => 'directory',
    owner  => $user,
    group  => $group,
    mode   => '0700',
  }

  file { "/home/${user}/.linuxmint/mintwelcome/norun.flag":
    ensure  => 'file',
    content => '',
    owner   => $user,
    group   => $group,
    mode    => '0700',
    require => [
      File["/home/${user}/.linuxmint/mintwelcome"],
    ],
  }
}