Hi Vinay,

This is pretty horrible but you can do something like this:

exec { 'bolt task run foo::bar -t localhost':
  path => '/opt/puppetlabs/bolt/bin:/usr/bin',
  creates => '/some/path',
}

but at that point you may as well exec the task's script directly. The
above assumes the task has already been copied to the node.

What is the use case? It's more usual to call puppet code from bolt via a
plan or apply, rather than the other way around.

Cheers


On Wed, 2 Sep 2020 at 14:31, Vinay Korrapati <vinay....@gmail.com> wrote:

> Hi clare,
>
> Thanks for your response. Not from puppet GUI, its from puppet profile.
>
> Can we call the puppet task/plan from manifest file ?
>
> On Wednesday, September 2, 2020 at 1:48:15 AM UTC+5:30 clare...@gmail.com
> wrote:
>
>> Do you mean from the Puppet GUI ?  If so, there is an API to do that.
>>
>> On Tue, Sep 1, 2020 at 9:29 AM Vinay Korrapati <vina...@gmail.com> wrote:
>>
>>> Hi Team,
>>>
>>> Is there any possibility to trigger the puppet task/plan from puppet
>>> profile ?
>>>
>>> Regards
>>> Vinay
>>>
>>> --
>>> 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 puppet-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/puppet-users/5415c4a3-5c44-41d3-ae08-0d12c066136cn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/puppet-users/5415c4a3-5c44-41d3-ae08-0d12c066136cn%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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/d216208a-9781-4e70-9ff3-224dcd4807f1n%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/d216208a-9781-4e70-9ff3-224dcd4807f1n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
*Jesse Reynolds*
Principal Professional Services Engineer
Melbourne, Australia
mobile: +61 414 669 790
jesse.reyno...@puppet.com
*Puppet <https://puppet.com/>*

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMwMGPPfbicPnY%3DGcTaBqEXJVTeBG7JRTpg3d-%2B3%3D8nwkBvbxA%40mail.gmail.com.

Reply via email to