You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to configure the pre-built passenger packages through hiera but I seem to be missing something.
The following puppet config works for me as expected:
class { 'nginx':
package_source => 'passenger',
}
I tried to transform this into the puppet part:
include nginx
and the hiera part:
---
nginx::package:
package_source: 'passenger'
However the puppet-nginx module doesn't respect the hiera config. Am I using the wrong keys in hiera?
EDIT: I have modified my initial comment. Initially I was wondering about nginx::config::http_cfg_append as well, but this works fine. So my final question is only concerned about the package_source.
The text was updated successfully, but these errors were encountered:
The reason is a resource-like declaration is being used to declare nginx::package in init.pp. That overrides whatever you set in hiera for nginx::package. Instead, set package_source on nginx class as in my example.
@3flex thanks for your answer. Unfortunately your suggestion didn't work for me either. However following the documentation I managed to figure out the correct hiera config:
---
nginx::package_source: 'passenger'
That works for me with puppet 3.7.4 and hiera 1.3.4 and jfryman-nginx v0.2.6.
I've tried to configure the pre-built passenger packages through hiera but I seem to be missing something.
The following puppet config works for me as expected:
I tried to transform this into the puppet part:
include nginx
and the hiera part:
However the puppet-nginx module doesn't respect the hiera config. Am I using the wrong keys in hiera?
EDIT: I have modified my initial comment. Initially I was wondering about
nginx::config::http_cfg_append
as well, but this works fine. So my final question is only concerned about thepackage_source
.The text was updated successfully, but these errors were encountered: