Skip to content

Commit e9dac01

Browse files
committed
Exclude image node from slurm config
1 parent b45b584 commit e9dac01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

site/profile/manifests/slurm.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@
227227
}
228228

229229
$instances = lookup('terraform.instances')
230-
$nodes = $instances.filter|$key, $attr| { 'node' in $attr['tags'] }
231-
$suspend_exc_nodes = keys($nodes.filter|$key, $attr|{ !('pool' in $attr['tags']) })
230+
$nodes = $instances.filter|$key, $attr| { 'node' in $attr['tags'] and ! 'image' in $attr['tags'] }
231+
$suspend_exc_nodes = keys($nodes.filter|$key, $attr| { !('pool' in $attr['tags']) })
232232
$partition_names = unique($nodes.map |$key, $attr| { $attr['prefix'] })
233233
$partitions = Hash($partition_names.map | $name | { [$name, { 'nodes' => keys($nodes.filter|$key, $attr | { $name == $attr['prefix'] }) } ] })
234234
file { '/etc/slurm/slurm.conf':

0 commit comments

Comments
 (0)