Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

remove some interpolated default attributes for sensible ocid default #1681

Merged
merged 1 commit into from
Oct 13, 2017

Conversation

robbkidd
Copy link
Contributor

This is the start of removing interpolated values from the omnibus' cookbook attribute defaults. Interpolating the default chef_server_url into chef_identity_url in the defaults caused no end of trouble with onprem installations. The application URL helpers already perform run-time interpolation with the chef_server_url when no env var is present. So we'll leave these attributes unset which will omit them from the list of things that get exported as env vars.

Administrators still have the option to set a value for these attributes which will set the associated env var and will override in the Rails app.

This is the start of removing interpolated values from the omnibus'
cookbook attribute defaults. Interpolating the default chef_server_url
into chef_identity_url in the defaults caused no end of trouble with
onprem installations. The application URL helpers already perform
run-time interpolation with the chef_server_url when no env var is
present. So we'll leave these attributes unset which will omit them from
the list of things that get exported as env vars.

Administrators still have the option to set a value for these attributes
which will set the associated env var and will override in the Rails
app.

Signed-off-by: Robb Kidd <rkidd@chef.io>
@robbkidd robbkidd requested a review from a team October 12, 2017 19:49
@robbkidd
Copy link
Contributor Author

@sigje @nellshamrell 👀

@larryebaum This change, once released, should address the OCID stuff needed for onprem Supermarkets. After this change, you shouldn't need to override ["supermarket_omnibus"]["config"]["chef_identity_url"] any more. What the docs say should be sufficient once updated to talk about setting SSL and the FQDN if using a CNAME.

@robbkidd robbkidd added the Bug label Oct 13, 2017
@robbkidd robbkidd changed the title stop interpolating in the default attributes remove some interpolated default attributes for sensible ocid default Oct 13, 2017
@robbkidd robbkidd merged commit 0fd5d7a into master Oct 13, 2017
@robbkidd robbkidd deleted the robb/stop-interpolating-in-the-defaults branch October 13, 2017 18:57
@tas50 tas50 added Type: Bug Does not work as expected. and removed Bug labels Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants