Skip to content

Commit d748d61

Browse files
committed
Update docs and checks
1 parent 82a9a3b commit d748d61

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

common/design/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ locals {
7070
]))
7171
}
7272

73+
check "upgrade-policy" {
74+
assert {
75+
condition = alltrue(flatten([for inst in local.instances : contains(["all", "none", "security", "vanilla-all", "vanilla-security"], inst.upgrade)]))
76+
error_message = "At least one instance's `upgrade` is invalid. Valid values are: all, none, security, vanilla-all, vanilla-security."
77+
}
78+
}
79+
7380
check "disk_space_per_tag" {
7481
assert {
7582
condition = alltrue(flatten([for inst in local.instances : [for tag in inst.tags : lookup(local.min_disk_size_per_tags, tag, var.min_disk_size) <= inst.disk_size]]))

docs/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,13 +572,14 @@ recommended minimum size per tag as specified in the following table.
572572
```
573573
features = ["skylake", "nvidia"]
574574
```
575+
8. `upgrade`: specification of the package upgrade behavior to use for this instance type (default: `"vanilla-all"` [`upgrade`](#420-upgrade-optional) value).
575576
576577
The instance specifications are retrieved from the cloud provider data source, but it is possible to explicitly specify them.
577578
578-
7. `cpus`: number of logical processors on the node - [`CPUs` in slurm.conf](https://slurm.schedmd.com/slurm.conf.html#OPT_CPUs)
579-
8. `ram`: size of real memory on the node in megabyte - [`RealMemory` in slurm.conf](https://slurm.schedmd.com/slurm.conf.html#OPT_RealMemory)
580-
9. `gpus`: number of graphics processors on the node - [`Gres=gpu:<gpus>` in slurm.conf](https://slurm.schedmd.com/slurm.conf.html#OPT_Gres_1)
581-
10. `gpu_type`: type of graphics processor on the node - [`Gres=gpu:<gpu_type>:<gpus>` in slurm.conf](https://slurm.schedmd.com/slurm.conf.html#OPT_Gres_1)
579+
9. `cpus`: number of logical processors on the node - [`CPUs` in slurm.conf](https://slurm.schedmd.com/slurm.conf.html#OPT_CPUs)
580+
10. `ram`: size of real memory on the node in megabyte - [`RealMemory` in slurm.conf](https://slurm.schedmd.com/slurm.conf.html#OPT_RealMemory)
581+
11. `gpus`: number of graphics processors on the node - [`Gres=gpu:<gpus>` in slurm.conf](https://slurm.schedmd.com/slurm.conf.html#OPT_Gres_1)
582+
12. `gpu_type`: type of graphics processor on the node - [`Gres=gpu:<gpu_type>:<gpus>` in slurm.conf](https://slurm.schedmd.com/slurm.conf.html#OPT_Gres_1)
582583
583584
For some cloud providers, it is possible to define additional attributes.
584585
The following sections present the available attributes per provider.

0 commit comments

Comments
 (0)