Skip to content

Ae ansible merge service configs - #494

Merged
brenton merged 1 commit into
openshift:nextfrom
sdodson:ae-ansible-merge-service-configs
Aug 24, 2015
Merged

brenton merged 1 commit into
openshift:nextfrom
sdodson:ae-ansible-merge-service-configs

Conversation

@sdodson

@sdodson sdodson commented Aug 19, 2015

Copy link
Copy Markdown
Member

Additional work is still required to ensure backwards compatiblity with existing deployments. That's why this is against the 'next' branch.

@sdodson

sdodson commented Aug 19, 2015

Copy link
Copy Markdown
Member Author

@aveshagarwal @ashcrow @detiber AE ansible work moved here which is against the next branch as this may work well for AE installs but needs further work to ensure it merges into master without destroying existing deployments.

@aveshagarwal

Copy link
Copy Markdown
Contributor

@sdodson sounds good.

@sdodson
sdodson force-pushed the ae-ansible-merge-service-configs branch 2 times, most recently from 6871f25 to 51835e9 Compare August 20, 2015 02:10

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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...

@sdodson
sdodson force-pushed the ae-ansible-merge-service-configs branch 8 times, most recently from dd510de to e9cd5d8 Compare August 21, 2015 21:01
@detiber

detiber commented Aug 23, 2015

Copy link
Copy Markdown
Contributor

@sdodson before we merge this we should squash this down.

@sdodson
sdodson force-pushed the ae-ansible-merge-service-configs branch 2 times, most recently from 68a4487 to 95ed2c7 Compare August 24, 2015 17:43
@sdodson
sdodson force-pushed the ae-ansible-merge-service-configs branch from 95ed2c7 to a90c2c9 Compare August 24, 2015 17:46
@sdodson

sdodson commented Aug 24, 2015

Copy link
Copy Markdown
Member Author

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.

brenton added a commit that referenced this pull request Aug 24, 2015
@brenton
brenton merged commit 64ef5ca into openshift:next Aug 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants