README 962 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # YAML to fstab
  2. ## It's Challenge for Platform Engineering of Adjust company
  3. It a python script to convert yaml file to fstab compatible format
  4. ## Features
  5. - Verify file before fstab modification
  6. - Clean modified data from fstab
  7. - Add parsed data to fstab
  8. - Parse yaml from yaml file
  9. ## Install
  10. this script required python3 and pyyaml
  11. - CentOS/RHEL:
  12. - `yum install PyYAML`
  13. - Debian/Ubuntu:
  14. - `apt insatll python3-yaml`
  15. - pipe:
  16. - `pip3 install pyyaml`
  17. ##### Note: change `/tmp/fstab` to `/etc/fstab` in main script
  18. ## Usage
  19. - put yaml file next to yaml2fstab.py
  20. - run `make check` to verify requirements before running
  21. - run `make parse` to see parsed data
  22. - run ` make verify` to verify parsed data before installing you should see `0 parse errors` to ensure everything is OK.
  23. - run `make install` to add parsed data to /etc/fstab
  24. ## Uninstall
  25. - run `make uninstall` to remove modifications made by this script from `/etc/fstab`