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
wrote:
> There should be
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 wrote:
>
>
> On Tue, Feb 11, 2020 at 7:24 AM Shirish Shukla
> wrote:
>
>> What about if puppet agent not installed on target
>> Is there any way we
If you target the remote node (that doesn't have a Puppet agent) with an
apply() block in a Bolt plan, the prereq apply_prep($nodes) step will
install the Puppet agent binaries on that node for you.
This allows you to still leverage all the functionality, without activating
the agent.
Kind regard
On Tue, Feb 11, 2020 at 7:24 AM Shirish Shukla
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 t