Skip to main content

Configmount mounts directories containing configuration files (augtools compatible files, yaml-files) as directories, so that every configuration value is accessible as file.

Project description

The configmount project

Config is a tool to mount configuration files into your filesystem, so that you can navigate through the configuration hierarchy and access its values like files.

Example

Create a configuration directory for testing via mkdir ~/etc and place the following yaml file into it:

~/etc/config.yml

group:
  key: value
  another group:
    key: value

Now create a mount directory /mnt/etc and mount the configuration directory into it.

mkdir /mnt/etc
configmount mount --root ~/etc /mnt/etc

You should be able to navigate into the /mnt/etc directory and see the file key and the directory another group. Now you can change the configuration value of key like:

cd /mnt/etc/config.yml
echo new value >key

The changes are written back into the file as soon as you unmount the directory ~/etc from the mountpoint /mnt/etc via:

fusermount -u /mnt/etc

Finally cat ~/etc/config.yml should give you the modified file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for configmount, version 0.0.38rc1
Filename, size File type Python version Upload date Hashes
Filename, size configmount-0.0.38rc1.tar.gz (14.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page