Skip to content

Update wsgi examples and documentation - #2596

Open
arjenz wants to merge 1 commit into
puppetlabs:mainfrom
arjenz:update_wsgi_docs
Open

arjenz wants to merge 1 commit into
puppetlabs:mainfrom
arjenz:update_wsgi_docs

Conversation

@arjenz

@arjenz arjenz commented Mar 25, 2025

Copy link
Copy Markdown

Update example to avoid hitting Error while evaluating a Function Call, deprecation. apache::vhost::wsgi_daemon_process_options. This parameter is deprecated. Please add values inside Hash wsgi_daemon_process

Summary

Examples for wsgi vhost use code that doesn't work, tested new code using puppet apply.

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@arjenz
arjenz requested review from a team, bastelfreak, ekohl and smortex as code owners March 25, 2025 09:06
Update example to avoid hitting `Error while evaluating a Function Call, deprecation. apache::vhost::wsgi_daemon_process_options. This parameter is deprecated. Please add values inside Hash wsgi_daemon_process`
@jst-cyr

jst-cyr commented Nov 24, 2026

Copy link
Copy Markdown
Member

Hi @arjenz , thanks for the contribution! I just did a rebase to check against the latest in main. I also was just doing a quick comparison against #2553 which also was trying to fix the WSGI docs.

I know it's been a while, but could you make a couple of small changes that were identified in a Claude Code review?

  1. Missing closing brace in manifests/vhost.pp. The diff removes the final # } that closes the apache::vhost example under @param wsgi_daemon_process. As it stands, the example is missing its closing brace and won't parse if someone copies it. Could you restore it?

  2. Main README.md still uses the deprecated parameter. The WSGI example there (around line 512) still has wsgi_daemon_process => 'wsgi' with wsgi_daemon_process_options. Could you update it to match the new example?

  3. readmes/README_ja_JP.md example. The updated example now uses unquoted 2 and 15, while the rest of that file quotes values ('2', '15'). That's minor, but it would be good to keep the file consistent.

  4. REFERENCE.md. This file is generated from the vhost.pp doc comments. If you can, please regenerate it (bundle exec rake strings:generate:reference) instead of editing it by hand, so it stays in sync with your vhost.pp changes.

For context, #2553 makes a similar fix to README.md and vhost.pp. Once this PR is updated, we plan to close that one as superseded.

Thanks again for the contribution!

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.

2 participants