#esac
# enable bash completion in interactive shells
-#if [ -f /etc/bash_completion ]; then
-# . /etc/bash_completion
-#fi
+if [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+fi
# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found ]; then
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.
file { "/etc/profile":
- source => "puppet://$server/modules/nodo/etc/profile",
+ source => [ "puppet://$server/modules/nodo/etc/profile.$lsbdistcodename",
+ "puppet://$server/modules/nodo/etc/profile",
+ ],
owner => "root",
group => "root",
mode => 0644,
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.
file { "/usr/local/bin/prompt.sh":
source => "puppet://$server/modules/nodo/bin/prompt.sh",
owner => "root",
mode => 0755,
ensure => present,
}
+
+ # Squeeze prompt should be at /etc/profile.d
+ file { "/etc/profile.d/prompt.sh":
+ owner => "root",
+ group => "root",
+ ensure => "/usr/local/bin/prompt.sh"
+ require => File['/usr/local/bin/prompt.sh'],
+ }
}