Permalink
Browse files

Only install the omnibus package if it isn't already installed

  • Loading branch information...
1 parent 6f7861e commit 266bb163165a3805ed0c13e66cda60b62558f040 @wamcvey wamcvey committed May 18, 2012
Showing with 5 additions and 4 deletions.
  1. +2 −2 Vagrantfile
  2. +3 −2 provision/__init__.py
View
4 Vagrantfile
@@ -1,9 +1,9 @@
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
- config.vm.box = "base"
+ config.vm.box = "lucid32"
config.vm.boot_mode = :gui
- config.vm.forward_port "ssh", 22, 2222
+ config.vm.forward_port 22, 2222
end
View
5 provision/__init__.py
@@ -80,8 +80,9 @@ def omnibus_install():
}
if not files.exists(ctx['filename']):
sudo('wget -O %(filename)s %(url)s' % ctx)
- with cd(chef.path):
- sudo('bash install.sh')
+ if not files.exists("/opt/opscode/bin/chef-solo"):
+ with cd(chef.path):
+ sudo('bash install.sh')
def upload():
ctx = {

0 comments on commit 266bb16

Please sign in to comment.