| def determine_storage_location(self): | |
| ''' Storage mounts are limited in snap confinement. Default behavior | |
| is to version the database files in $SNAP_DATA. However the user can | |
| attach durable storage, which is mounted in /media. We need a common | |
| method to determine which storage path we are concerned with ''' | |
| if is_state('storage.volume.attached'): | |
| return "/media/etcd-data/" | |
| else: | |
| return "/var/snap/etcd/current" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment