ENC was synonym for stuctured data passed to the puppet client.
i solved it now using a ruby template:

<%= YAML.dump(yaml) %>

thanks

2015-09-28 15:02 GMT+02:00 jcbollinger <[email protected]>:

>
>
> On Monday, September 28, 2015 at 6:10:35 AM UTC-5, Michael Wörz wrote:
>>
>> Hello,
>>
>> we want to dump ENC Data to a file on the puppet clients so that it can
>> be used outside puppet scripts.
>>
>> file{'/etc/config-enc':
>>   content => "$yaml"
>> }
>>
>> does the Job but the output data is not formated an close to unreadable.
>> Json or Yaml woukd be nice.
>>
>>
>
> It's unclear what "ENC Data" means to you.  An ENC is a *program* that *you
> provide*.  When run it emits data (classes, parameter values, and global
> variable values), but that data must be in YAML format already, so I
> suppose it's not what you're looking for.  Perhaps your particular ENC
> relies on an external data file, and it's that data you want to pass on to
> clients; in that case, we'll need some more information about the nature of
> that file before we can give you any detailed help.
>
> Generally speaking, however, formatting raw external data within Puppet
> probably depends either on writing a custom function or on use of OS
> utilities or an external program via the built-in generate() function.
>
>
> John
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/itWQjnUCok8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/c3832276-5be1-4ea8-bbb4-d720bdb5e9c3%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/c3832276-5be1-4ea8-bbb4-d720bdb5e9c3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAGPb%2BVtB7SbAp5Jx3Oobybq%2BK4t4XzfsK_siP8akHyXN5jty3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to