Skip to content

Commit

Permalink
Notify service only if ensure present
Browse files Browse the repository at this point in the history
  • Loading branch information
philippeganz committed Jan 22, 2024
1 parent f87e29e commit cf1b624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/connection.pp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
fail("Unsupported kernel ${facts['kernel']} !")
}
}
if $enable != undef or $active != undef {
if $ensure == 'present' and ($enable != undef or $active != undef) {
File[$config_file] ~> Service[$service_name]
if $ca_file {
File[$ca_file] ~> Service[$service_name]
Expand Down

0 comments on commit cf1b624

Please sign in to comment.