{ "format": 1, "seat": "node-mounts", "scope": "node", "grain": "seat-list", "decision": "novox/hq ADR 0263", "verbs": [ { "name": "list", "description": "Every mount point on this machine: its fstab line, the mesh's mount and automount units for it, its state (armed, mounted, absent, unreachable, failed) and since when, and which settings asked for it. A password in a mount's options is never shown.", "replaces": [ "cat /etc/fstab", "findmnt", "systemctl list-units --type=mount" ], "input": { "properties": {}, "type": "object" } }, { "name": "test", "description": "Whether one share's or occasional source's server answers from this machine now, without touching its mount point.", "replaces": [ "showmount -e", "ping" ], "input": { "properties": { "name": { "description": "the share or source, by its name", "type": "string" } }, "required": [ "name" ], "type": "object" } }, { "name": "mount", "description": "Mount one share or occasional source now, rather than at its first access.", "replaces": [ "mount" ], "input": { "properties": { "name": { "description": "the share or source, by its name", "type": "string" } }, "required": [ "name" ], "type": "object" } }, { "name": "unmount", "description": "Release one share or occasional source now; its automount stays armed, so the next access mounts it again.", "replaces": [ "umount" ], "input": { "properties": { "name": { "description": "the share or source, by its name", "type": "string" } }, "required": [ "name" ], "type": "object" } }, { "name": "adopt", "description": "Take over a mount a person wrote by hand: comment out the /etc/fstab line for a mount point the mesh's own units now serve, keeping a copy of the file — only when the mesh's automount for it is armed. Without confirm, says what it would do and changes nothing.", "replaces": [ "sed -i /etc/fstab" ], "input": { "properties": { "confirm": { "description": "\"true\": change it (needs why); anything else is a dry run", "enum": [ "true", "false" ], "type": "string" }, "mountpoint": { "description": "the mount point whose fstab line is taken over", "type": "string" }, "why": { "description": "why, for the record", "type": "string" } }, "required": [ "mountpoint" ], "type": "object" } } ] }