]> Frank Brehm's Git Trees - salt/states.git/commitdiff
Adding basic/skel.sls
authorFrank Brehm <frank.brehm@profitbricks.com>
Thu, 25 Feb 2016 17:52:30 +0000 (18:52 +0100)
committerFrank Brehm <frank.brehm@profitbricks.com>
Thu, 25 Feb 2016 17:52:30 +0000 (18:52 +0100)
basic/files/skel-bashrc [new file with mode: 0644]
basic/skel.sls [new file with mode: 0644]
top.sls

diff --git a/basic/files/skel-bashrc b/basic/files/skel-bashrc
new file mode 100644 (file)
index 0000000..6d42d5f
--- /dev/null
@@ -0,0 +1,35 @@
+# ~/.bashrc: executed by bash(1) for non-login shells.
+# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
+# for examples
+
+# If not running interactively, don't do anything
+case $- in
+    *i*) ;;
+      *) return;;
+esac
+
+# If set, the pattern "**" used in a pathname expansion context will
+# match all files and zero or more directories and subdirectories.
+#shopt -s globstar
+
+# make less more friendly for non-text input files, see lesspipe(1)
+#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
+
+# If this is an xterm set the title to user@host:dir
+#case "$TERM" in
+#xterm*|rxvt*)
+#    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
+#    ;;
+#*)
+#    ;;
+#esac
+
+# Alias definitions.
+# You may want to put all your additions into a separate file like
+# ~/.bash_aliases, instead of adding them here directly.
+# See /usr/share/doc/bash-doc/examples in the bash-doc package.
+
+if [ -f ~/.bash_aliases ]; then
+    . ~/.bash_aliases
+fi
+
diff --git a/basic/skel.sls b/basic/skel.sls
new file mode 100644 (file)
index 0000000..4870347
--- /dev/null
@@ -0,0 +1,17 @@
+/etc/skel:
+    file.directory:
+        - user: root
+        - group: root
+        - dir_mode: 755
+
+skel_bashrc:
+    file.managed:
+        - name: /etc/skel/.bashrc
+        - source: salt://basic/files/skel-bashrc
+        - user: root
+        - group: root
+        - mode: 644
+        - backup: minion
+        - require:
+            - file: /etc/skel
+
diff --git a/top.sls b/top.sls
index ae37bfb5a6b04466ad333c201b9d0ca290df2a97..f6670234f8be2b384a42fbaf086926aa271673f5 100644 (file)
--- a/top.sls
+++ b/top.sls
@@ -4,9 +4,11 @@ base:
     - basic.localization
 #    - basic.rsync
     - basic.shells
+    - basic.skel
 #    - basic.editors
 
   'ns3.uhu-banane.de':
     - debian.apt
     - basic.localization
     - basic.shells
+    - basic.skel