[ 
https://issues.apache.org/jira/browse/BIGTOP-275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612323#comment-13612323
 ] 

Roman Shaposhnik commented on BIGTOP-275:
-----------------------------------------

Cos, this is the first time I see $var use in templates. What does it mean 
exactly? My reading of Puppet docs 
(http://docs.puppetlabs.com/guides/templating.html#referencing-variables) 
reveals the following ways of reference a var inside of an erb template:
   # Ruby instance variables — that is, @fqdn, @memoryfree, @operatingsystem, 
etc.
   # Ruby local variables — that is, fqdn, memoryfree, operatingsystem, etc., 
without the prepended @ sign.

Is there any reason we should be using $var ?
                
> scoping of variable in puppet code is incorrect
> -----------------------------------------------
>
>                 Key: BIGTOP-275
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-275
>             Project: Bigtop
>          Issue Type: Bug
>          Components: Deployment
>    Affects Versions: 0.2.0
>            Reporter: Roman Shaposhnik
>            Assignee: Roman Shaposhnik
>             Fix For: 0.6.0
>
>         Attachments: BIGTOP-275.patch
>
>
> It seems that the variable that are referenced in our templates are actually 
> coming from cluster.pp scope and not individual modules. This is especially 
> visible in hadoop module. Need to investigate.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to