aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-01-24 13:05:44 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-01-24 13:05:44 -0200
commit931671e315b9fe3722058f1474dca3f11aa7b86a (patch)
tree79fd133c02a3e84894e3b3397d391d60ec8c1d0b
parentd990fed47634835c5f7e5ddfadacb9a764b2c678 (diff)
downloadpuppet-nodo-931671e315b9fe3722058f1474dca3f11aa7b86a.tar.gz
puppet-nodo-931671e315b9fe3722058f1474dca3f11aa7b86a.tar.bz2
Adding nodo::subsystem::profile::vagrant
-rw-r--r--files/root/profile10
-rw-r--r--manifests/role/vagrant.pp2
-rw-r--r--manifests/subsystem/profile/vagrant.pp9
3 files changed, 20 insertions, 1 deletions
diff --git a/files/root/profile b/files/root/profile
new file mode 100644
index 0000000..c6a802a
--- /dev/null
+++ b/files/root/profile
@@ -0,0 +1,10 @@
+# ~/.profile: executed by Bourne-compatible login shells.
+
+if [ "$BASH" ]; then
+ if [ -f ~/.bashrc ]; then
+ . ~/.bashrc
+ fi
+fi
+
+# See https://github.com/mitchellh/vagrant/issues/1673
+tty -s && mesg n
diff --git a/manifests/role/vagrant.pp b/manifests/role/vagrant.pp
index 034f706..717e023 100644
--- a/manifests/role/vagrant.pp
+++ b/manifests/role/vagrant.pp
@@ -32,7 +32,7 @@ class nodo::role::vagrant {
# Then include our subsystems
include nodo::subsystem::locales
- include nodo::subsystem::profile
+ include nodo::subsystem::profile::vagrant
include nodo::subsystem::screen
include nodo::subsystem::hostname
include nodo::subsystem::local
diff --git a/manifests/subsystem/profile/vagrant.pp b/manifests/subsystem/profile/vagrant.pp
new file mode 100644
index 0000000..6306b58
--- /dev/null
+++ b/manifests/subsystem/profile/vagrant.pp
@@ -0,0 +1,9 @@
+class nodo::subsystem::profile::vagrant inherits nodo::subsystem::profile {
+ file { "/root/.profile":
+ source => "puppet:///modules/nodo/root/profile",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ }
+}