Coder Social home page Coder Social logo

kitchenplan / chef-homebrewalt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sous-chefs/homebrew

1.0 1.0 17.0 80 KB

This cookbook installs Homebrew and Homebrew Cask and replaces MacPorts as the default package provider for the package resource on OS X systems. This cookbook is an alternative implementation because the default Opscode cookbook did not work as needed for use in Kitchenplan.

Ruby 100.00%

chef-homebrewalt's People

Contributors

andrewshawcare avatar andriantolie avatar betamatt avatar bleything avatar buysse avatar cubranic avatar fnichol avatar keen99 avatar maadhattah avatar mathie avatar onewland avatar roderik avatar schisamo avatar sergiopatino avatar sethvargo avatar shouser avatar spesnova avatar squarefrog avatar stissot avatar walkah avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

chef-homebrewalt's Issues

Elaborate on motivation for fork (in readme or similar)

"This cookbook is an alternative implementation based upon the Homebrew cookbook maintained by Opscode and the pivotal_workstation cookbook by Pivotal Labs because the default Opscode cookbook did not work as needed for use in Kitchenplan."

From a future-proofing perspective, I'm just left wondering:

  • How did it not work as needed?
  • Will it ever work as needed? If so, is there a plan for this project to die/be merged back eventually?

Error: HOMEBREW_BREW_FILE was not exported! Please call bin/brew directly!

  * directory[/opt/homebrew-cask/Caskroom] action create[2016-02-08T14:44:53-08:00] INFO: Processing directory[/opt/homebrew-cask/Caskroom] action create (homebrewalt::default line 53)
[2016-02-08T14:44:53-08:00] DEBUG: found target_mode == current_mode, not updating mode
[2016-02-08T14:44:53-08:00] DEBUG: found target_uid == current_uid, not updating owner
[2016-02-08T14:44:53-08:00] DEBUG: found target_gid == nil, so no group was specified on resource, not managing group
 (up to date)
  * package[brew-cask] action install[2016-02-08T14:44:53-08:00] INFO: Processing package[brew-cask] action install (homebrewalt::default line 59)
/usr/local
Error: HOMEBREW_BREW_FILE was not exported! Please call bin/brew directly!


    ================================================================================
    Error executing action `install` on resource 'package[brew-cask]'
    ================================================================================

    SystemExit
    ----------
    exit

    Cookbook Trace:
    ---------------
    /opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:88:in `require'
    /opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:88:in `get_version_from_formula'
    /opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:68:in `current_installed_version'
    /opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:37:in `load_current_resource'

    Resource Declaration:
    ---------------------
    # In /opt/kitchenplan/vendor/cookbooks/homebrewalt/recipes/default.rb

     59: package "brew-cask" do
     60:   options "--HEAD"
     61: end
     62:

    Compiled Resource:
    ------------------
    # Declared in /opt/kitchenplan/vendor/cookbooks/homebrewalt/recipes/default.rb:59:in `from_file'

    package("brew-cask") do
      action :install
      retries 0
      retry_delay 2
      guard_interpreter :default
      options "--HEAD"
      package_name "brew-cask"
      timeout 900
      cookbook_name :homebrewalt
      recipe_name "default"
    end

[2016-02-08T14:44:53-08:00] INFO: Running queued delayed notifications before re-raising exception
[2016-02-08T14:44:53-08:00] DEBUG: Re-raising exception: SystemExit - package[brew-cask] (homebrewalt::default line 59) had an error: SystemExit: exit
/usr/local/Library/Homebrew/utils.rb:117:in `exit'
  /usr/local/Library/Homebrew/utils.rb:117:in `odie'
  /usr/local/Library/Homebrew/config.rb:32:in `<top (required)>'
  /usr/local/Library/Homebrew/global.rb:18:in `require'
  /usr/local/Library/Homebrew/global.rb:18:in `<top (required)>'
  /opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:88:in `require'
  /opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:88:in `get_version_from_formula'
  /opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:68:in `current_installed_version'
  /opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:37:in `load_current_resource'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/provider.rb:104:in `run_action'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource.rb:648:in `run_action'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:49:in `run_action'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:81:in `block (2 levels) in converge'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:81:in `each'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:81:in `block in converge'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection.rb:98:in `block in execute_each_resource'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection.rb:96:in `execute_each_resource'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:80:in `converge'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:345:in `converge'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:431:in `do_run'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:213:in `block in run'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:207:in `fork'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:207:in `run'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application.rb:236:in `run_chef_client'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application/solo.rb:226:in `block in run_application'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application/solo.rb:218:in `loop'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application/solo.rb:218:in `run_application'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application.rb:55:in `run'
  /opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/bin/chef-solo:25:in `<top (required)>'
  vendor/bin/chef-solo:16:in `load'
  vendor/bin/chef-solo:16:in `<main>'

Running handlers:
[2016-02-08T14:44:53-08:00] ERROR: Running exception handlers
Running handlers complete
[2016-02-08T14:44:53-08:00] ERROR: Exception handlers complete
[2016-02-08T14:44:53-08:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-02-08T14:44:53-08:00] DEBUG: SystemExit: package[brew-cask] (homebrewalt::default line 59) had an error: SystemExit: exit
/usr/local/Library/Homebrew/utils.rb:117:in `exit'
/usr/local/Library/Homebrew/utils.rb:117:in `odie'
/usr/local/Library/Homebrew/config.rb:32:in `<top (required)>'
/usr/local/Library/Homebrew/global.rb:18:in `require'
/usr/local/Library/Homebrew/global.rb:18:in `<top (required)>'
/opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:88:in `require'
/opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:88:in `get_version_from_formula'
/opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:68:in `current_installed_version'
/opt/kitchenplan/vendor/cookbooks/homebrewalt/libraries/homebrew_package.rb:37:in `load_current_resource'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/provider.rb:104:in `run_action'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource.rb:648:in `run_action'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:49:in `run_action'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:81:in `block (2 levels) in converge'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:81:in `each'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:81:in `block in converge'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection.rb:98:in `block in execute_each_resource'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/resource_collection.rb:96:in `execute_each_resource'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/runner.rb:80:in `converge'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:345:in `converge'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:431:in `do_run'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:213:in `block in run'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:207:in `fork'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/client.rb:207:in `run'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application.rb:236:in `run_chef_client'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application/solo.rb:226:in `block in run_application'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application/solo.rb:218:in `loop'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application/solo.rb:218:in `run_application'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/lib/chef/application.rb:55:in `run'
/opt/kitchenplan/vendor/bundle/ruby/2.0.0/gems/chef-11.18.12/bin/chef-solo:25:in `<top (required)>'
vendor/bin/chef-solo:16:in `load'
vendor/bin/chef-solo:16:in `<main>'
Chef Client failed. 9 resources updated in 8.680104 seconds

Error when tapping already tapped repository

Hi,

Trying to help a colleague with a failing provisioning on a clean El Capitan install. I haven't got the actual error log at the moment, but the problem seems to be when you try to tap an already tapped repository. brew will return an error when trying to do this and looking at the tap.rb provider, you don't use ´brew tap´ to list all tapped taps, instead ´/usr/local/Library/Taps/#{tap_dir}´ is evaluated. This check seems to be faulty, and ´brew tap´ will be executed when not needed. I think you should use ´brew tap´ to get the info instead. That will make the provider less fragile to changes in homewbrew.

"sudo: no tty present and no askpass program specified" when installing java using cask

When I tried to run kitchenplan for the first time on a new unconfigured Macbook, it always gives an error "sudo: no tty present and no askpass program specified" when it reaches the line where it install java via homebrewalt cask. There isn't any problem when I tried to run kitchenplan provision on the second time though. Anyone has the same issue here?

Update release

Without commit dfbaa5b the install is broken. v1.8.7 (specified in the template Cheffile) pulls down ed38694 . Can someone please bump the release to include this commit? I can just reference the SHA, but it seems a little bit nicer :)

Also, should the metadata file reflect the github release? It's currently at 1.8.1 . This made debugging the issue a little difficult since I thought I wasn't getting 1.8.7 when reading the local cookbook.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.