incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Shaposhnik (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BIGTOP-316) split up hadoop packages into common, hdfs, mapreduce (and yarn)
Date Fri, 30 Dec 2011 02:21:31 GMT

     [ https://issues.apache.org/jira/browse/BIGTOP-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Roman Shaposhnik updated BIGTOP-316:
------------------------------------

    Comment: was deleted

(was: 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

        

Mime
View raw message