aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems')
-rw-r--r--manifests/subsystems/profile.pp58
1 files changed, 58 insertions, 0 deletions
diff --git a/manifests/subsystems/profile.pp b/manifests/subsystems/profile.pp
new file mode 100644
index 0000000..9d7bafd
--- /dev/null
+++ b/manifests/subsystems/profile.pp
@@ -0,0 +1,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'],
+ }
+}