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
|
# Workstation setup, for non graphical environmentns
class profiles::workstation (
) {
$os_name = $facts['os']['name'].downcase()
if defined($os_name) {
include "::profiles::workstation::name::${os_name}"
}
$os_fam = $facts['os']['family'].downcase()
if defined($os_fam) {
include "::profiles::workstation::family::${os_fam}"
}
include ::profiles::group_profile
include ::profiles::repo
if ($facts['systemd']) {
file { 'User ssh-agent service':
path => '/etc/systemd/user/ssh-agent.service',
source => "puppet:///modules/profiles/ssh-agent.service",
}
}
# NOTE Hard coding checksums here kind of defeats the point of
# pulling in data from above (since we no longer get updates),
# but since GitHub doesn't send checksum headers the files gets
# updated every time otherwise, which creates noise.
file { 'Dvorak A6 TTY keyboard layout':
ensure => file,
path => '/usr/share/kbd/keymaps/i386/dvorak/dvorak-sv-a6.map',
checksum => 'md5',
checksum_value => '96be6c1aa81522db46673c0f68e3336a',
source => 'https://raw.githubusercontent.com/HugoNikanor/keymaps/master/linux-tty/dvorak-sv-a6.map',
}
file { 'Setup console':
ensure => file,
path => '/etc/vconsole.conf',
content => epp('profiles/keyvalue.epp', { 'values' => {
'KEYMAP' => 'dvorak-sv-a6',
'FONT' => 'lat9v-12',
}}),
}
include ::profiles::cowsay
include ::profiles::sudo
include ::profiles::mounts
}
|