Skip to content

Commit

Permalink
Replace dropin_file with manage_dropin in openldap::server::config
Browse files Browse the repository at this point in the history
  • Loading branch information
gcoxmoz committed Dec 11, 2024
1 parent 8549439 commit 5c9a079
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,15 @@
} else {
$real_slapd_path = '/usr/sbin/slapd'
}
systemd::dropin_file { 'puppet.conf':
unit => "${openldap::server::service}.service",
content => join([
'[Service]',
'EnvironmentFile=/etc/sysconfig/slapd',
'ExecStart=',
"ExecStart=${real_slapd_path} -u ${openldap::server::owner} -h \${SLAPD_URLS} \$SLAPD_OPTIONS",
], "\n"),
systemd::manage_dropin { 'puppet.conf':
unit => "${openldap::server::service}.service",
service_entry => {
'EnvironmentFile' => '/etc/sysconfig/slapd',
'ExecStart' => [
'',
"${real_slapd_path} -u ${openldap::server::owner} -h \${SLAPD_URLS} \$SLAPD_OPTIONS",
],
},
}
}
}
Expand Down

0 comments on commit 5c9a079

Please sign in to comment.