Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.

Conversation

@richardwhiuk
Copy link
Contributor

As discussed in, Metaswitch/ralf#276, we think we should add a new config option to separate Ralf being configured, and whether Sprout should actually send to Ralf.

It can be set to Y or N to control the behavior, and is defaulted so that the existing behavior is fine over upgrade.

Copy link
Contributor

@eleanor-merry eleanor-merry left a comment

Choose a reason for hiding this comment

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

Sure, some comments we've already discussed

if [ "$sprout_ralf_enabled" == "Y" ] || \
[ "$sprout_ralf_enabled" == "X" -a -n "$ralf_hostname" ]
then
ralf_arg="--ralf=$ralf_hostname"
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed, this will do odd things if sprout_ralf_enabled is set but ralf_hostname isn't.

Why not default sprout_ralf_enabled to Y, then only set ralf_arg if sprout_ralf_enabled is Y and ralf_hostname is set to something. This still works over upgrade and I think it's simpler (and we don't add a third value to an option that should be Y/N).

You've agreed to set sprout_ralf_enabled to N in shared config in systems that don't have ralf enabled.

@rkday-pro
Copy link
Contributor

Do we need this in V11.0.2?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants