Skip to content

Commit

Permalink
Fix quota condition
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennedub committed Oct 3, 2024
1 parent 987cfa2 commit 166b37d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/profile/manifests/volumes.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
enable_resize => pick($values['enable_resize'], false),
filesystem => pick($values['filesystem'], 'xfs'),
require => File["/mnt/${volume_tag}"],
quota => pick_default($values['quota'], undef),
quota => pick_default($values['quota'], ''),
}
}
}
Expand All @@ -61,7 +61,7 @@
String $seltype,
Boolean $enable_resize,
Enum['xfs', 'ext3', 'ext4'] $filesystem,
Optional[String] $quota = undef,
String $quota = '',
) {
$regex = Regexp(regsubst($glob, /[?*]/, { '?' => '.', '*' => '.*' }))

Expand Down Expand Up @@ -170,7 +170,7 @@
}
}

if $filesystem == 'xfs' and $quota != undef {
if $filesystem == 'xfs' and $quota != '' {
# Save the xfs quota setting to avoid applying at every iteration
file { "/etc/xfs_quota/${volume_tag}-${volume_name}":
ensure => 'file',
Expand Down

0 comments on commit 166b37d

Please sign in to comment.