From 931671e315b9fe3722058f1474dca3f11aa7b86a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 24 Jan 2014 13:05:44 -0200 Subject: Adding nodo::subsystem::profile::vagrant --- files/root/profile | 10 ++++++++++ manifests/role/vagrant.pp | 2 +- manifests/subsystem/profile/vagrant.pp | 9 +++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 files/root/profile create mode 100644 manifests/subsystem/profile/vagrant.pp 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, + } +} -- cgit v1.2.3