Skip to content

Commit

Permalink
Merge pull request #101 from StatensPensjonskasse/cleanup-debian-defa…
Browse files Browse the repository at this point in the history
…ults

Cleanup Debian defaults
  • Loading branch information
h-haaks authored May 27, 2024
2 parents 4e2b5b8 + 7d43ed7 commit 76c1c16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 3 additions & 13 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,12 @@
$trusted_cert_dir = '/usr/local/share/ca-certificates'
$distrusted_cert_dir = undef
$update_cmd = 'update-ca-certificates'
$cert_dir_group = 'staff'
$cert_dir_group = 'root'
$cert_dir_mode = '0755'
$ca_file_group = 'root'
$ca_file_mode = '0444'
$ca_file_mode = '0644'
$ca_file_extension = 'crt'
$package_name = 'ca-certificates'
case $facts['os']['name'] {
'Ubuntu': {
$cert_dir_mode = '0755'
}
/(Debian|Kali)/: {
$cert_dir_mode = '2665'
}
default: {
$cert_dir_mode = '0755'
}
}
}
'RedHat': {
$trusted_cert_dir = '/etc/pki/ca-trust/source/anchors'
Expand Down
2 changes: 0 additions & 2 deletions spec/classes/ca_cert_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
case facts[:os]['family']
when 'Debian'
trusted_cert_dir = '/usr/local/share/ca-certificates'
cert_dir_group = 'staff'
cert_dir_mode = '2665' if facts[:os]['name'] == 'Debian'
when 'RedHat'
trusted_cert_dir = '/etc/pki/ca-trust/source/anchors'
update_cmd = 'update-ca-trust extract'
Expand Down

0 comments on commit 76c1c16

Please sign in to comment.