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.38rc1.tar.gz (14.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: configmount-0.0.38rc1.tar.gz
  • Upload date:
  • Size: 14.2 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.7.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.2

File hashes

Hashes for configmount-0.0.38rc1.tar.gz
Algorithm Hash digest
SHA256 e0df76bfef7d741c40856a4d1b6ebba8a650f827f417ea488625de8c9dd33b3a
MD5 c4bc64129d43146f4bb7a96f7cc0459f
BLAKE2b-256 be7cc34c0547fff97deb3b13aee9b8a21231776923ff5a997b5edc0552c7b6bf

See more details on using hashes here.

Supported by

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