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
51
52
53
54
55
56
57
58
|
# Custom configuration for user profiles
class profile {
file { "/etc/screenrc":
source => "puppet://$server/modules/nodo/etc/screenrc",
owner => "root",
group => "root",
mode => 0644,
ensure => present,
}
# As of squeeze, custom configuration can be placed directly at
# /etc/profile.d, so in the future this file won't need to be
# managed by puppet anymore.
file { "/etc/profile":
source => [ "puppet://$server/modules/nodo/etc/profile.$lsbdistcodename",
"puppet://$server/modules/nodo/etc/profile",
],
owner => "root",
group => "root",
mode => 0644,
ensure => present,
require => File['/etc/profile.d/prompt.sh'],
}
file { "/etc/bash.bashrc":
source => "puppet://$server/modules/nodo/etc/bash.bashrc",
owner => "root",
group => "root",
mode => 0644,
ensure => present,
require => File['/etc/profile.d/prompt.sh'],
}
# As of squeeze, custom configuration can be placed directly at
# /etc/profile.d, so in the future this file has to stay there.
#
# This change has been backported to lenny via puppet so this
# file is not needed anymore.
file { "/usr/local/bin/prompt.sh":
ensure => absent,
}
file { "/etc/profile.d":
ensure => directory,
owner => "root",
group => "root",
}
file { "/etc/profile.d/prompt.sh":
ensure => present,
source => "puppet://$server/modules/nodo/etc/profile.d/prompt.sh",
owner => "root",
group => "root",
mode => 0644,
ensure => present,
require => File['/etc/profile.d'],
}
}
|