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
|
# Custom configuration for user profiles
class nodo::subsystem::profile {
# TODO: remove in the future
file { "/usr/local/bin/prompt.sh":
ensure => absent,
}
file { "/etc/profile.d/prompt.sh":
source => "puppet:///modules/nodo/etc/profile.d/prompt.sh",
owner => "root",
group => "root",
mode => 0644,
ensure => present,
}
# Ideally we should not manage this file, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675008
file { "/etc/bash.bashrc":
source => "puppet:///modules/nodo/etc/bash.bashrc",
owner => "root",
group => "root",
mode => 0644,
ensure => present,
require => File['/etc/profile.d/prompt.sh'],
}
# See http://linuxforcynics.com/how-to/using-rxvt-unicode-with-screen
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630976
# https://bbs.archlinux.org/viewtopic.php?id=50647
# https://stackoverflow.com/questions/12345675/screen-cannot-find-terminfo-entry-for-xterm-256color
file { '/lib/terminfo/r/rxvt-256color':
source => "puppet:///modules/nodo/terminfo/rxvt-256color",
owner => root,
group => root,
mode => 0644,
ensure => $::lsbdistcodename ? {
'squeeze' => present,
default => absent,
},
}
}
|