Tata is a command-line utility designed for checking the configuration of host machines within specified tasks. It provides a simple and efficient way to automate tests related to host settings.
Tata supports the following tasks:
-
check_hostname:
- Verifies that the hostname of the machine matches the specified value.
tasks: - task: check_hostname target_hostname: "test"
-
check_ping:
- Checks if the specified IP address or domain is reachable via ping.
tasks: - task: check_ping target_ip: "127.0.0.1"
-
linux_check_ipv4_forwarding
tasks: - task: linux_check_ipv4_forwarding enabled: no
-
linux_check_ipv6_forwarding
tasks: - task: linux_check_ipv6_forwarding enabled: no
Tasks are defined in a YAML file with the following format:
tasks:
- task: check_hostname
target_hostname: "test"
- task: check_ping
target_ip: "127.0.0.1"
- task: check_ping
target_ip: "ya.ru"
- task: linux_check_ipv4_forwarding
enabled: no
- task: linux_check_ipv6_forwarding
enabled: no
pipx install py_tata
pytata ./tasks.yaml
pip install py_tata
python -m py_tata.cli.app ./tasks.yaml
Tata is compatible with Python versions 3.10 and above.
Thank you for using Tata! If you have any questions or encounter any problems, please don't hesitate to reach out.