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.

Source Distribution

configmount-0.0.23rc1.tar.gz (14.1 kB view details)

Uploaded Source

File details

Details for the file configmount-0.0.23rc1.tar.gz.

File metadata

  • Download URL: configmount-0.0.23rc1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for configmount-0.0.23rc1.tar.gz
Algorithm Hash digest
SHA256 b977e569a9fc45db7746298515b734a061d535523f1e10dfd98a5c420054be2b
MD5 095367f6cbfbf797d62c084f74dd328b
BLAKE2b-256 ab0cd56111ce1dd8b8437edd9f17259b7beca89e3a08c166281607e1bb07b9eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page