bigtop-dev mailing list archives

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


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 {

  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:
>             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:!default.jspa
For more information on JIRA, see:


View raw message