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

Example hiera configuration doesn't work #558

Closed
hopperd opened this issue Feb 2, 2015 · 1 comment · Fixed by #559
Closed

Example hiera configuration doesn't work #558

hopperd opened this issue Feb 2, 2015 · 1 comment · Fixed by #559

Comments

@hopperd
Copy link

hopperd commented Feb 2, 2015

Using the hiera configuration from the documentation for configuration of a location doesn't appear to work

nginx::nginx_locations:
  'some-service-ext':
    location: /myservice
    vhost: 'service-ext'

When using the sample configuration puppet will give an error of:

Cannot create a location reference without a www_root, proxy, location_alias, fastcgi, stub_status, internal, or location_custom_cfg defined

Currently I'm using v0.2.2

@3flex
Copy link
Contributor

3flex commented Feb 2, 2015

As the error says, you need to specify at least one of:

  • www_root
  • proxy
  • location_alias
  • fastcgi
  • stub_status
  • internal
  • location_custom_cfg

You've only specified location and vhost in your example, hence the error.

I can see the faulty example in the README though and will update. Thanks for pointing that out!

3flex added a commit that referenced this issue Feb 2, 2015
@3flex 3flex closed this as completed in #559 Feb 2, 2015
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this issue Oct 23, 2017
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 a pull request may close this issue.

2 participants