Repository navigation
Ae ansible merge service configs - #494
Conversation
|
@aveshagarwal @ashcrow @detiber AE ansible work moved here which is against the |
|
@sdodson sounds good. |
6871f25 to
51835e9
Compare
There was a problem hiding this comment.
@detiber We'd discussed moving all the deployment_type related facts into one function to localize things. However pylint limits branching to 12 branches. If we add more in the future we'll either have to add pylint annotations to override that for this function or we'll have to break it up into smaller functions.
There was a problem hiding this comment.
@sdodson I'm not against breaking it out into multiple functions if we need to work around pylint....
At some point we will probably need to refactor openshift_facts to clean up the way we are doing things a bit...
One approach that might simplify the way openshift_facts works would be to do the following:
- define a dictionary for each role (common, master, node, etc) which lists all of the default values for that role
- read in the local_facts file
- merge the local_facts from the file with the ones passed into the openshift_facts module (local_facts passed in win)
- create the initial facts dictionary based on the roles contained in the local_facts and merge the defaults with the local_facts from the default dictionaries. (local_facts win)
- set any facts that may need to be computed at runtime
- set_url_facts_if_unset
- set_aggregate_facts
- possibly others...
dd510de to
e9cd5d8
Compare
|
@sdodson before we merge this we should squash this down. |
68a4487 to
95ed2c7
Compare
95ed2c7 to
a90c2c9
Compare
|
Squashed everything down. @brenton I think this is ready to merge into next, we can ask QE to test existing deployment types and then we'll file another PR against master. |
Ae ansible merge service configs
Additional work is still required to ensure backwards compatiblity with existing deployments. That's why this is against the 'next' branch.