{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/packer/issues/2663","repository_url":"https://api.github.com/repos/hashicorp/packer","labels_url":"https://api.github.com/repos/hashicorp/packer/issues/2663/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/packer/issues/2663/comments","events_url":"https://api.github.com/repos/hashicorp/packer/issues/2663/events","html_url":"https://github.com/hashicorp/packer/issues/2663","id":102649215,"node_id":"MDU6SXNzdWUxMDI2NDkyMTU=","number":2663,"title":"Make admin password of booted instance available as template variable","user":{"login":"carlpett","id":214867,"node_id":"MDQ6VXNlcjIxNDg2Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/214867?v=4","gravatar_id":"","url":"https://api.github.com/users/carlpett","html_url":"https://github.com/carlpett","followers_url":"https://api.github.com/users/carlpett/followers","following_url":"https://api.github.com/users/carlpett/following{/other_user}","gists_url":"https://api.github.com/users/carlpett/gists{/gist_id}","starred_url":"https://api.github.com/users/carlpett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlpett/subscriptions","organizations_url":"https://api.github.com/users/carlpett/orgs","repos_url":"https://api.github.com/users/carlpett/repos","events_url":"https://api.github.com/users/carlpett/events{/privacy}","received_events_url":"https://api.github.com/users/carlpett/received_events","type":"User","site_admin":false},"labels":[{"id":127192055,"node_id":"MDU6TGFiZWwxMjcxOTIwNTU=","url":"https://api.github.com/repos/hashicorp/packer/labels/builder/openstack","name":"builder/openstack","color":"d4c5f9","default":false},{"id":228609211,"node_id":"MDU6TGFiZWwyMjg2MDkyMTE=","url":"https://api.github.com/repos/hashicorp/packer/labels/communicator/winrm","name":"communicator/winrm","color":"006b75","default":false},{"id":33051540,"node_id":"MDU6TGFiZWwzMzA1MTU0MA==","url":"https://api.github.com/repos/hashicorp/packer/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":45995766,"node_id":"MDU6TGFiZWw0NTk5NTc2Ng==","url":"https://api.github.com/repos/hashicorp/packer/labels/good%20first%20issue","name":"good first issue","color":"bfe5bf","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-08-23T19:21:52Z","updated_at":"2019-06-20T17:58:15Z","closed_at":"2016-02-20T09:29:38Z","author_association":"CONTRIBUTOR","body":"I'm trying to build Windows images on OpenStack with packer, but I'm having some issues getting started. Our OpenStack provider has cloud-init Windows images which we'd like to use as the base image. In those, there is an admin account with credentials set during first boot, and this password is returned when booting the machine. \n\nIn order to use WinRM, we need to set the `winrm_password` option to this admin password. I tried figuring out how to export it as a configuration template variable so I could just put `{{ .AdminPass }}`, but I'm not very fluent in Go, unfortunately. \n\nFrom the [gophercloud docs](http://godoc.org/github.com/rackspace/gophercloud/openstack/compute/v2/servers#Server) it seems this property is already exposed, so I'm guessing it just needs to be exposed somehow to the templating system?\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/packer/issues/comments/504123414","html_url":"https://github.com/hashicorp/packer/issues/2663#issuecomment-504123414","issue_url":"https://api.github.com/repos/hashicorp/packer/issues/2663","id":504123414,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNDEyMzQxNA==","user":{"login":"SwampDragons","id":1008838,"node_id":"MDQ6VXNlcjEwMDg4Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1008838?v=4","gravatar_id":"","url":"https://api.github.com/users/SwampDragons","html_url":"https://github.com/SwampDragons","followers_url":"https://api.github.com/users/SwampDragons/followers","following_url":"https://api.github.com/users/SwampDragons/following{/other_user}","gists_url":"https://api.github.com/users/SwampDragons/gists{/gist_id}","starred_url":"https://api.github.com/users/SwampDragons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwampDragons/subscriptions","organizations_url":"https://api.github.com/users/SwampDragons/orgs","repos_url":"https://api.github.com/users/SwampDragons/repos","events_url":"https://api.github.com/users/SwampDragons/events{/privacy}","received_events_url":"https://api.github.com/users/SwampDragons/received_events","type":"User","site_admin":false},"created_at":"2019-06-20T17:58:15Z","updated_at":"2019-06-20T17:58:15Z","author_association":"MEMBER","body":"Yes, this is only implemented for a subset of builders, and I don't believe OpenStack is one of them.  I'd happily review a PR adding support for this to OpenStack; if you call that setsharedstate function then yes, the password will become available to you in the provisioners that allow you to reference it."}}
{"actor":{"display_login":"SwampDragons"}}