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

Including nginx class not working due too nginx_error_log_severity parameter #1143

Closed
ericenns opened this issue Nov 6, 2017 · 1 comment

Comments

@ericenns
Copy link

ericenns commented Nov 6, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.3.2
  • Ruby: 2.1.8p440
  • Distribution: CentOS 7.2.1511 (specifically puppetlabs/centos-7.2-64-puppet vagrant box)
  • Module version: 0.8.0

How to reproduce (e.g Puppet code you use)

Create hiera config with following content:

classes:
  - nginx

and default.pp with following content:

hierra_include(classes)

What are you seeing

Error: Evaluation Error: Error while evaluating a Function Call, Class[Nginx]: parameter 'nginx_error_log_severity' expects a Resource value, got String

What behaviour did you expect instead

I expected it to work.

Output log

Any additional information you'd like to impart

I have attached a zip file containing an example of this problem. To run the example you will need vagrant and virtualbox installed on your system. Once those dependencies are met you can run vagrant up --provision to test it out.

puppet-nginx_vagrant_example.zip

@ericenns
Copy link
Author

ericenns commented Nov 6, 2017

Adding step in Vagrantfile to update puppet-agent seems to have resolved the error for me.

@ericenns ericenns closed this as completed Nov 6, 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

No branches or pull requests

1 participant