Skip to content

Commit

Permalink
Added proxy_conf_template option
Browse files Browse the repository at this point in the history
  • Loading branch information
DracoBlue committed Mar 10, 2014
1 parent 33d3c30 commit e11e932
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
$proxy_buffer_size = $nginx::params::nx_proxy_buffer_size,
$gzip = $nginx::params::nx_gzip,
$conf_template = $nginx::params::nx_conf_template,
$proxy_conf_template = $nginx::params::nx_proxy_conf_template,
) inherits nginx::params {

if $caller_module_name != $module_name {
Expand Down Expand Up @@ -129,7 +130,7 @@

file { "${nginx::params::nx_conf_dir}/conf.d/proxy.conf":
ensure => file,
content => template('nginx/conf.d/proxy.conf.erb'),
content => template($proxy_conf_template),
}

file { "${nginx::config::nx_temp_dir}/nginx.d":
Expand Down
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
$http_access_log = $nginx::params::nx_http_access_log,
$gzip = $nginx::params::nx_gzip,
$conf_template = $nginx::params::nx_conf_template,
$proxy_conf_template = $nginx::params::nx_proxy_conf_template,
$nginx_vhosts = {},
$nginx_upstreams = {},
$nginx_locations = {},
Expand Down Expand Up @@ -141,6 +142,7 @@
http_access_log => $http_access_log,
gzip => $gzip,
conf_template => $conf_template,
proxy_conf_template => $proxy_conf_template,
require => Class['nginx::package'],
notify => Class['nginx::service'],
}
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

$nx_conf_dir = '/etc/nginx'
$nx_conf_template = 'nginx/conf.d/nginx.conf.erb'
$nx_proxy_conf_template = 'nginx/conf.d/proxy.conf.erb'
$nx_confd_purge = false
$nx_vhost_purge = false
$nx_worker_processes = 1
Expand Down

0 comments on commit e11e932

Please sign in to comment.