Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EmmanuelKasper opened this issue Jun 5, 2013 · 0 comments
Open

Comments

@EmmanuelKasper
Copy link

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"],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant