mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
storage.nfs shrinks to the deployment-specific server address: export_base moves into svc-storage-nfs-server's services.yml (the server dictates where exports root) and the mount protocol version into svc-storage-nfs-client's services.yml (the client owns how it mounts). Both are read through utils.storage.nfs loaders by the nfs lookups, the env handler and 00_topology, eliminating the unrendered-variables class for these values; the group_vars assert shrinks accordingly and the swarm test extras stop restating role defaults. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
465 B
Python
14 lines
465 B
Python
from __future__ import annotations
|
|
|
|
from ansible.plugins.lookup import LookupBase
|
|
|
|
from utils.storage.nfs import get_client_version, mount_opts
|
|
|
|
|
|
class LookupModule(LookupBase):
|
|
"""NFS mount options: {{ lookup('nfs_mount_opts') }}."""
|
|
|
|
def run(self, terms, variables=None, **kwargs):
|
|
variables = variables or getattr(self._templar, "available_variables", {}) or {}
|
|
return [mount_opts(get_client_version(), variables.get("RUNTIME", "host"))]
|