Yes, it's possible using the shell-local provisioner. If you look at the
usage examples, you will find a powershell example here:
https://packer.io/docs/provisioners/shell-local.html#windows-host

On Tue, Mar 10, 2020 at 5:33 PM Santhosh Ganesan <[email protected]> wrote:

> Hi Megan,
>
> Found the post-processors manifest type, which would solve metadata,
> coming back to the info you provided,
>
> possible to run powershell(locally) against hyperv during the provisioner
> stage? am trying to insert a static ip during that process!
>
> pls share
>
> On Tue, Mar 10, 2020 at 2:19 AM Megan Marsh <[email protected]>
> wrote:
>
>> What kind of metadata? If you need to run a powershell command against
>> hyper-v to get information, I recommend the shell-local provisioner.
>>
>> On Sun, Mar 8, 2020 at 8:09 PM Santhosh Ganesan <[email protected]> wrote:
>>
>>> Would like to capture metadata for the hyper-v built linux centos8 image,
>>>
>>> how to provision this ?
>>>
>>> --
>>> This mailing list is governed under the HashiCorp Community Guidelines -
>>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>>> violation of those guidelines may result in your removal from this mailing
>>> list.
>>>
>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>> IRC: #packer-tool on Freenode
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Packer" 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/packer-tool/cf8b1f5d-a6c0-4d69-8944-a0468792f61a%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/cf8b1f5d-a6c0-4d69-8944-a0468792f61a%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> list.
>>
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Packer" 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/packer-tool/CAGPV1ur9UrkBhRBJcFkuFTWU39jNx_NWdfMWcgNRVJU-CdN1kw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/packer-tool/CAGPV1ur9UrkBhRBJcFkuFTWU39jNx_NWdfMWcgNRVJU-CdN1kw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Cheers
> Santhosh Ganesan
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" 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/packer-tool/CADjyofoLr9TtL0z7gOLE6thX9%3DTO0ytiin3xYzq8m3DHEwoh5Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/packer-tool/CADjyofoLr9TtL0z7gOLE6thX9%3DTO0ytiin3xYzq8m3DHEwoh5Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" 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/packer-tool/CAGPV1upg9iwHTTkoasMdjA9igPphddcbG_Ok73w%2B_KBKevTkHw%40mail.gmail.com.

Reply via email to