Change nx_conf_dir to config::conf_dir to make it possible to configure via parameter.
This commit is contained in:
parent
03094eabe5
commit
d33b4e135d
4 changed files with 4 additions and 2 deletions
|
@ -79,7 +79,7 @@ define nginx::resource::geo (
|
|||
mode => '0644',
|
||||
}
|
||||
|
||||
file { "${nginx::params::nx_conf_dir}/conf.d/${name}-geo.conf":
|
||||
file { "${nginx::config::conf_dir}/conf.d/${name}-geo.conf":
|
||||
ensure => $ensure ? {
|
||||
'absent' => absent,
|
||||
default => 'file',
|
||||
|
|
|
@ -63,7 +63,7 @@ define nginx::resource::map (
|
|||
mode => '0644',
|
||||
}
|
||||
|
||||
file { "${nginx::params::nx_conf_dir}/conf.d/${name}-map.conf":
|
||||
file { "${nginx::config::conf_dir}/conf.d/${name}-map.conf":
|
||||
ensure => $ensure ? {
|
||||
'absent' => absent,
|
||||
default => 'file',
|
||||
|
|
|
@ -27,6 +27,7 @@ describe 'nginx::resource::geo' do
|
|||
let :pre_condition do
|
||||
[
|
||||
'include ::nginx::params',
|
||||
'include ::nginx::config',
|
||||
]
|
||||
end
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ describe 'nginx::resource::map' do
|
|||
let :pre_condition do
|
||||
[
|
||||
'include ::nginx::params',
|
||||
'include ::nginx::config',
|
||||
]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue