summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2014-12-23 18:53:35 -0200
committerBruno Wagner <bwgpro@gmail.com>2014-12-23 18:53:35 -0200
commit4b6f03bf30d50a5930bb6bf897959acd2335a10b (patch)
tree771bc408a175f543c579e942c5248cd6c58956f0
parent479ebf4df7fa5db78e263dd5a7f16a02aa937a46 (diff)
Added environment that was missing after translation to puppet
-rwxr-xr-xinstall-pixelated.sh1
-rw-r--r--provisioning/provision.pp1
2 files changed, 2 insertions, 0 deletions
diff --git a/install-pixelated.sh b/install-pixelated.sh
index 60d955d1..9bdb748b 100755
--- a/install-pixelated.sh
+++ b/install-pixelated.sh
@@ -17,6 +17,7 @@
# test dependencies
+set -e
if [ ! $USERNAME ]
then
diff --git a/provisioning/provision.pp b/provisioning/provision.pp
index dc62ddaf..d86646c2 100644
--- a/provisioning/provision.pp
+++ b/provisioning/provision.pp
@@ -48,6 +48,7 @@ class { 'install_pixelated' :
class install_pixelated {
exec { 'install-pixelated':
+ environment => 'USERNAME=vagrant',
command => '/bin/bash /vagrant/install-pixelated.sh',
cwd => '/vagrant',
user => 'vagrant',