FAQ
Hi.. I have following issue:
If calling a define with an array as names, then it applyes defines in
parallel way (which is logical by puppet structure)

example:

# define a function
define func(){
exec{"/bin/echo $name >> /tmp/file"}
}

# call it
func{["a","b","c","d"]: }

then my file would have an ordering like:
# cat /tmp/file
b
a
d
c

but how to do this in a serialized way? so, that, at the end, my file has
an ordering structure exactly as an array, so:
a
b
c
d

any idea?
Its realy usefull for config files where the ordering of parameter does
matter.

Regards
Dimitri

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/gf5K3PAgYPoJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedOct 26, '12 at 10:46a
activeOct 26, '12 at 7:33p
posts2
users2
websitepuppetlabs.com

2 users in discussion

Jcbollinger: 1 post Dmitry Nilsen: 1 post

People

Translate

site design / logo © 2022 Grokbase