mlafeldt / chef-runner

The fastest way to run Chef cookbooks
Apache License 2.0
179 stars 17 forks source link

Allow to provision host system #53

Closed mlafeldt closed 9 years ago

mlafeldt commented 9 years ago

Closes #36.

mlafeldt commented 9 years ago

Using this feature to install a Homebrew package on OS X:

[foo]$ chef-runner -L --sudo=false --resolver=berkshelf
INFO: Starting chef-runner (v0.9.0.dev darwin/amd64)
INFO: Run list is [foo::default]
INFO: Preparing local files
INFO: Installing cookbook dependencies with Berkshelf resolver
Resolving cookbook dependencies...
Fetching 'foo' from source at .
Using homebrew (1.12.0)
Using foo (0.0.0) from source at .
Using build-essential (2.1.3)
Vendoring build-essential (2.1.3) to /private/tmp/foo/.chef-runner/sandbox/cookbooks/build-essential
Vendoring foo (0.0.0) to /private/tmp/foo/.chef-runner/sandbox/cookbooks/foo
Vendoring homebrew (1.12.0) to /private/tmp/foo/.chef-runner/sandbox/cookbooks/homebrew
INFO: Stripping non-cookbook files
INFO: Uploading local files to machine. This may take a while...
INFO: Skipping installation of Chef
INFO: Running Chef using Local driver (hostname: localhost)
[2015-02-09T20:45:08+01:00] INFO: Forking chef instance to converge...
[2015-02-09T20:45:08+01:00] INFO: Unable to access cache at /var/chef. Switching cache to /Users/mlafeldt/.chef
Starting Chef Client, version 12.0.3
[2015-02-09T20:45:08+01:00] INFO: *** Chef 12.0.3 ***
[2015-02-09T20:45:08+01:00] INFO: Chef-client pid: 5917
[2015-02-09T20:45:11+01:00] WARN: Run List override has been provided.
[2015-02-09T20:45:11+01:00] WARN: Original Run List: []
[2015-02-09T20:45:11+01:00] WARN: Overridden Run List: [recipe[foo::default]]
[2015-02-09T20:45:11+01:00] INFO: Run List is [recipe[foo::default]]
[2015-02-09T20:45:11+01:00] INFO: Run List expands to [foo::default]
[2015-02-09T20:45:11+01:00] INFO: Starting Chef Run for localhost
[2015-02-09T20:45:11+01:00] INFO: Running start handlers
[2015-02-09T20:45:11+01:00] INFO: Start handlers complete.
Compiling Cookbooks...
Converging 1 resources
Recipe: foo::default
  * homebrew_package[tree] action install[2015-02-09T20:45:11+01:00] INFO: Processing homebrew_package[tree] action install (foo::default line 1)

    - install version 1.7.0 of package tree
[2015-02-09T20:45:12+01:00] INFO: Chef Run complete in 0.651591 seconds
[2015-02-09T20:45:12+01:00] INFO: Skipping removal of unused files from the cache

Running handlers:
[2015-02-09T20:45:12+01:00] INFO: Running report handlers
Running handlers complete
[2015-02-09T20:45:12+01:00] INFO: Report handlers complete
Chef Client finished, 1/1 resources updated in 4.040213 seconds
INFO: chef-runner finished in 11.289497629s