diff --git a/CHANGELOG.md b/CHANGELOG.md index 828b0fa..9ba1874 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ cookbook-nginx CHANGELOG =============== +## 1.2.1 + + - nilsver + - [42b410b] add user in relevant action blocks + ## 1.2.0 - Miguel Negrón diff --git a/resources/metadata.rb b/resources/metadata.rb index af58e15..68950fb 100644 --- a/resources/metadata.rb +++ b/resources/metadata.rb @@ -3,4 +3,4 @@ maintainer_email 'git@redborder.com' license 'AGPL-3.0' description 'Installs/Configures cookbook-nginx' -version '1.2.0' +version '1.2.1' diff --git a/resources/providers/config.rb b/resources/providers/config.rb index 2f14e20..3419cb5 100644 --- a/resources/providers/config.rb +++ b/resources/providers/config.rb @@ -91,6 +91,7 @@ action :add_http2k do begin + user = new_resource.user http2k_hosts = new_resource.http2k_hosts http2k_port = new_resource.http2k_port @@ -102,8 +103,8 @@ template '/etc/nginx/conf.d/http2k.conf' do source 'http2k.conf.erb' - owner 'nginx' - group 'nginx' + owner user + group user mode '0644' cookbook 'nginx' variables(http2k_hosts: http2k_hosts, http2k_port: http2k_port) @@ -118,6 +119,7 @@ action :add_s3 do # Only for configure solo begin + user = new_resource.user s3_port = new_resource.s3_port s3_hosts = new_resource.s3_hosts @@ -144,6 +146,7 @@ action :add_erchef do begin + user = new_resource.user erchef_hosts = new_resource.erchef_hosts erchef_port = new_resource.erchef_port @@ -170,6 +173,7 @@ action :add_aioutliers do begin + user = new_resource.user aioutliers_hosts = new_resource.aioutliers_hosts aioutliers_port = new_resource.aioutliers_port