Move workers to other ssh keypair.

This commit is contained in:
Magnus Andersson 2024-10-15 15:38:44 +02:00
parent da2d2004dd
commit e35138ce8c
Signed by: mandersson
GPG key ID: 1F7C896B34B28164
2 changed files with 5 additions and 1 deletions

View file

@ -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,

View file

@ -7,6 +7,10 @@ variable "keyname" {
type = string
default = "manderssonpub"
}
variable "keynameworkers" {
type = string
default = "manderssonpub3"
}
variable "worker_instance_count" {
default = "4"