aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/profile.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem/profile.pp')
-rw-r--r--manifests/subsystem/profile.pp46
1 files changed, 46 insertions, 0 deletions
diff --git a/manifests/subsystem/profile.pp b/manifests/subsystem/profile.pp
new file mode 100644
index 0000000..b90ac65
--- /dev/null
+++ b/manifests/subsystem/profile.pp
@@ -0,0 +1,46 @@
+# Custom configuration for user profiles
+class nodo::subsystem::profile {
+ file { "/etc/screenrc":
+ source => "puppet:///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:///modules/nodo/etc/profile.${::lsbdistcodename}",
+ "puppet:///modules/nodo/etc/profile",
+ ],
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ require => File['/usr/local/bin/prompt.sh'],
+ }
+
+ file { "/etc/bash.bashrc":
+ source => "puppet:///modules/nodo/etc/bash.bashrc",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ require => File['/usr/local/bin/prompt.sh'],
+ }
+
+ file { "/usr/local/bin/prompt.sh":
+ source => "puppet:///modules/nodo/bin/prompt.sh",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
+
+ # This is already being sourced by bash.bashrc.
+ file { "/etc/profile.d/prompt.sh":
+ ensure => absent,
+ }
+}