Re: [Puppet-dev] Re: Puppetconf 2015: pre-summit tea party

2015-09-12 Thread Kylo Ginsberg
On Sat, Sep 12, 2015 at 7:36 AM, Henrik Lindberg <
henrik.lindb...@cloudsmith.com> wrote:

> On 2015-11-09 19:20, Daniele Sluijters wrote:
>
>> Hi everyone,
>>
>> As is tradition (since last year)
>>
>
> It was a nice event last year.
>
> Want to join? Throw a +1 in the list so I get a rough idea of how people
>> are going to show.
>>
>>
> +1
>

+1


>
> - henrik
>
> --
>
> Visit my Blog "Puppet on the Edge"
> http://puppet-on-the-edge.blogspot.se/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/mt1d9e%245k0%241%40ger.gmane.org
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Kylo Ginsberg | k...@puppetlabs.com | irc: kylo | twitter: @kylog

*PuppetConf 2015  is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Final Countdown discount

*
*—**save $149!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CALsUZFFfgLYxmgiZYzyupZZ4AYoYr%2BxDXDBj5w2d03KTpdXYNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet-dev] Puppetconf 2015: pre-summit tea party

2015-09-12 Thread Josh Cooper
On Saturday, September 12, 2015, Kylo Ginsberg  wrote:

> On Sat, Sep 12, 2015 at 7:36 AM, Henrik Lindberg <
> henrik.lindb...@cloudsmith.com
> > wrote:
>
>> On 2015-11-09 19:20, Daniele Sluijters wrote:
>>
>>> Hi everyone,
>>>
>>> As is tradition (since last year)
>>>
>>
>> It was a nice event last year.
>>
>> Want to join? Throw a +1 in the list so I get a rough idea of how people
>>> are going to show.
>>>
>>>
>> +1
>>
>
> +1
>
>

+1


>
>> - henrik
>>
>> --
>>
>> Visit my Blog "Puppet on the Edge"
>> http://puppet-on-the-edge.blogspot.se/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to puppet-dev+unsubscr...@googlegroups.com
>> 
>> .
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-dev/mt1d9e%245k0%241%40ger.gmane.org
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Kylo Ginsberg | k...@puppetlabs.com
>  | irc: kylo | twitter:
> @kylog
>
> *PuppetConf 2015  is coming to Portland,
> Oregon! Join us October 5-9.*
> *Register now to take advantage of the Final Countdown discount
> 
>  *
> *—**save $149!*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+unsubscr...@googlegroups.com
> 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/CALsUZFFfgLYxmgiZYzyupZZ4AYoYr%2BxDXDBj5w2d03KTpdXYNQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Josh Cooper
Developer, Puppet Labs

*PuppetConf 2015  is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Final Countdown discount

*
*—**save $149!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CA%2Bu97um4JjrprW3SOtk%3DNp6jqXLz6T7GBFnyRhLoM%3DqT6%3Deofw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet-dev] Re: EPP templates and ruby code

2015-09-12 Thread Henrik Lindberg

On 2015-11-09 11:31, Erik Dalén wrote:

You use the range function from stdlib to create an array. For example:
range(1,5).each |$x| {notice($x)}



The same is achieved with an Integer type:

Integer[1,5].each |$x| { notice $x }

It is more efficient than the range function since it does not create an 
array of all values in the range.


- henrik


On Fri, 11 Sep 2015 at 10:41 Martin Alfke > wrote:

Hi Michael,

On 10 Sep 2015, at 17:29, Michael Smith
>
wrote:

 > Looking at the examples for the 'each' function
(https://docs.puppetlabs.com/references/latest/function.html#each)
you can replace 'times' with 'each' and I think it'll work.

each can be used on arrays. In my case the variable is an integer.
I want to print stuff $i times into the final file.

 >
 > On Sep 10, 2015, at 4:34 AM, Martin Alfke > wrote:
 >
 >> Hi,
 >>
 >> is there a way to iterate with the ruby .times function inside
an EPP template?
 >>
 >> e.g.
 >> <% $i.times |$x| { -%>
 >> i = <%= $x +1 %>
 >> <% } -%>
 >> The code above seems to need a puppet4 function with name “times”.
 >> Result:
 >> Error: Evaluation Error: Unknown function: 'times'.
 >>
 >> When changing to ruby code style another error occurs:
 >> <% $i.times do |$x| -%>
 >> i = <%= $x +1 %>
 >> <% end -%>
 >> Error: Evaluation Error: Error while evaluating a Function Call,
epp(): Invalid EPP: Syntax error at ‘|'
 >>
 >> thanks,
 >> Martin
 >>
 >> --
 >> You received this message because you are subscribed to the
Google Groups "Puppet Developers" group.
 >> To unsubscribe from this group and stop receiving emails from
it, send an email to puppet-dev+unsubscr...@googlegroups.com
.
 >> To view this discussion on the web visit

https://groups.google.com/d/msgid/puppet-dev/4F22DF3E-4CD3-410E-B602-BD5B94CE089A%40gmail.com.
 >> For more options, visit https://groups.google.com/d/optout.
 >
 > --
 > You received this message because you are subscribed to the
Google Groups "Puppet Developers" group.
 > To unsubscribe from this group and stop receiving emails from it,
send an email to puppet-dev+unsubscr...@googlegroups.com
.
 > To view this discussion on the web visit

https://groups.google.com/d/msgid/puppet-dev/3B71678C-05FD-4E4B-B608-EC4A769A2CDB%40puppetlabs.com.
 > For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to puppet-dev+unsubscr...@googlegroups.com
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/puppet-dev/238A23C7-A1D5-4E09-830E-A4F49142E43F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google
Groups "Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to puppet-dev+unsubscr...@googlegroups.com
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/CAAAzDLc5utqECijD-Zd%2BAUVTbbHC61hxuO%2BxNNT2ovmbzHApuw%40mail.gmail.com
.
For more options, visit https://groups.google.com/d/optout.



--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
You received this message because you are subscribed to the Google Groups "Puppet 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/mt1d3l%242nq%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.


[Puppet-dev] Re: Puppetconf 2015: pre-summit tea party

2015-09-12 Thread Henrik Lindberg

On 2015-11-09 19:20, Daniele Sluijters wrote:

Hi everyone,

As is tradition (since last year)


It was a nice event last year.


Want to join? Throw a +1 in the list so I get a rough idea of how people
are going to show.



+1

- henrik

--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
You received this message because you are subscribed to the Google Groups "Puppet 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/mt1d9e%245k0%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.