Skip to content

Commit

Permalink
Fix rebase problems, adds database disk support for suma_storage
Browse files Browse the repository at this point in the history
  • Loading branch information
aaannz committed Jan 15, 2024
1 parent 19d7614 commit 8289681
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 4 additions & 5 deletions modules/cucumber_testsuite/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,14 @@ module "server" {
additional_repos = lookup(local.additional_repos, "server", {})
additional_repos_only = lookup(local.additional_repos_only, "server", false)
additional_packages = lookup(local.additional_packages, "server", [])
repository_disk_use_cloud_setup= lookup(local.repository_disk_use_cloud_setup, "server", false)
repository_disk_size = lookup(local.repository_disk_size, "server", null)
login_timeout = var.login_timeout

saltapi_tcpdump = var.saltapi_tcpdump
provider_settings = lookup(local.provider_settings_by_host, "server", {})
server_mounted_mirror = lookup(local.server_mounted_mirror, "server", {})
repository_disk_size = lookup(local.repository_disk_size, "server", {})
database_disk_size = lookup(local.database_disk_size, "server", {})
server_mounted_mirror = lookup(local.server_mounted_mirror, "server", {})
repository_disk_size = lookup(local.repository_disk_size, "server", {})
database_disk_size = lookup(local.database_disk_size, "server", {})
repository_disk_use_cloud_setup = lookup(local.repository_disk_use_cloud_setup, "server", false)
}

module "server_containerized" {
Expand Down
2 changes: 1 addition & 1 deletion modules/cucumber_testsuite/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ variable "host_settings" {

// server
variable "product_version" {
description = "One of: 4.3-nightly, 4.3-released, 4.3-pr, 4.3-beta, 4.3-VM, 4.3-VM-released, head, test, uyuni-master, uyuni-released, uyuni-pr"
description = "One of: 4.2-nightly, 4.2-released, 4.3-nightly, 4.3-released, 4.3-pr, 4.3-beta, 4.3-VM, 4.3-VM-released, head, uyuni-master, uyuni-released, uyuni-pr"
type = string
}

Expand Down
4 changes: 4 additions & 0 deletions salt/server/additional_disk.sls
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ susemanager-cloud-setup-server:

spacewalk_directory:
cmd.run:
{% if grains.get('database_disk_size') > 0 %}
- name: suma-storage /dev/{{grains['data_disk_device']}} /dev/{{grains['second_data_disk_device']}}
{% else %}
- name: suma-storage /dev/{{grains['data_disk_device']}}
{% endif %}
- require:
- pkg: susemanager-cloud-setup-server

Expand Down

0 comments on commit 8289681

Please sign in to comment.