]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Fancy prompt already sourced by bash.bashrc
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Feb 2011 22:21:17 +0000 (20:21 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 18 Feb 2011 22:21:17 +0000 (20:21 -0200)
files/bin/prompt.sh [moved from files/etc/profile.d/prompt.sh with 100% similarity]
files/etc/bash.bashrc
manifests/subsystems/profile.pp

index 89b5a578603798fe0439e6e27c2a4e89bdcc2786..22d06b10478bbe7bd5a9ba8aa14e580eae18aa2b 100644 (file)
@@ -47,4 +47,3 @@ if [ -x /usr/lib/command-not-found ]; then
 fi
 
 . /usr/local/bin/prompt.sh
-PROMPT_COMMAND="command_prompt"
index d09f7a60f1c76312bbd5281831179d559e95eaf8..e49e3b52ffe585b5ec7ed0efdd3215c369514578 100644 (file)
@@ -19,7 +19,7 @@ class profile {
     group   => "root",
     mode    => 0644,
     ensure  => present,
-    require => File['/etc/profile.d/prompt.sh'],
+    require => File['/usr/local/bin/prompt.sh'],
   }
 
   file { "/etc/bash.bashrc":
@@ -28,30 +28,19 @@ class profile {
     group   => "root",
     mode    => 0644,
     ensure  => present,
-    require => File['/etc/profile.d/prompt.sh'],
+    require => File['/usr/local/bin/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":
-    source  => "puppet://$server/modules/nodo/etc/profile.d/prompt.sh",
+    source  => "puppet://$server/modules/nodo/bin/prompt.sh",
     owner   => "root",
     group   => "root",
     mode    => 0644,
     ensure  => present,
-    require => File['/etc/profile.d'],
+  }
+
+  # This is already being sourced by bash.bashrc.
+  file { "/etc/profile.d/prompt.sh":
+    ensure => absent,
   }
 }