/
/
/
1---
2# NAS Role Default Configuration
3
4# NFS Server Configuration
5nas_nfs_enabled: true
6nas_nfs_exports: []
7 # Example export configuration for your network:
8 # - path: "/mnt/rstorage/shared"
9 # clients: "192.168.34.0/24"
10 # options: "rw,sync,no_subtree_check,no_root_squash"
11 # - path: "/mnt/rstorage/media"
12 # clients: "192.168.34.0/24"
13 # options: "ro,sync,no_subtree_check"
14 # - path: "/mnt/rstorage/backups"
15 # clients: "192.168.34.64(rw,sync) 192.168.34.94(rw,sync)" # Specific hosts
16 # options: "no_subtree_check"
17
18# RAID Configuration - Manual Management
19# Note: RAID arrays assumed to be manually configured and mounted
20nas_raid_enabled: false # Disable automatic RAID management
21nas_raid_monitoring: true # Keep monitoring enabled
22nas_mdadm_config_file: "/etc/mdadm/mdadm.conf"
23
24# Storage Configuration
25nas_storage_base: "/mnt/rstorage" # Base mount point for manual RAID5
26
27# Network Configuration
28# Note: Bonding is managed externally via netplan (4x 2.5G interfaces -> bond0 -> br0)
29nas_network_bonding_enabled: false # Managed by netplan, not this role
30nas_network_interface: "br0" # Your bridge interface
31nas_network_ip: "192.168.34.200"
32nas_network_subnet: "192.168.34.0/24"
33
34# Storage Subdirectories (created under nas_storage_base)
35nas_storage_directories: []
36 # Example subdirectories:
37 # - "/mnt/rstorage/shared"
38 # - "/mnt/rstorage/media"
39 # - "/mnt/rstorage/backups"
40
41# Performance Tuning
42nas_performance_tuning_enabled: true
43nas_tcp_window_scaling: true
44nas_tcp_congestion_control: "bbr"
45nas_sysctl_settings:
46 # Network performance
47 net.core.rmem_default: 262144
48 net.core.rmem_max: 16777216
49 net.core.wmem_default: 262144
50 net.core.wmem_max: 16777216
51 net.ipv4.tcp_rmem: "4096 87380 16777216"
52 net.ipv4.tcp_wmem: "4096 65536 16777216"
53 net.core.netdev_max_backlog: 5000
54 # Filesystem performance
55 vm.dirty_background_ratio: 5
56 vm.dirty_ratio: 10
57 vm.vfs_cache_pressure: 50
58
59# Service Configuration
60nas_services:
61 - nfs-kernel-server
62 - rpcbind
63
64# Package Installation
65nas_install_packages:
66 - nfs-kernel-server
67 - nfs-common
68 - mdadm
69 - smartmontools
70 - hdparm
71 - iotop
72 - htop
73
74# Monitoring and Alerting
75nas_monitoring_enabled: true
76nas_smartmontools_enabled: true
77nas_email_notifications: "" # Email address for RAID alerts
78
79# Security Settings
80nas_nfs_secure_ports: true
81
82# Backup Integration
83nas_backup_integration: false
84nas_backup_paths: []
85 # Example backup paths:
86 # - "/mnt/rstorage/critical"
87 # - "/etc/exports"
88 # - "/etc/mdadm/mdadm.conf"
89
90# Logging
91nas_log_level: "info"
92nas_log_file: "/var/log/nas-role.log"