[
https://issues.apache.org/jira/browse/BIGTOP-1553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14230870#comment-14230870
]
jay vyas edited comment on BIGTOP-1553 at 12/2/14 2:43 AM:
-----------------------------------------------------------
[~cos] [~rvs] and others interested in puppet. I dont know what to do here,
need advise.
Well, after some hacking around, i guess puppet core syntax really doesnt
support any way to
- validate x is an array OR
- catch an arbitrary exception with a simple error message
*So* really, the only way to provide any sanity to our users if the components
length is 1, is import {{stdlib}} as a bigtop puppet dependency *or* add a new
custom .pp function of our own.
Should we
1) Add puppet {{stdlib}} to bigtop ? It might enable other cleanup tasks in the
future. We can easily validate strings, cast to arrays and so on w/ stdlib
puppet dependencies. *or*
2) Add a custom function for checking that components is an array ? Advantage
here is no external dep, but yet another 10 lines of code we carry around and
maintain
Im no puppet exper either, so either is neutral for me. Just let me know !
was (Author: jayunit100):
[~cos] [~rvs] and others interested in puppet. I dont know what to do here,
need advise.
Well, after some hacking around, i guess puppet core syntax really doesnt
support any way to
- validate x is an array OR
- catch an arbitrary exception with a simple error message
So really, the only way to do this, is import {{stdlib}} as a bigtop puppet
dependency *or* add a new custom .pp function of our own.
Should we
1) Add puppet {{stdlib}} to bigtop ? It might enable other cleanup tasks in the
future. *or*
2) Add a custom function for checking that components is an array ?
Im no puppet exper either, so either is neutral for me. Just let me know !
> puppet installation fails when components value is a single item instead of a
> list
> ----------------------------------------------------------------------------------
>
> Key: BIGTOP-1553
> URL: https://issues.apache.org/jira/browse/BIGTOP-1553
> Project: Bigtop
> Issue Type: Bug
> Components: deployment
> Affects Versions: 0.8.0
> Reporter: Rob Leidle
> Priority: Trivial
> Fix For: backlog
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> If the value for components is a single value such as "hive" instead of a
> list of values then the following error occurs:
> components is not an hash or array when accessing it with 0 at
> /var/tmp/bigtop-0.8.0/bigtop-deploy/puppet/manifests/cluster.pp:123
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)