This template works for me:
{
"_comment": "Windows 2012 R2 Server",
"builders": [
{
"type": "openstack",
"communicator": "winrm",
"winrm_username": "administrator",
"image_name": "step_get_password_TEST",
"source_image": "cf593d97-6a1a-4dc6-b041-f54a3587a339",
"flavor": "bff4c362-1a64-4895-bcbe-89b437815934",
"floating_ip_pool": "ext-net-01"
}
],
"provisioners": [
{
"type": "windows-shell",
"inline": ["dir C:\\"]
}
]
}
You can download a evaluation image of Windows 2012 from cloudbase.it and
substitute source image, flavor, etc.
On Sep 6, 2016 7:59 AM, "Rickard von Essen" <[email protected]>
wrote:
> I added support in the OpenStack builder for fetching a admin password
> specifically for Windows. So I have used it successfully for that.
>
> I suggest that you post a example template.
>
> Ensure that your image https://cloudbase.it/cloudbase-init/ installed.
>
> On Sep 5, 2016 10:59 PM, "Alvaro Miranda Aguilera" <[email protected]>
> wrote:
>
>> Hello,
>>
>> Packer by default will try to use ssh, you can override that to use WiRM
>> with the communicator
>>
>> ie
>>
>> {
>> "builders": [{
>> "type": "amazon-ebs",
>> "communicator": "ssh"
>> }]}
>>
>>
>> On Mon, Sep 5, 2016 at 8:58 PM, Glyn Davies <[email protected]>
>> wrote:
>>
>>> Hi folks,
>>>
>>> I am trying to use packer to create a new windows instance on an
>>> openstack cloud.
>>>
>>> The current issue is that the openstack builder defaults to assuming it
>>> is building a linux image and therefore needs to check for an SSH
>>> connection. Is it not possible to support Windows with this builder?
>>>
>>> Cheers,
>>> Glyn
>>>
>>> --
>>> 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/ms
>>> gid/packer-tool/25c87296-5f10-4947-a91e-5bc6aa6f68bb%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/25c87296-5f10-4947-a91e-5bc6aa6f68bb%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Alvaro
>> (+31)103400555
>>
>> --
>> 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/ms
>> gid/packer-tool/CAHqq0eyURzqjDRbDr27-R-C6%2BkxhKhj0-WUm%
>> 2BPvE7AXBFHd-MQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0eyURzqjDRbDr27-R-C6%2BkxhKhj0-WUm%2BPvE7AXBFHd-MQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
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/CALz9Rt-Dwri0cqGUz3KDtgPe%3DBuHGjq9PgPR9SbOOz1L%2BmmzgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.