From: Luca Filipozzi Date: Sat, 28 Jun 2014 18:59:26 +0000 (+0000) Subject: put /root/.profile under puppet control, too X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=3a8ea253416bbc3db8f4e9b8194dd2e888880745 put /root/.profile under puppet control, too --- diff --git a/modules/debian-org/files/root-dotfiles/bashrc b/modules/debian-org/files/root-dotfiles/bashrc index 7b7ee594..ab93fcba 100644 --- a/modules/debian-org/files/root-dotfiles/bashrc +++ b/modules/debian-org/files/root-dotfiles/bashrc @@ -1,13 +1,12 @@ # ~/.bashrc: executed by bash(1) for non-login shells. -# Note: PS1 and umask are already set in /etc/profile. You should not -# need this unless you want different defaults for root. -# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' -# umask 022 +## THIS FILE IS UNDER PUPPET CONTROL. +## LOCAL CHANGES WILL BE OVERWRITTEN. -# You may uncomment the following lines if you want `ls' to be colorized: export LS_OPTIONS='--color=auto' eval "`dircolors`" alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA' + +# vim: set ft=sh ts=2 sw=2 et ai si: diff --git a/modules/debian-org/files/root-dotfiles/profile b/modules/debian-org/files/root-dotfiles/profile new file mode 100644 index 00000000..4f2c72c0 --- /dev/null +++ b/modules/debian-org/files/root-dotfiles/profile @@ -0,0 +1,17 @@ +# ~/.profile: executed by Bourne-compatible login shells. + +## THIS FILE IS UNDER PUPPET CONTROL. +## LOCAL CHANGES WILL BE OVERWRITTEN. + +if [ "$BASH" ]; then + if [ -f ~/.bashrc ]; then + . ~/.bashrc + fi +fi + +mesg n + +LANG=C +LANGUAGE=C + +# vim: set ft=sh ts=2 sw=2 et ai si: diff --git a/modules/debian-org/files/root-dotfiles/screenrc b/modules/debian-org/files/root-dotfiles/screenrc index 0fd9712d..ecdb0b75 100644 --- a/modules/debian-org/files/root-dotfiles/screenrc +++ b/modules/debian-org/files/root-dotfiles/screenrc @@ -1,3 +1,8 @@ +# ~/.screenrc - ViM configuration file + +## THIS FILE IS UNDER PUPPET CONTROL. +## LOCAL CHANGES WILL BE OVERWRITTEN. + startup_message off deflogin on #vbell off diff --git a/modules/debian-org/files/root-dotfiles/vimrc b/modules/debian-org/files/root-dotfiles/vimrc index baeffd94..e8089b60 100644 --- a/modules/debian-org/files/root-dotfiles/vimrc +++ b/modules/debian-org/files/root-dotfiles/vimrc @@ -1,3 +1,8 @@ +" ~/.vimrc - ViM configuration file + +" THIS FILE IS UNDER PUPPET CONTROL. +" LOCAL CHANGES WILL BE OVERWRITTEN. + runtime! debian.vim filetype plugin on set ai diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index a6270d8b..a8e50bce 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -310,6 +310,9 @@ class debian-org { file { '/root/.bashrc': source => 'puppet:///modules/debian-org/root-dotfiles/bashrc', } + file { '/root/.profile': + source => 'puppet:///modules/debian-org/root-dotfiles/profile', + } file { '/root/.screenrc': source => 'puppet:///modules/debian-org/root-dotfiles/screenrc', }