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

Added locations paramater to use it in hiera. #738

Merged
merged 1 commit into from
Jan 20, 2016

Conversation

jkroepke
Copy link
Contributor

Hi,

I add the paramter locations. With this, you can write more cleaner hiera.

Also, puppetlabs/apache has this option, too.

An exmaple based from the example on the README:

nginx::nginx_vhosts:
  'www.puppetlabs.com':
    www_root: '/var/www/www.puppetlabs.com'
    locations:
      'static':
        location: '~ "^/static/[0-9a-fA-F]{8}\/(.*)$"'
      'userContent':
        location: /userContent
  'rack.puppetlabs.com':
    proxy: 'http://puppet_rack_app'

@jfryman
Copy link
Contributor

jfryman commented Jan 20, 2016

👍 Thanks for the code.

jfryman added a commit that referenced this pull request Jan 20, 2016
Added locations paramater to use it in hiera.
@jfryman jfryman merged commit 0e3cddc into voxpupuli:master Jan 20, 2016
@jkroepke jkroepke deleted the hiera_locations branch January 20, 2016 22:39
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Oct 23, 2017
Added locations paramater to use it in hiera.
Slm0n87 pushed a commit to Slm0n87/puppet-nginx that referenced this pull request Mar 7, 2019
Added locations paramater to use it in hiera.
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.

None yet

2 participants