brightbox/puppet

apt module uses "curl", a command not available in ubuntu

Opened this issue · 0 comments

curl is not availaible in ubuntu base, which means a standalone bootstrap of the apt module will fail.
I would suggest to replace curl with wget:

diff --git a/scripts/vagrant/modules/apt/manifests/init.pp b/scripts/vagrant/mod
index f769217..d251ff3 100644
--- a/scripts/vagrant/modules/apt/manifests/init.pp
+++ b/scripts/vagrant/modules/apt/manifests/init.pp
@@ -39,7 +39,7 @@ define apt::localpackage($url = "", $repodir = "/var/cache/loc
   $url_tokens = split($url, '/')
   $pkg_filename = $url_tokens[-1]
   exec { "apt-localpackage-${name}":
-    command => "/usr/bin/curl -L -s -C - -O $url",
+    command => "/usr/bin/wget $url",
     cwd => $repodir,
     creates => "${repodir}/${pkg_filename}",
     notify => Exec["apt-update-local-repo"],