Move workers to other ssh keypair.
This commit is contained in:
parent
da2d2004dd
commit
e35138ce8c
|
@ -92,7 +92,7 @@ resource "openstack_compute_instance_v2" "worker-nodes" {
|
|||
count = var.worker_instance_count
|
||||
name = "${var.worker_name}${count.index+1}.${var.dns_suffix}"
|
||||
flavor_name = "${var.worker_instance_type}"
|
||||
key_pair = "${var.keyname}"
|
||||
key_pair = "${var.keynameworkers}"
|
||||
security_groups = [
|
||||
data.openstack_networking_secgroup_v2.sshfromjumphosts.name,
|
||||
data.openstack_networking_secgroup_v2.allegress.name,
|
||||
|
|
|
@ -7,6 +7,10 @@ variable "keyname" {
|
|||
type = string
|
||||
default = "manderssonpub"
|
||||
}
|
||||
variable "keynameworkers" {
|
||||
type = string
|
||||
default = "manderssonpub3"
|
||||
}
|
||||
|
||||
variable "worker_instance_count" {
|
||||
default = "4"
|
||||
|
|
Loading…
Reference in a new issue