rhtconsulting / rhc-ose

OpenShift Automation and Utilities by Red Hat Consulting
42 stars 34 forks source link

Variables should be validated before instances created #217

Open vvaldez opened 8 years ago

vvaldez commented 8 years ago

If some variables such as dns_domain are not set, certain tasks will fail that depend on this such as:

TASK [hostnames : Setting FQDN Fact] *******************************************
fatal: [casl-vvaldez-1468605453-master1]: FAILED! => {"failed": true, "msg": "'dns_domain' is undefined"}
fatal: [casl-vvaldez-1468605453-nfs1]: FAILED! => {"failed": true, "msg": "'dns_domain' is undefined"}
fatal: [casl-vvaldez-1468605453-node1]: FAILED! => {"failed": true, "msg": "'dns_domain' is undefined"}
fatal: [casl-vvaldez-1468605453-node2]: FAILED! => {"failed": true, "msg": "'dns_domain' is undefined"}

This should be verified in a pre_task section.