fgci-org / fgci-ansible

:microscope: Collection of the Finnish Grid and Cloud Infrastructure Ansible playbooks
MIT License
54 stars 18 forks source link

ansible-playbook wrapper to check if examples variables are unset #110

Open martbhell opened 8 years ago

martbhell commented 8 years ago

In examples/group_vars/ we have lots of variables we expect sites to copy .. manually into their group_vars/ directories.

It would be nice to have a script/wrapper that one can run to indicate if there are any variables in examples/ which aren't. Maybe an ansible-playbook wrapper the sites can use to run ansible?

martbhell commented 8 years ago

Added a tool to fgci-ansible/tools/ with output that looks like:

$ bash tools/find_group_vars.sh 
variable dns_resolv_search is in examples/all but not in group_vars/all
variable hourly_update_level is in examples/all but not in group_vars/all
variable intDomain is in examples/all but not in group_vars/all
variable rdma_configure_single_port is in examples/compute but not in group_vars/compute
variable rdma_configure_single_port is in examples/login but not in group_vars/login
variable unconfigured_packages is in examples/login but not in group_vars/login
variable rdma_configure_single_port is in examples/nfs but not in group_vars/nfs
VilleS1 commented 5 years ago

Document this one.