Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix puppet-lint offenses & change legacy fact with modern fact #6

Merged
merged 1 commit into from
Jan 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifests/backup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
mode => '0640',
owner => $ds_389::user,
group => $ds_389::group,
content => inline_epp('<%= $pass %>',{ pass => $root_dn_pass }),
content => inline_epp('<%= $pass %>', { pass => $root_dn_pass }),
show_diff => false,
}

Expand Down
4 changes: 2 additions & 2 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
mode => '0400',
owner => $user,
group => $group,
content => epp("${module_name}/instance.epp",{
content => epp("${module_name}/instance.epp", {
create_suffix => $create_suffix,
group => $group,
root_dn => $root_dn,
Expand Down Expand Up @@ -307,7 +307,7 @@
-> file { "Create CA config: ${server_id}":
ensure => 'file',
name => $ca_conf,
content => epp('ds_389/openssl_ca.cnf.epp',{
content => epp('ds_389/openssl_ca.cnf.epp', {
dc => $facts['networking']['fqdn'],
cn => $ca_nickname,
}),
Expand Down
2 changes: 1 addition & 1 deletion manifests/replication.pp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@
mode => '0440',
owner => $user,
group => $group,
content => epp('ds_389/replication-user.epp',{
content => epp('ds_389/replication-user.epp', {
bind_dn => $_bind_dn,
replication_pass => $replication_pass,
replication_user => $replication_user,
Expand Down
2 changes: 1 addition & 1 deletion manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
file { "/etc/init.d/dirsrv@${name}":
ensure => file,
mode => '0755',
content => epp('ds_389/service-init.epp',{
content => epp('ds_389/service-init.epp', {
name => $name,
}),
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/ssl.pp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
owner => $user,
group => $group,
mode => '0440',
content => epp('ds_389/ssl.epp',{
content => epp('ds_389/ssl.epp', {
ssl_version_min => $ssl_version_min,
}),
}
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/ds_389_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class { 'ds_389':
'USERTrust RSA Certification Authority - AddTrust AB',
'AddTrust External CA Root - AddTrust AB',
],
'cert_name' => $::fqdn,
'cert_name' => $facts['networking']['fqdn'],
},
},
},
Expand Down