Skip to content

Commit

Permalink
Make non-chef-version-dependant bin path.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Nov 9, 2010
1 parent 37c9d7a commit a44fe40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fabfile.py
Expand Up @@ -2,12 +2,13 @@
env.user = 'root'
env.hosts = ['204.232.205.196']

env.chef_executable = '/var/lib/gems/1.8/gems/chef-0.9.12/bin/chef-solo'
env.chef_executable = '/var/lib/gems/1.8/gems/bin/chef-solo'


def install_chef():
sudo('apt-get update', pty=True)
sudo('apt-get install -y git-core rubygems ruby ruby-dev', pty=True)
sudo('gem install chef --version "= 0.9.12"', pty=True)
sudo('gem install chef', pty=True)

def sync_config():
local('rsync -av . %s@%s:/etc/chef' % (env.user, env.hosts[0]))
Expand Down

0 comments on commit a44fe40

Please sign in to comment.