Skip to content

Commit

Permalink
add user in relevant action blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsver committed Nov 14, 2024
1 parent 8ce9169 commit 42b410b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 42b410b

Please sign in to comment.