summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-02-22 13:08:46 +0100
committerJan Dittberner <jandd@cacert.org>2018-02-22 13:08:46 +0100
commit9a67ad64b5cf1a8c55c65d3c3c0194dfe0ee0c08 (patch)
treeb03cb6295878c0baf9a5e573e48b104ae57f31f4
parentf9b4c787b451558ac01dea26632cfec119c1ca6b (diff)
downloadcacert-puppet-9a67ad64b5cf1a8c55c65d3c3c0194dfe0ee0c08.tar.gz
cacert-puppet-9a67ad64b5cf1a8c55c65d3c3c0194dfe0ee0c08.tar.xz
cacert-puppet-9a67ad64b5cf1a8c55c65d3c3c0194dfe0ee0c08.zip
Use a template for zshrc, setup root zshrc
-rw-r--r--sitemodules/profiles/manifests/base.pp10
-rw-r--r--sitemodules/profiles/templates/base/zshrc.epp (renamed from sitemodules/profiles/files/base/newuser.zshrc.recommended)3
2 files changed, 11 insertions, 2 deletions
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index d33e8f7..bb43a01 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -104,9 +104,17 @@ class profiles::base (
owner => 'root',
group => 'root',
mode => '0644',
- source => 'puppet:///modules/profiles/base/newuser.zshrc.recommended',
+ content => epp('profiles/base/zshrc.epp'),
require => Package['zsh'],
}
+ file { '/root/.zshrc':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0640',
+ content => epp('profiles/base/zshrc.epp',
+ {'prompttemplate' => 'fire'}),
+ }
file { '/etc/apt/sources.list':
ensure => file,
diff --git a/sitemodules/profiles/files/base/newuser.zshrc.recommended b/sitemodules/profiles/templates/base/zshrc.epp
index f463d06..2a50b6e 100644
--- a/sitemodules/profiles/files/base/newuser.zshrc.recommended
+++ b/sitemodules/profiles/templates/base/zshrc.epp
@@ -1,8 +1,9 @@
+<%- | String $prompttemplate = "fade" |-%>
# Set up the prompt
autoload -Uz promptinit
promptinit
-prompt fire
+prompt <%= $prompttemplate %>
setopt histignorealldups sharehistory