cmdeploy: add config (, )

This commit is contained in:
missytake
2025-11-18 14:05:44 +01:00
committed by j4n
parent f9fad1fd03
commit 60ff9821b1

View File

@@ -116,18 +116,19 @@ def _configure_dovecot(config: Config, debug: bool = False) -> (bool, bool):
# as per https://doc.dovecot.org/2.3/configuration_manual/os/ # as per https://doc.dovecot.org/2.3/configuration_manual/os/
# it is recommended to set the following inotify limits # it is recommended to set the following inotify limits
for name in ("max_user_instances", "max_user_watches"): if config.change_kernel_settings:
key = f"fs.inotify.{name}" for name in ("max_user_instances", "max_user_watches"):
if host.get_fact(Sysctl)[key] > 65535: key = f"fs.inotify.{name}"
# Skip updating limits if already sufficient if host.get_fact(Sysctl)[key] > 65535:
# (enables running in incus containers where sysctl readonly) # Skip updating limits if already sufficient
continue # (enables running in incus containers where sysctl readonly)
server.sysctl( continue
name=f"Change {key}", server.sysctl(
key=key, name=f"Change {key}",
value=65535, key=key,
persist=True, value=65535,
) persist=True,
)
timezone_env = files.line( timezone_env = files.line(
name="Set TZ environment variable", name="Set TZ environment variable",