Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rebased/fasrc fix onegate in oned conf #241

Merged

Conversation

Xylakant
Copy link
Contributor

rebased version of #229

This still requires tests

Felix Gilcher and others added 5 commits October 11, 2016 06:38
due to a typo, the onegate endpoint is currently always commented out. This behavior should be retained in the future, so adding a spec that describes the current behavior
This allows for setting the full onegate endpoint in oned.conf (needed
if using https proxy, etc). If specified this param will override the
onegate_ip param. Note this param does not change onegate conf, just the
value of ONEGATE_ENDPOINT in oned.conf
workaround bug where hiera does not properly return undef
by removing the default to $::ipaddress we reinstate the old default behavior of not configuring any onegate endpoint if no explicit parameter is passed. Passing the ip-address as default can now be done by passing the fact as parameter.

we also add a check that not both the onegate ip and the onegate endpoint are passed which would result in potentially confusing behavior.
@Xylakant Xylakant force-pushed the rebased/fasrc-fix_onegate_in_oned_conf branch from 7c9c063 to 5ddea53 Compare October 12, 2016 11:43
@Xylakant
Copy link
Contributor Author

commit 3b99a5f changes behavior. Due to the typo, the condition never evaluated to true and the else path was always reached. I'll slot in a spec to demonstrate this behavior

@Xylakant Xylakant force-pushed the rebased/fasrc-fix_onegate_in_oned_conf branch from 5ddea53 to a3bef23 Compare October 13, 2016 08:15
@Xylakant Xylakant changed the title WIP: Rebased/fasrc fix onegate in oned conf Rebased/fasrc fix onegate in oned conf Oct 13, 2016
@nmesstorff nmesstorff merged commit 670dc4c into epost-dev:master Oct 13, 2016
@Xylakant Xylakant deleted the rebased/fasrc-fix_onegate_in_oned_conf branch October 13, 2016 12:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants