voxpupuli / puppet-wget

A puppet recipe for wget, a useful tool to download arbitary files from the web
Apache License 2.0
41 stars 114 forks source link

Support Mac #32

Closed awhitford closed 9 years ago

awhitford commented 10 years ago

It looks like there is some partial Darwin support but ultimately this does not work on a Mac...

Error: Could not find command 'wget' Error: /Stage[main]/Maven::Maven/Wget::Fetch[fetch-maven]/Exec[wget-fetch-maven]/returns: change from notrun to 0 failed: Could not find command 'wget'

Could that be supported?

awhitford commented 10 years ago

Can't you just modify the Linux check to include Darwin?

  if $::kernel == 'Linux' or $::kernel == 'Darwin' {
    if ! defined(Package['wget']) {
      package { 'wget': ensure => $version }
    }
  }
carlossg commented 10 years ago

is not that simple in os x, you need to use a homebrew package provider see something like https://github.com/kelseyhightower/puppet-homebrew

awhitford commented 10 years ago

I thought it could use MacPorts.

carlossg commented 9 years ago

It will work fine as long as you install wget before