Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AA15017CF1 for ; Fri, 26 Sep 2014 10:05:58 +0000 (UTC) Received: (qmail 43845 invoked by uid 500); 26 Sep 2014 10:05:58 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 43807 invoked by uid 500); 26 Sep 2014 10:05:58 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 43796 invoked by uid 99); 26 Sep 2014 10:05:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2014 10:05:58 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 26 Sep 2014 10:05:35 +0000 Received: (qmail 43703 invoked by uid 99); 26 Sep 2014 10:05:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2014 10:05:33 +0000 Date: Fri, 26 Sep 2014 10:05:33 +0000 (UTC) From: "Alex Heneveld (JIRA)" To: dev@brooklyn.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BROOKLYN-70) new chef community site uses different download links not compatible with brooklyn-chef support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/BROOKLYN-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14148993#comment-14148993 ] Alex Heneveld commented on BROOKLYN-70: --------------------------------------- this new style `.../download` link is irksome because we don't know the archive format and directory name until we have followed the link. ideally we do the download on the remote machine, but the commands to unpack and extract the cookbook name (directory name) are done on the brooklyn server based on the URL. a quick fix might be to assume any link without an obvious archive extension is a TGZ, and we cat the download to `tar xvfz` and require that this results in a directory which matches the key a long-term repair if more complex behaviour is needed is to allow additional strategies; these could be specified by supplying instead of the string (URL) a map containing `url` key OR an `install_command` key, where `install_command` could be used to do arbitrary bash to install it as needed (defaulting to `curl -f -L -k URL | tar xvfz` when a `url` is supplied) > new chef community site uses different download links not compatible with brooklyn-chef support > ----------------------------------------------------------------------------------------------- > > Key: BROOKLYN-70 > URL: https://issues.apache.org/jira/browse/BROOKLYN-70 > Project: Brooklyn > Issue Type: Bug > Reporter: Alex Heneveld > > it used to be that the preferred URL was the github release, e.g. > (1) https://github.com/poise/poise/archive/v1.0.10.tar.gz > now they seem to offer a convenience link at > (2) https://community.opscode.com/cookbooks/poise/versions/1.0.10/download > which redirects to a CDN: > (3) https://s3.amazonaws.com/community-files.opscode.com/cookbook_versions/tarballs/6179/original/poise.tgz?1394831504 > WORKAROUND > until we support this new chef community mechanism (which will require some work, because we have to be smarter about how we unpack the archive), instead of using (2) above users should follow the "View Source" link to github then the "<#> Releases" link and get the github TGZ for the recipe(s) desired. -- This message was sent by Atlassian JIRA (v6.3.4#6332)