salt --out=table_out minion1 grains.get os
salt 'minion1'grains.get os --out=table
I'm not in front of a computer to be able to give an example, but for your need to "write OS validations using salt states. Example: getting hostname, IP, DNS, NTP, Users, firewalld status, selinux status, app status etc and display outputs with table_out" you should look up the saltcheck module. It can perform those validations and like any other salt module, use outputters like table_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Salt-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/salt-users/ZNbuaoAR51g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/5dd7e01d-6b7d-45de-bdf0-d511a48e2e95%40googlegroups.com.
salt '*' saltcheck.run_state_tests common --out=tablemaster:---------- ------------------------------------------------------ | Common | ------------------------------------------------------ | {'validate_shell': {'status': 'Pass', 'duration': | | 16.1317}, 'verfity_vim': {'status': 'Pass', | | 'duration': 1.9855}} | ------------------------------------------------------ | {'Execution Time': 18.1172, 'Passed': 2, 'Failed': | | 0, 'Skipped': 0, 'Missing Tests': 0} | ------------------------------------------------------salt-run survey.hash '*' saltcheck.run_state_tests common|_
---------- pool: - master result: [{'common': {'validate_shell': {'status': 'Pass', 'duration': 14.7346}, 'verfity_vim': {'status': 'Pass', 'duration': 2.0605}}}, {'TEST RESULTS': {'Execution Time': 16.7951, 'Passed': 2, 'Failed': 0, 'Skipped': 0, 'Missing Tests': 0}}]salt '*' saltcheck.run_state_tests common --out=json{ "master": [ { "common": { "validate_shell": { "status": "Pass", "duration": 14.7751 }, "verfity_vim": { "status": "Pass", "duration": 1.3808 } } }, { "TEST RESULTS": { "Execution Time": 16.1559, "Passed": 2, "Failed": 0, "Skipped": 0, "Missing Tests": 0 } } ]}--
You received this message because you are subscribed to a topic in the Google Groups "Salt-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/salt-users/ZNbuaoAR51g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/061244e1-7626-4521-8983-6a8a1eb195a6%40googlegroups.com.