I can't see how this would work at all, given that templates are filled out by the Puppet master and sent to the client. Even if you used "pure Ruby" inside the ERB to process another ERB file, the Puppet master would have no way to know that it's supposed to pick up that other file and include it in the node's catalog.

This is almost certainly required to be handled in Puppet code with explicit resources, probably through one or more abstraction classes.

- Peter


On 5/3/2016 2:35 AM, Lowe Schmidt wrote:
It is probably better two generate the child*.conf from your puppet code rather than having an erb template generate another file (I am not even sure that works).

What version of puppet are you running and could you show us some code?

--
Lowe Schmidt | +46 723 867 157

On 2 May 2016 at 15:53, Manoj Muraleedharan <[email protected] <mailto:[email protected]>> wrote:

    I have two erb template, one for main config file and another for
    child process config file. I need to want to create config file
    for 3 child process config file inside main erb template by
    calling another erb template inside. these 3 config files has to
    be three different name.

    I need the following config file create in my puppet agent
    /etc/app/main.conf
    /etc/app/child1.conf
    /etc/app/child2.conf
    /etc/app/child3.conf

    I have two erb file in my modeule main.erb and child.erb

    I want to call only the main.erb and when processing main.erb i
    need to create the above child.conf file based on child.erb
-- 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]
    <mailto:[email protected]>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/puppet-users/8d13593d-3117-44bf-9132-e4d4e084341b%40googlegroups.com
    
<https://groups.google.com/d/msgid/puppet-users/8d13593d-3117-44bf-9132-e4d4e084341b%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] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAC-wWcTqZazBzEM3H88j%2Bb3ZqmCD95_%2B9bMGwq%3Dv5%2B1cSYQXGw%40mail.gmail.com <https://groups.google.com/d/msgid/puppet-users/CAC-wWcTqZazBzEM3H88j%2Bb3ZqmCD95_%2B9bMGwq%3Dv5%2B1cSYQXGw%40mail.gmail.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/7f3c7aa7-d8cd-fde7-3a23-5aff6b9084c5%40alter3d.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to