Skip to content

Commit

Permalink
Merge pull request #13 from nimbolus/add-openstack-scsi-support
Browse files Browse the repository at this point in the history
add scsi bus support for openstack
  • Loading branch information
lu1as committed Jan 21, 2022
2 parents 8a4475b + 4775825 commit d1c5ba4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion k3s-openstack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module "k3s" {
custom_cloud_config_runcmd = var.custom_cloud_config_runcmd
bootstrap_token_id = var.bootstrap_token_id
bootstrap_token_secret = var.bootstrap_token_secret
persistent_volume_dev = "/dev/vdb"
persistent_volume_dev = var.image_scsi_bus ? "/dev/sdb" : "/dev/vdb"
}

resource "openstack_compute_instance_v2" "node" {
Expand Down
4 changes: 4 additions & 0 deletions k3s-openstack/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ variable "image_id" {
description = "instead of a image name, the id can be given"
}

variable "image_scsi_bus" {
default = false
}

variable "flavor_name" {
default = "m1.small"
}
Expand Down

0 comments on commit d1c5ba4

Please sign in to comment.