Skip to content

Commit

Permalink
Merge pull request #1393 from triforce/add_global_mode_to_all_files
Browse files Browse the repository at this point in the history
Ensured file mode permissions are more consistent
  • Loading branch information
ekohl authored Jun 30, 2020
2 parents e4e3650 + fe09df3 commit e4ba3e0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion manifests/resource/geo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
File {
owner => 'root',
group => $root_group,
mode => '0644',
mode => $nginx::global_mode,
}

file { "${conf_dir}/${name}-geo.conf":
Expand Down
6 changes: 3 additions & 3 deletions manifests/resource/location.pp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
File {
owner => 'root',
group => $root_group,
mode => '0644',
mode => $nginx::global_mode,
notify => Class['::nginx::service'],
}

Expand Down Expand Up @@ -299,15 +299,15 @@
) {
file { $fastcgi_params:
ensure => 'present',
mode => '0644',
mode => $nginx::global_mode,
content => template('nginx/server/fastcgi.conf.erb'),
}
}

if $ensure == 'present' and $uwsgi != undef and !defined(File[$uwsgi_params]) and $uwsgi_params == "${nginx::conf_dir}/uwsgi_params" {
file { $uwsgi_params:
ensure => 'present',
mode => '0644',
mode => $nginx::global_mode,
content => template('nginx/server/uwsgi_params.erb'),
}
}
Expand Down
4 changes: 2 additions & 2 deletions manifests/resource/mailhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
File {
owner => 'root',
group => $root_group,
mode => '0644',
mode => $nginx::global_mode,
}

$config_dir = "${nginx::conf_dir}/conf.mail.d"
Expand All @@ -154,7 +154,7 @@
concat { $config_file:
owner => 'root',
group => $root_group,
mode => '0644',
mode => $nginx::global_mode,
notify => Class['::nginx::service'],
require => File[$config_dir],
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/resource/map.pp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
File {
owner => 'root',
group => $root_group,
mode => '0644',
mode => $nginx::global_mode,
}

file { "${conf_dir}/${name}-map.conf":
Expand Down
4 changes: 2 additions & 2 deletions manifests/resource/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,15 @@
if $fastcgi != undef and !defined(File[$fastcgi_params]) and $fastcgi_params == "${nginx::conf_dir}/fastcgi.conf" {
file { $fastcgi_params:
ensure => present,
mode => '0644',
mode => $nginx::global_mode,
content => template('nginx/server/fastcgi.conf.erb'),
}
}

if $uwsgi != undef and !defined(File[$uwsgi_params]) and $uwsgi_params == "${nginx::conf_dir}/uwsgi_params" {
file { $uwsgi_params:
ensure => present,
mode => '0644',
mode => $nginx::global_mode,
content => template('nginx/server/uwsgi_params.erb'),
}
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/resource/upstream.pp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
Concat {
owner => 'root',
group => $nginx::root_group,
mode => '0644',
mode => $nginx::global_mode,
}

concat { "${conf_dir}/${name}-upstream.conf":
Expand Down

0 comments on commit e4ba3e0

Please sign in to comment.