Usage: Add the kosmos_encfs::default recipe to the run list of a node. Creating the encrypted directory will keep it mounted. After a reboot, start the encfs service and enter the password: ``` $ systemctl start encfs encfs password: ``` For now postgresql@12-main is a hardcoded dependency of the encfs Systemd unit that is automatically started once the user inputs the correct password. This list of dependency will need to be different for every server, based on the services it is running
		
			
				
	
	
		
			12 lines
		
	
	
		
			255 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			255 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
| [Unit]
 | |
| Description=EncFS for data dir
 | |
| Before=postgresql@12-main.service
 | |
| BindsTo=postgresql@12-main.service
 | |
| [Service]
 | |
| Type=oneshot
 | |
| RemainAfterExit=yes
 | |
| ExecStart=/usr/local/bin/mount_encfs
 | |
| ExecStop=/bin/umount /mnt/data
 | |
| [Install]
 | |
| WantedBy=multi-user.target
 |