/
/
/
Ansible role that deployss my nas configuration. It mostly handles nfs configurations and exports that are tailored to the hardware and service configuration.
1# NAS
2
3NFS server, optional RAID, network bonding, and storage performance tuning.
4
5## Key Parameters
6
7| Variable | Default | Description |
8|----------|---------|-------------|
9| `nas_nfs_enabled` | `true` | Install and configure NFS server |
10| `nas_nfs_exports` | `[]` | NFS export definitions (path, network, options) |
11| `nas_raid_enabled` | `false` | Configure mdadm RAID array |
12| `nas_raid_level` | `5` | RAID level (0/1/5/6/10) |
13| `nas_raid_devices` | `[]` | Block devices for the array |
14| `nas_bonding_enabled` | `false` | Configure network interface bonding |
15| `nas_performance_tuning_enabled` | `true` | Apply network/filesystem performance tweaks |
16| `nas_runner_*_path` | various | Storage paths exported for runner services |
17
18## Workflow
19
201. Install NFS packages (nfs-kernel-server, rpcbind)
212. Configure network bonding via netplan (if enabled)
223. Create storage directories with proper permissions
234. Write `/etc/exports` and reload NFS
245. Apply performance tuning (TCP buffers, NFS threads, readahead)
25