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

Sphinx monit does not apply correct app framework environment on utility instance #40

Open
michiels opened this issue Mar 15, 2012 · 2 comments

Comments

@michiels
Copy link

When deploying sphinx on a dedicated utility instance for an app, node[:environment][:framework_env] is not passed into the monit template. Causing starting and indexing of the sphinx index for an app to fail if you're not using production.

I am using a staging framework_env in my case.

The recipe is configured correctly for sphinx-on-app instance.

@thomasgallagher
Copy link

+1 - Any ideas when there might be a fix for this?

@thomasgallagher
Copy link

Change the variables in the block beginning on line 96 of the sphinx default.rb to:

    variables({
      :app_name => app_name,
      :user => node[:owner_name],
      :flavor => flavor,
      :env => node[:environment][:framework_env]
    })

Tested on a clustered environment in 'staging' mode.

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

No branches or pull requests

2 participants