cablelabs / snaps-boot

Linux install and network setup for SNAPS
Apache License 2.0
13 stars 11 forks source link

Add a scheme to check hosts.yaml #258

Open RandyLevensalor opened 5 years ago

RandyLevensalor commented 5 years ago

Check the input in hosts.yaml with a proper schema.

willtome commented 5 years ago

Using the proposed hosts structure from #253 the syntax of the inventory will be validated by Ansible. Within the playbook, the assert and fail module could be used in conjunction with Magic Variables can be used to validate the correct groups exist. Once settled on, documentation of the hosts file format would be helpful as well