variable keypair_name {}
variable public_key {}

resource "openstack_compute_keypair_v2" "keypair" {
  name = "${var.keypair_name}"
  public_key = "${file(var.public_key)}"
}

output "keypair_name" {
  value = "${openstack_compute_keypair_v2.keypair.name}"
}

output "name" {
  value = "${openstack_compute_keypair_v2.keypair.name}"
}

Create new ssh keypair module
Create new ssh keypair module

This module removes some of the openstack vars.

ContainerSolutions/microservices-infrastructure,sehqlr/mantl,KaGeN101/mantl,CiscoCloud/microservices-infrastructure,datascienceinc/mantl,phnmnl/mantl,CiscoCloud/mantl,CiscoCloud/microservices-infrastructure,datascienceinc/mantl,mantl/mantl,phnmnl/mantl,KaGeN101/mantl,bitium/mantl,mantl/mantl,ContainerSolutions/microservices-infrastructure,CiscoCloud/mantl,bitium/mantl,sehqlr/mantl