From 6e9665e02f9d071e1b8410480447156670ba3f8b Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 25 Feb 2016 18:52:30 +0100 Subject: [PATCH] Adding basic/skel.sls --- basic/files/skel-bashrc | 35 +++++++++++++++++++++++++++++++++++ basic/skel.sls | 17 +++++++++++++++++ top.sls | 2 ++ 3 files changed, 54 insertions(+) create mode 100644 basic/files/skel-bashrc create mode 100644 basic/skel.sls diff --git a/basic/files/skel-bashrc b/basic/files/skel-bashrc new file mode 100644 index 0000000..6d42d5f --- /dev/null +++ b/basic/files/skel-bashrc @@ -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 index 0000000..4870347 --- /dev/null +++ b/basic/skel.sls @@ -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 ae37bfb..f667023 100644 --- 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 -- 2.39.5