|
1 | 1 | # ----------------------------------------------------------------------------- |
2 | | -# Local storage device for active working data (i.e. DBs, logs, etc.) |
| 2 | +# Service configuration |
3 | 3 | # ----------------------------------------------------------------------------- |
4 | 4 |
|
5 | | -# set the value of unused parameters to "none" |
| 5 | +# Minimum cryptsetup version required (2.4.0+ supports modern unified syntax) |
| 6 | +readonly CRYPTSETUP_MIN_VERSION="2.4.0" |
6 | 7 |
|
7 | | -readonly ACTIVE_DATA_UUID="DISK_X_UUID" # Reported by: `sudo blkid /dev/<device>` |
8 | | -readonly ACTIVE_DATA_MAPPER="ext_ssd" |
9 | | -readonly ACTIVE_DATA_MOUNT="srv_rapid_storage" |
| 8 | +# Syncthing users (set to "none" to disable) |
| 9 | +readonly ST_USER_1="none" # Set to username to enable (e.g., "alice") |
| 10 | +readonly ST_USER_2="none" # Set to username to enable (e.g., "bob") |
10 | 11 |
|
11 | | -readonly ACTIVE_DATA_LVM_NAME="logic_volume_name" |
12 | | -readonly ACTIVE_DATA_LVM_GROUP="logic_volume_group" |
| 12 | +# Service names (automatically constructed) |
| 13 | +readonly ST_SERVICE_1="${ST_USER_1:+syncthing@${ST_USER_1}.service}" |
| 14 | +readonly ST_SERVICE_2="${ST_USER_2:+syncthing@${ST_USER_2}.service}" |
| 15 | +readonly DOCKER_SERVICE="none" # Set to "docker.service" to enable |
13 | 16 |
|
14 | 17 | # ----------------------------------------------------------------------------- |
15 | | -# Local storage device for data at rest |
| 18 | +# Primary data device configuration |
16 | 19 | # ----------------------------------------------------------------------------- |
17 | 20 |
|
18 | | -# set the value of unused parameters to "none" |
19 | | - |
20 | | -readonly STORAGE_DATA_KEY_FILE="mass_storage_key_file_path" |
21 | | - |
22 | | -readonly STORAGE_DATA_UUID="DISK_Y_UUID" # Reported by: `sudo blkid /dev/<device>` |
23 | | -readonly STORAGE_DATA_MAPPER="ext_hdd" |
24 | | -readonly STORAGE_DATA_MOUNT="srv_mass_storage" |
25 | | - |
26 | | -readonly STORAGE_DATA_LVM_NAME="logic_volume_name" |
27 | | -readonly STORAGE_DATA_LVM_GROUP="logic_volume_group" |
| 21 | +readonly PRIMARY_DATA_MOUNT="primary" # Mount point under /mnt/ |
| 22 | +readonly PRIMARY_DATA_MAPPER="primary-data" # Device mapper name |
| 23 | +readonly PRIMARY_DATA_LVM_NAME="none" # Set to LVM volume name to enable LVM |
| 24 | +readonly PRIMARY_DATA_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume is set) |
| 25 | +readonly PRIMARY_DATA_UUID="none" # Set to device UUID to enable (find with: sudo blkid) |
| 26 | +readonly PRIMARY_DATA_KEY_FILE="none" # Set to key file path for automated unlock |
| 27 | +readonly PRIMARY_DATA_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker" |
28 | 28 |
|
29 | 29 | # ----------------------------------------------------------------------------- |
30 | | -# Network storage for data at rest |
| 30 | +# Storage devices for Syncthing service 1 |
31 | 31 | # ----------------------------------------------------------------------------- |
32 | 32 |
|
33 | | -readonly NETWORK_SHARE_PROTOCOL="cifs" # set to "none" if network share is not used |
34 | | - |
35 | | -readonly NETWORK_SHARE_ADDRESS="//<address>/share_name" |
36 | | -readonly NETWORK_SHARE_MOUNT="lan_data_storage" |
37 | | -readonly NETWORK_SHARE_CREDENTIALS="lan_storage_credentials_file_path" |
38 | | -readonly NETWORK_SHARE_OPTIONS="dir_mode=0555,file_mode=0444,uid=1000,gid=1000" |
| 33 | +readonly STORAGE_1A_MOUNT="storage1a" # Mount point under /mnt/ |
| 34 | +readonly STORAGE_1A_MAPPER="storage1a-data" # Device mapper name |
| 35 | +readonly STORAGE_1A_LVM_NAME="none" # Set to LVM volume name to enable LVM |
| 36 | +readonly STORAGE_1A_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume is set) |
| 37 | +readonly STORAGE_1A_UUID="none" # Set to device UUID to enable (find with: sudo blkid) |
| 38 | +readonly STORAGE_1A_KEY_FILE="none" # Set to key file path for automated unlock |
| 39 | +readonly STORAGE_1A_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker" |
| 40 | + |
| 41 | +readonly STORAGE_1B_MOUNT="storage1b" # Mount point under /mnt/ |
| 42 | +readonly STORAGE_1B_MAPPER="storage1b-data" # Device mapper name |
| 43 | +readonly STORAGE_1B_LVM_NAME="none" # Set to LVM volume name to enable LVM |
| 44 | +readonly STORAGE_1B_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume is set) |
| 45 | +readonly STORAGE_1B_UUID="none" # Set to device UUID to enable (find with: sudo blkid) |
| 46 | +readonly STORAGE_1B_KEY_FILE="none" # Set to key file path for automated unlock |
| 47 | +readonly STORAGE_1B_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker" |
39 | 48 |
|
40 | 49 | # ----------------------------------------------------------------------------- |
41 | | -# Misc system definitions |
| 50 | +# Storage devices for Syncthing service 2 |
42 | 51 | # ----------------------------------------------------------------------------- |
43 | 52 |
|
44 | | -readonly LUKS_MIN_VERSION="2" |
| 53 | +readonly STORAGE_2A_MOUNT="storage2a" # Mount point under /mnt/ |
| 54 | +readonly STORAGE_2A_MAPPER="storage2a-data" # Device mapper name |
| 55 | +readonly STORAGE_2A_LVM_NAME="none" # Set to LVM volume name to enable LVM |
| 56 | +readonly STORAGE_2A_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume is set) |
| 57 | +readonly STORAGE_2A_UUID="none" # Set to device UUID to enable (find with: sudo blkid) |
| 58 | +readonly STORAGE_2A_KEY_FILE="none" # Set to key file path for automated unlock |
| 59 | +readonly STORAGE_2A_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker" |
| 60 | + |
| 61 | +readonly STORAGE_2B_MOUNT="storage2b" # Mount point under /mnt/ |
| 62 | +readonly STORAGE_2B_MAPPER="storage2b-data" # Device mapper name |
| 63 | +readonly STORAGE_2B_LVM_NAME="none" # Set to LVM volume name to enable LVM |
| 64 | +readonly STORAGE_2B_LVM_GROUP="vg-srv" # LVM group name (used if LVM volume is set) |
| 65 | +readonly STORAGE_2B_UUID="none" # Set to device UUID to enable (find with: sudo blkid) |
| 66 | +readonly STORAGE_2B_KEY_FILE="none" # Set to key file path for automated unlock |
| 67 | +readonly STORAGE_2B_ENCRYPTION_TYPE="luks" # Options: "luks" or "bitlocker" |
45 | 68 |
|
46 | | -# set the value of unused parameters to "none" |
47 | | - |
48 | | -readonly ST_USER="your-syncthing-user" |
49 | | -readonly ST_SERVICE="syncthing@${ST_USER}.service" |
| 69 | +# ----------------------------------------------------------------------------- |
| 70 | +# Network share configuration |
| 71 | +# ----------------------------------------------------------------------------- |
50 | 72 |
|
51 | | -readonly DOCKER_SERVICE="<docker>.service" |
| 73 | +readonly NETWORK_SHARE_ADDRESS="none" # Set to share path to enable (e.g., "//server/share") |
| 74 | +readonly NETWORK_SHARE_MOUNT="none" # Set to mount name (e.g., "network") |
| 75 | +readonly NETWORK_SHARE_PROTOCOL="none" # Set to protocol: "cifs", "nfs", etc. |
| 76 | +readonly NETWORK_SHARE_CREDENTIALS="none" # Set to credentials file path |
| 77 | +readonly NETWORK_SHARE_OPTIONS="uid=1000,gid=1000,iocharset=utf8" # Mount options |
0 commit comments