Return-Path: X-Original-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-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 D3FE37A98 for ; Fri, 30 Dec 2011 02:19:54 +0000 (UTC) Received: (qmail 50943 invoked by uid 500); 30 Dec 2011 02:19:54 -0000 Delivered-To: apmail-incubator-bigtop-dev-archive@incubator.apache.org Received: (qmail 50909 invoked by uid 500); 30 Dec 2011 02:19:54 -0000 Mailing-List: contact bigtop-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-dev@incubator.apache.org Received: (qmail 50901 invoked by uid 99); 30 Dec 2011 02:19:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Dec 2011 02:19:54 +0000 X-ASF-Spam-Status: No, hits=-2001.3 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Dec 2011 02:19:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 104FA130B88 for ; Fri, 30 Dec 2011 02:19:31 +0000 (UTC) Date: Fri, 30 Dec 2011 02:19:31 +0000 (UTC) From: "Roman Shaposhnik (Commented) (JIRA)" To: bigtop-dev@incubator.apache.org Message-ID: <880445645.53142.1325211571068.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1809906400.40734.1324592130659.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (BIGTOP-316) split up hadoop packages into common, hdfs, mapreduce (and yarn) 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/BIGTOP-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177508#comment-13177508 ] Roman Shaposhnik commented on BIGTOP-316: ----------------------------------------- Sorry for the noise, but I can't seem to make flexible renames work with Puppet. I need to 'phone a friend' at this point ;-) Here's what I wanted to have: class hadoop-zookeeper { $client_name = "zookeeper" define client { package { $client_name: ensure => latest, } } .... that does NOT really work in puppet since apparently referencing variables defined in the class works ONLY if the class itself has been included like this: include hadoop-zookeeper Obviously, we can't include ourselves, but we can include a class that is defined inside of us. Which bring me to the following ugly code: class hadoop-zookeeper { class zookeeper { $client_name } define client { include zookeeper package { $zookeeper::client_name: ensure => latest, } } Any suggestions on how to solve it better? > split up hadoop packages into common, hdfs, mapreduce (and yarn) > ---------------------------------------------------------------- > > Key: BIGTOP-316 > URL: https://issues.apache.org/jira/browse/BIGTOP-316 > Project: Bigtop > Issue Type: Sub-task > Components: General > Reporter: Roman Shaposhnik > Assignee: Roman Shaposhnik > Fix For: 0.3.0 > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira