Puppet Class: linuxmint::install::applets
- Inherits:
- linuxmint::params
- Defined in:
- manifests/install/applets.pp
Overview
linuxmint::install::applets
Install Linux Mint Cinnamon applets
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 |
# File 'manifests/install/applets.pp', line 7
class linuxmint::install::applets (
String $group = $linuxmint::params::group,
String $user = $linuxmint::params::user,
) inherits linuxmint::params {
assert_type(String[1], $user)
assert_type(String[1], $group)
file { "/home/${user}/.local/share/cinnamon/applets":
ensure => 'directory',
owner => $user,
group => $group,
mode => '0775',
}
vcsrepo { "${linuxmint::params::packages_root}/cinnamon-spices-applets":
ensure => present,
provider => git,
source => 'https://github.com/linuxmint/cinnamon-spices-applets.git',
require => File[$linuxmint::params::packages_root],
}
file { "/home/${user}/.local/share/cinnamon/applets/betterlock":
ensure => 'directory',
group => $group,
mode => '0700',
owner => $user,
recurse => true,
source => "file://${linuxmint::params::packages_root}/cinnamon-spices-applets/betterlock/files/betterlock",
require => File["/home/${user}/.local/share/cinnamon/applets"],
subscribe => Vcsrepo["${linuxmint::params::packages_root}/cinnamon-spices-applets"],
}
file { "/home/${user}/.local/share/cinnamon/applets/workspace-grid@hernejj":
ensure => 'directory',
group => $group,
mode => '0700',
owner => $user,
recurse => true,
source => "file://${linuxmint::params::packages_root}/cinnamon-spices-applets/workspace-grid@hernejj/files/workspace-grid@hernejj",
require => File["/home/${user}/.local/share/cinnamon/applets"],
subscribe => Vcsrepo["${linuxmint::params::packages_root}/cinnamon-spices-applets"],
}
}
|