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

Stub_status #523

Closed
grzybniak opened this issue Dec 10, 2014 · 2 comments
Closed

Stub_status #523

grzybniak opened this issue Dec 10, 2014 · 2 comments

Comments

@grzybniak
Copy link

Hi,

Variable 'stub_status' for vhost is not working. It works only in location.
I added this variable to manifests/resource/vhost.pp for myself and I'm waiting for official fix.
BTW, thx for this great module for puppet with hiera support.

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Cannot create a location reference without a www_root, proxy, location_alias, fastcgi, stub_status, or location_custom_cfg defined at /etc/puppet/environments/vagrant/modules/nginx/manifests/resource/location.pp:312 on node ...

Hiera:
nginx::nginx_vhosts:
'nginx-status':
stub_status: true
ensure: present
listen_port: '9000'
listen_ip: '127.0.0.1'

@3flex
Copy link
Contributor

3flex commented Dec 10, 2014

@grzybniak This is because the vhost resource only supports certain parameters when it creates the default location. I'd recommend doing something like this in hiera:

---
nginx::nginx_vhosts:
  nginx-status:
    ensure: present
    listen_port: '9000'
    listen_ip: '127.0.0.1'
    use_default_location: false
nginx::nginx_locations:
  nginx-status:
    vhost: nginx-status
    stub_status: true

@grzybniak
Copy link
Author

Thank you for the solution. I wouldn't have thought about it

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