Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Package downloads consistently failing on El Capitan #45

Closed
rypit opened this issue Dec 1, 2015 · 1 comment
Closed

Package downloads consistently failing on El Capitan #45

rypit opened this issue Dec 1, 2015 · 1 comment

Comments

@rypit
Copy link

rypit commented Dec 1, 2015

After taking a look at boxen/puppet-virtualbox#35, it seems like people are starting to lean on puppet-brewcask since cask has a large community and generally keeps things up to date.

However, after adding the project to our "our-boxen", I get the following errors every time I try to include a package with brewcask as the provider:

my_project.pp

# ...
package {"vagrant": provider => "brew cask"}

$ boxen my_project

# ...
Debug: Prefetching brewcask resources for package
Debug: Executing 'brew cask install vagrant'
Error: Execution of 'brew cask install vagrant' returned 1: ==> Downloading https://releases.hashicorp.com/vagrant/1.7.4/vagrant_1.7.4.dmg
Error: Download failed on Cask 'vagrant' with message: Download failed: https://releases.hashicorp.com/vagrant/1.7.4/vagrant_1.7.4.dmg
Error: /Stage[main]/Projects::My_project/Package[vagrant]/ensure: change from absent to present failed: Execution of 'brew cask install vagrant' returned 1: ==> Downloading https://releases.hashicorp.com/vagrant/1.7.4/vagrant_1.7.4.dmg
Error: Download failed on Cask 'vagrant' with message: Download failed: https://releases.hashicorp.com/vagrant/1.7.4/vagrant_1.7.4.dmg

This is on OS X 10.11 (15A284), with Xcode 7.1 Version 7.1.1 (7B1005).

The same command when run from the terminal executes successfully.

Any help is much appreciated.

@rypit
Copy link
Author

rypit commented Dec 15, 2015

Solved via @n0ts's suggestion here: #22 (comment)

  sudoers { 'installer':
    users    => $::boxen_user,
    hosts    => 'ALL',
    commands => [
      '(ALL) SETENV:NOPASSWD: /usr/sbin/installer',
    ],
    type     => 'user_spec',
  }

  package { 'virtualbox':
    provider => 'brewcask',
    require  => Sudoers['installer'],
  }

  package { "vagrant":
    provider => "brewcask",
  }

Note: I also am now running the following boxen module versions:

github "brewcask",    "0.0.6"
github "homebrew",    "2.0.0"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant