aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
+ }
+}