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 1C0D410C74 for ; Thu, 26 Feb 2015 10:29:16 +0000 (UTC) Received: (qmail 30409 invoked by uid 500); 26 Feb 2015 10:29:11 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 30377 invoked by uid 500); 26 Feb 2015 10:29:10 -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 30366 invoked by uid 99); 26 Feb 2015 10:29:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2015 10:29:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Thu, 26 Feb 2015 10:29:09 +0000 Received: (qmail 27980 invoked by uid 99); 26 Feb 2015 10:27:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2015 10:27:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 13B30E03F7; Thu, 26 Feb 2015 10:27:34 +0000 (UTC) From: bostko To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-brooklyn pull request: Basho Raik - Linux Install Content-Type: text/plain Message-Id: <20150226102734.13B30E03F7@git1-us-west.apache.org> Date: Thu, 26 Feb 2015 10:27:34 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user bostko commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/531#discussion_r25417079 --- Diff: software/nosql/src/main/java/brooklyn/entity/nosql/riak/RiakNodeSshDriver.java --- @@ -156,6 +157,34 @@ public void install() { .add("ln -s `which riak-admin` " + Urls.mergePaths(installBin, "riak-admin")) .build(); } + + private List installPackageCloud() { + return ifExecutable0Else1("yum", installDebianBased(), installRpmBased()); + } + + private ImmutableList installDebianBased() { + ImmutableList.Builder commands = ImmutableList.builder(); + commands.add("curl https://packagecloud.io/install/repositories/basho/riak/script.deb | sudo bash"); + commands.add("sudo apt-get install --assume-yes riak"); + return commands.build(); + } + + private ImmutableList installRpmBased() { + ImmutableList.Builder commands = ImmutableList.builder(); + commands.add("curl https://packagecloud.io/install/repositories/basho/riak/script.rpm | sudo bash"); + commands.add("sudo yum install -y riak"); --- End diff -- Thank you for your feedback! That might fix the problem --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---