Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-03-19 Thread JIRA
Title: Message Title










 

 Erik Dalén updated an issue











 






 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 










Change By:

 Erik Dalén









 It would be good if code like this was possible: {code} class postgresql (  $version = '9.0',  $datadir = "/var/lib/postgresql/${version}/main", ) { ... } {code}   or used in expressions: {code} class foo (  $concurrent_reads = 20,  $concurrent_writes = $concurrent_reads/2,) { ... } {code}   Some of this can be possible to workaround using class inheritance, but for each reference you need another layer of inheritance and it also results in weird parameter naming for the data bindings. Like having to specify postgresql::params::version but then postgresql::datadir.












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-03-19 Thread redmine.exporter (JIRA)
Title: Message Title










 

 redmine.exporter created an issue











 






 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 










Issue Type:

  New Feature




Assignee:


 Unassigned




Created:


 19/Mar/14 9:21 AM




Labels:


 redmine




Priority:

  Normal




Reporter:

 redmine.exporter










It would be good if code like this was possible:
 class postgresql ( $version = '9.0', $datadir = "/var/lib/postgresql/$ {version}
/main", )  { ... }  or used in expressions:  class foo ( $concurrent_reads = 20, $concurrent_writes = $concurrent_reads/2, ) { ... }
Some of this can be possible to workaround using class inheritance, but for each reference you need another layer of inheritance and it also results in weird parameter naming for the data bindings. Like having to specify postgresql::params::version but then postgresql::datadir.












   

 Add Comment





  

Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-03-19 Thread Henrik Lindberg (JIRA)
Title: Message Title










 

 Henrik Lindberg updated an issue











 






 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 










Change By:

 Henrik Lindberg




Story Points:

 2












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-03-19 Thread Henrik Lindberg (JIRA)
Title: Message Title










 

 Henrik Lindberg updated an issue











 






 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 










Change By:

 Henrik Lindberg




Fix Version/s:

 3.6.0












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-03-19 Thread Henrik Lindberg (JIRA)
Title: Message Title










 

 Henrik Lindberg updated an issue











 






 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 










Change By:

 Henrik Lindberg




Component/s:

 DSL












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-03-19 Thread Moses Mendoza (JIRA)
Title: Message Title










 

 Moses Mendoza commented on an issue











 






  Re: Allow class & define parameters to reference earlier parameters 










Henrik Lindberg I noticed you assigned this to Release Engineering, but I'm not sure what we're being asked to do. Could you elaborate?












   

 Add Comment











 













 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 







 It would be good if code like this was possible:   {code}  class postgresql (    $version = '9.0',    $datadir = "/var/lib/postgresql/${version}/main",  ) { ... }  {code}   or used in expressions:   {code}  class foo (    $concurrent_reads = 20,    $concurrent_writes = $concurrent_reads/2,  ) { ... }  {code}   Some of this can be possible to workaroun...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.c

Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-03-19 Thread Henrik Lindberg (JIRA)
Title: Message Title










 

 Henrik Lindberg commented on an issue











 






  Re: Allow class & define parameters to reference earlier parameters 










woah... how did that happen... sorry.












   

 Add Comment











 













 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 







 It would be good if code like this was possible:   {code}  class postgresql (    $version = '9.0',    $datadir = "/var/lib/postgresql/${version}/main",  ) { ... }  {code}   or used in expressions:   {code}  class foo (    $concurrent_reads = 20,    $concurrent_writes = $concurrent_reads/2,  ) { ... }  {code}   Some of this can be possible to workaroun...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-03-19 Thread Henrik Lindberg (JIRA)
Title: Message Title










 

 Henrik Lindberg updated an issue











 






 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 










Change By:

 Henrik Lindberg




Assignee:

 Release Engineering












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-04-29 Thread JIRA
Title: Message Title










 

 Erik Dalén commented on an issue











 






  Re: Allow class & define parameters to reference earlier parameters 










So, this seems to work with values you specify as parameters, but not with default values.
Illustration: code define foo ( $bar = 1, $baz = $bar, ) { notify  { $baz: }
} foo  {'test1': bar => 'test'}
foo  {'test2': }
code
code Notice: Compiled catalog for 10.48.20.37.office.spotify.net in environment production in 0.08 seconds Notice: test Notice: /Stage[main]/Main/Foo[test1]/Notify[test]/message: defined 'message' as 'test' Notice: undef Notice: /Stage[main]/Main/Foo[test2]/Notify[undef]/message: defined 'message' as 'undef' Notice: Finished catalog run in 0.53 seconds code












   

 Add Comment











 













 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 







 It would be good if code like this was possible:   {code}  class postgresql (    $version = '9.0',    $datadir = "/var/lib/postgresql/${version}/main",  ) { ... }  {code}   or used in expressions:   {code}  class foo (    $concurrent_reads = 20,    $concurrent_writes = $concurrent_reads/2,  ) { ... }  {code}   Some of this can be possible to workaroun...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




   

Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-04-29 Thread Henrik Lindberg (JIRA)
Title: Message Title










 

 Henrik Lindberg commented on an issue











 






  Re: Allow class & define parameters to reference earlier parameters 










yes, naturally  IIRC, it evaluates all of the default expressions, and then sets them - there is no partial result. When an argument is given it can be referenced. I think it gets even more weir when you also use resource default expressions (i.e. Foo  { x => 'value'}
) due to the lazyness of the evaluation of those.
This is not easily fixed for the 3x defines and classes.












   

 Add Comment











 













 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 







 It would be good if code like this was possible:   {code}  class postgresql (    $version = '9.0',    $datadir = "/var/lib/postgresql/${version}/main",  ) { ... }  {code}   or used in expressions:   {code}  class foo (    $concurrent_reads = 20,    $concurrent_writes = $concurrent_reads/2,  ) { ... }  {code}   Some of this can be possible to workaroun...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google G

Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2014-05-13 Thread Andy Parker (JIRA)
Title: Message Title










 

 Andy Parker updated an issue











 






 Puppet /  PUP-1985



  Allow class & define parameters to reference earlier parameters 










Change By:

 Andy Parker




Fix Version/s:

 3.7.0




Fix Version/s:

 4.x












   

 Add Comment











 










 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2015-05-06 Thread Owen Rodabaugh (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Owen Rodabaugh updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1985 
 
 
 
  Allow class & define parameters to reference earlier parameters  
 
 
 
 
 
 
 
 
 

Change By:
 
 Owen Rodabaugh 
 
 
 

CS Priority:
 
 Needs Priority 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2015-05-07 Thread Owen Rodabaugh (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Owen Rodabaugh updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1985 
 
 
 
  Allow class & define parameters to reference earlier parameters  
 
 
 
 
 
 
 
 
 

Change By:
 
 Owen Rodabaugh 
 
 
 

CS Priority:
 
 Needs Priority Normal 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2015-01-15 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1985 
 
 
 
  Allow class & define parameters to reference earlier parameters  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Scrum Team:
 
 Language 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2016-01-11 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren assigned an issue to Thomas Hallgren 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1985 
 
 
 
  Allow class & define parameters to reference earlier parameters  
 
 
 
 
 
 
 
 
 

Change By:
 
 Thomas Hallgren 
 
 
 

Assignee:
 
 Thomas Hallgren 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2016-01-11 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1985 
 
 
 
  Allow class & define parameters to reference earlier parameters  
 
 
 
 
 
 
 
 
 

Change By:
 
 Thomas Hallgren 
 
 
 

Fix Version/s:
 
 PUP 4.x 
 
 
 

Fix Version/s:
 
 PUP 4.3.2 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2016-01-11 Thread Thomas Hallgren (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Thomas Hallgren updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1985 
 
 
 
  Allow class & define parameters to reference earlier parameters  
 
 
 
 
 
 
 
 
 

Change By:
 
 Thomas Hallgren 
 
 
 

Scope Change Category:
 
 Found 
 
 
 

Scope Change Reason:
 
 TODO list of current sprint is empty. 
 
 
 

Sprint:
 
 Language  Triage  2016-01-13 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2016-01-11 Thread Kylo Ginsberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kylo Ginsberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1985 
 
 
 
  Allow class & define parameters to reference earlier parameters  
 
 
 
 
 
 
 
 
 

Change By:
 
 Kylo Ginsberg 
 
 
 

Fix Version/s:
 
 PUP 4.3.2 
 
 
 

Fix Version/s:
 
 PUP 4.4.0 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2016-01-11 Thread Peter Huene (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Peter Huene commented on  PUP-1985 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Allow class & define parameters to reference earlier parameters  
 
 
 
 
 
 
 
 
 
 
This will also need to be fixed for evaluating classes and defined types in the native compiler (i.e. any "call" that is evaluated from a resource). Other "calls" currently support this behavior because the parameters are set in scope in declaration order, e.g. calls to Puppet functions (when implemented) and the following parameterized EPP evaluation: 
 
 
 
 
 
 
inline_epp(@(SOURCE)) 
 
 
 
 
<%| 
 
 
 
 
   $param1 = foo, 
 
 
 
 
   $param2 = $param1 
 
 
 
 
|%> 
 
 
 
 
<%= notice($param2) %> 
 
 
 
 
-SOURCE
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
  

Jira (PUP-1985) Allow class & define parameters to reference earlier parameters

2016-01-11 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg assigned an issue to Thomas Hallgren 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-1985 
 
 
 
  Allow class & define parameters to reference earlier parameters  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Assignee:
 
 Thomas Hallgren 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.