Jira (PUP-7213) support to_yaml in epp

2017-02-14 Thread Christoph Maser (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christoph Maser assigned an issue to Christoph Maser 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
Thanks for your input. The proposed module should help me to achieve exactly what i wanted to do.  
 
 
 
 
 
 
 
 
 
 Puppet /  PUP-7213 
 
 
 
  support to_yaml in epp  
 
 
 
 
 
 
 
 
 

Change By:
 
 Christoph Maser 
 
 
 

Resolution:
 
 Won't Do 
 
 
 

Assignee:
 
 Christoph Maser 
 
 
 

Status:
 
 Reopened Closed 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 

Jira (PUP-7213) support to_yaml in epp

2017-02-14 Thread R.I.Pienaar (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 R.I.Pienaar commented on  PUP-7213 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: support to_yaml in epp  
 
 
 
 
 
 
 
 
 
 
Christoph Maser it really isn't as simple as just doing to_yaml since hashes are unordered you end up with files that changes every run. This is not really something Puppet should solve in core, especially as there are already modules on the forge that does this well. Not every problem is a core problem, not having this kind of thing in core has many advantages 
see for eg https://forge.puppet.com/fiddyspence/hash_file 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-7213) support to_yaml in epp

2017-02-14 Thread Christoph Maser (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christoph Maser updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7213 
 
 
 
  support to_yaml in epp  
 
 
 
 
 
 
 
 
 

Change By:
 
 Christoph Maser 
 
 
 
 
 
 
 
 
 
 Whey trying to use Hash.to_yaml in epp{code}$ cat test.pp $var = { 'key' => 'val' }file {'/tmp/foo':  content => inline_epp(@(END), { hash => $var })<%=  $  hash.to_yaml %>END}$ puppet apply  test.ppError: Evaluation Error: Unknown function: 'to_yaml'. at inlined-epp-text:1:9 on node localhost.localdomain{code} 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-7213) support to_yaml in epp

2017-02-14 Thread Christoph Maser (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christoph Maser commented on  PUP-7213 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: support to_yaml in epp  
 
 
 
 
 
 
 
 
 
 
Thanks for you quick response. Yes there was a typo in my example, but even when that is fixes it doesn't work. However this does work with erb files and is used. And there have been also a lot of tickets about this here https://tickets.puppetlabs.com/browse/PUP-5630?jql=text%20~%20%22to_yaml%22%20and%20text%20~%20%22erb%22 
So in order to have migration path for "dump hash into yaml file" from erb to epp this is a valid point in my opinion. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-7213) support to_yaml in epp

2017-02-13 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-7213 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: support to_yaml in epp  
 
 
 
 
 
 
 
 
 
 
This has nothing to do with EPP specifically. You need a function that produces yaml given a hash. There is no such function in puppet, but there may be one in stdlib. If not there someone else must have written that function already. 
Your EPP code is also not correct as the logic is Puppet Language, you need to use $ in front of variable names. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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-7213) support to_yaml in epp

2017-02-13 Thread Christoph Maser (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christoph Maser created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7213 
 
 
 
  support to_yaml in epp  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  New Feature 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2017/02/13 5:38 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Christoph Maser 
 
 
 
 
 
 
 
 
 
 
Whey trying to use Hash.to_yaml in epp 
 
 
 
 
 
 
$ cat test.pp  
 
 
 
 
  
 
 
 
 
$var = { 'key' => 'val' } 
 
 
 
 
  
 
 
 
 
file {'/tmp/foo':