]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adding nodo::subsystem::profile::vagrant
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 24 Jan 2014 15:05:44 +0000 (13:05 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 24 Jan 2014 15:05:44 +0000 (13:05 -0200)
files/root/profile [new file with mode: 0644]
manifests/role/vagrant.pp
manifests/subsystem/profile/vagrant.pp [new file with mode: 0644]

diff --git a/files/root/profile b/files/root/profile
new file mode 100644 (file)
index 0000000..c6a802a
--- /dev/null
@@ -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
index 034f706d30eded496d35f1970ce141f3c958f002..717e0239ef698ca08451c8b6ff6d327e493ac157 100644 (file)
@@ -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 (file)
index 0000000..6306b58
--- /dev/null
@@ -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,
+  }
+}