aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-02-25 15:07:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-02-25 15:07:27 -0300
commitb180ac33227e9d7125bb04932fdbc9b851906c84 (patch)
tree1103fb4d623baa9263021546defc834380233e6c /manifests
parent117f06911b075efd409117a06074d1d33018da10 (diff)
downloadshellprompt-b180ac33227e9d7125bb04932fdbc9b851906c84.tar.gz
shellprompt-b180ac33227e9d7125bb04932fdbc9b851906c84.tar.bz2
Turn into a puppet module
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp19
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..ed293d3
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,19 @@
+class shellprompt {
+ file { "/etc/profile.d/prompt.sh":
+ source => "puppet:///modules/shellprompt/prompt",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
+
+ # Ideally we should not manage this file, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675008
+ file { "/etc/bash.bashrc":
+ source => "puppet:///modules/shellprompt/bash.bashrc",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ require => File['/etc/profile.d/prompt.sh'],
+ }
+}