The existing functions 'epp' and 'inline_epp' work. For example, the
following plan returns the resolved template:

plan examples::epp() {
  $templ = @(END)
<%= $foo %>
END
  return inline_epp($templ, {'foo' => 'hello'})
}


On Tue, Feb 11, 2020 at 10:25 PM Shirish Shukla <[email protected]>
wrote:

> There should be inbuilt function to achieve so, as its very basic
> functionality every bolt user expect.
>
> On Tue, 11 Feb 2020 at 9:03 PM, Alex Dreyer <[email protected]> wrote:
>
>>
>>
>> On Tue, Feb 11, 2020 at 7:24 AM Shirish Shukla <[email protected]>
>> wrote:
>>
>>> What about if puppet agent not installed on target
>>> Is there any way we can use epp file
>>>
>>
>> There are a few options
>> - You can target localhost for the apply to create the file locally and
>> then use upload_file to copy it.
>> - You can write a task that accepts the contents and path as a parameter
>> and writes the file to disk.
>>
>>
>>>
>>> On Monday, 16 September 2019 21:51:05 UTC+5:30, Andy Hall wrote:
>>>>
>>>> hey there just starting using bolt and has a simple plan which applies
>>>> a manifest but I'd know like to write a dynamic file from a template like
>>>> epp in puppet. is this possible ? I do not see anything in the docs except
>>>> just uploading a static file :
>>>> https://puppet.com/docs/bolt/latest/running_bolt_commands.html#concept-6839
>>>>
>>>> please do let me know if this is possible - it's great being able to
>>>> write a manifest and templates would be the icing on the cake !
>>>>
>>>> thanks.
>>>>
>>>> --
>>> 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/d09a4037-518a-4ecf-bfd1-e729485346fd%40googlegroups.com
>>> <https://groups.google.com/d/msgid/puppet-users/d09a4037-518a-4ecf-bfd1-e729485346fd%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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/CAMahoJtpASY9cwER1sDCWc1EcyYwKaDccJ8Yr200yJYESAbLBw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/puppet-users/CAMahoJtpASY9cwER1sDCWc1EcyYwKaDccJ8Yr200yJYESAbLBw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/CA%2Bgj5d%2BiBZKAdLb4PruFF6m3dRbn%3Dzvar6HfU5Qi-%2BYovO76qQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CA%2Bgj5d%2BiBZKAdLb4PruFF6m3dRbn%3Dzvar6HfU5Qi-%2BYovO76qQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CABy1mMLazA%2BHWJ7FWeToZu_vepDsag%2BVTMNqm%3DcMp0Q-c3SWhQ%40mail.gmail.com.

Reply via email to