provider/azure: handle empty authorized-keys #6924

Merged
merged 1 commit into from Feb 6, 2017

Conversation

Projects
None yet
3 participants
Member

axw commented Feb 6, 2017

Description of change

Azure requires that a machine have either a
password or an SSH authorised key set for a
machine. If authorized-keys is empty in the
config, generate a key pair. We will pass
the public key into Azure, and throw away
the private key.

QA steps

  1. juju bootstrap azure
  2. hack juju add-model CLI code to not add public SSH keys to config
  3. juju add-model foo
  4. juju add-machine, confirm machine is provisioned successfully

Documentation changes

None.

Bug reference

Fixes https://bugs.launchpad.net/juju/+bug/1658830

provider/azure: handle empty authorized-keys
Azure requires that a machine have either a
password or an SSH authorised key set for a
machine. If authorized-keys is empty in the
config, generate a key pair. We will pass
the public key into Azure, and throw away
the private key.

Fixes https://bugs.launchpad.net/juju/+bug/1658830
Member

axw commented Feb 6, 2017

$$merge$$

Contributor

jujubot commented Feb 6, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 2c92f7c into juju:2.1 Feb 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment