Add zprofile
authorPeter Palfrader <peter@palfrader.org>
Tue, 26 Jul 2016 11:31:31 +0000 (13:31 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 26 Jul 2016 11:31:31 +0000 (13:31 +0200)
modules/debian-org/files/etc.zsh/zprofile [new file with mode: 0644]
modules/debian-org/manifests/init.pp

diff --git a/modules/debian-org/files/etc.zsh/zprofile b/modules/debian-org/files/etc.zsh/zprofile
new file mode 100644 (file)
index 0000000..8ea4df3
--- /dev/null
@@ -0,0 +1,16 @@
+#
+# THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+# USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+#
+
+# /etc/zsh/zprofile: system-wide .zprofile file for zsh(1).
+#
+# This file is sourced only for login shells (i.e. shells
+# invoked with "-" as the first character of argv[0], and
+# shells invoked with the -l flag.)
+#
+# Global Order: zshenv, zprofile, zshrc, zlogin
+
+if [ -e /etc/profile.d/timeout.sh ]; then
+  .  /etc/profile.d/timeout.sh
+fi
index 49841e1..90291be 100644 (file)
@@ -315,6 +315,13 @@ class debian-org {
                mode   => '0555',
                source => 'puppet:///modules/debian-org/etc.profile.d/timeout.sh',
        }
+       file { '/etc/zsh':
+               ensure => directory,
+       }
+       file { '/etc/zsh/zprofile':
+               mode   => '0444',
+               source => 'puppet:///modules/debian-org/etc.zsh/zprofile',
+       }
 
        # set mmap_min_addr to 4096 to mitigate
        # Linux NULL-pointer dereference exploits