Skip to content

Commit

Permalink
Merge pull request #355 from rtprio/gid0
Browse files Browse the repository at this point in the history
remove the 'root' group and replace with group 0
  • Loading branch information
bastelfreak authored Jul 14, 2024
2 parents 9db952a + a753ec0 commit e6acdf5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion manifests/hook.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
file { $hook_file:
ensure => file,
owner => 'root',
group => 'root',
group => 0,
mode => '0755',
content => epp('letsencrypt/hook.sh.epp', {
commands => $commands,
Expand Down
2 changes: 1 addition & 1 deletion manifests/plugin/dns_cloudflare.pp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
file { $config_path:
ensure => file,
owner => 'root',
group => 'root',
group => 0,
mode => '0400',
content => epp('letsencrypt/ini.epp', {
vars => { '' => $ini_vars },
Expand Down
2 changes: 1 addition & 1 deletion manifests/plugin/dns_rfc2136.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
file { "${config_dir}/dns-rfc2136.ini":
ensure => file,
owner => 'root',
group => 'root',
group => 0,
mode => '0400',
content => epp('letsencrypt/ini.epp', {
vars => { '' => $ini_vars },
Expand Down
2 changes: 1 addition & 1 deletion manifests/renew.pp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
ensure => directory,
path => "${letsencrypt::config_dir}/renewal-hooks-puppet",
owner => 'root',
group => 'root',
group => 0,
mode => '0755',
recurse => true,
purge => true,
Expand Down
2 changes: 1 addition & 1 deletion manifests/scripts.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
file { '/usr/local/sbin/letsencrypt-domain-validation':
ensure => file,
owner => 'root',
group => 'root',
group => 0,
mode => '0500',
content => file("${module_name}/domain-validation.sh"),
}
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/letsencrypt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
with(ensure: 'directory',
path: '/usr/local/etc/letsencrypt/renewal-hooks-puppet',
owner: 'root',
group: 'root',
group: 0,
mode: '0755',
recurse: true,
purge: true)
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/plugin/dns_rfc2136_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class { 'letsencrypt':
is_expected.to contain_file("#{pathprefix}/etc/letsencrypt/dns-rfc2136.ini").
with_ensure('file').
with_owner('root').
with_group('root').
with_group('0').
with_mode('0400').
with_content(%r{^.*dns_rfc2136_server.*$})
end
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/letsencrypt_certonly_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
is_expected.to contain_file('/usr/local/sbin/letsencrypt-domain-validation').
with_ensure('file').
with_owner('root').
with_group('root').
with_group('0').
with_mode('0500').
with_content(%r{#!/bin/sh})
end
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/letsencrypt_hook_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
is_expected.to contain_file('/etc/letsencrypt/renewal-hooks-puppet/foo.example.com-pre.sh').
with(ensure: 'file',
owner: 'root',
group: 'root',
group: 0,
mode: '0755',
content: %r{^.*validate_env=0.*FooBar.*$}m).
that_requires('File[letsencrypt-renewal-hooks-puppet]')
Expand Down

0 comments on commit e6acdf5

Please sign in to comment.