Skip to content

Commit

Permalink
fix #329 Set icingaweb2::config::resource to deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Oct 11, 2022
1 parent e3c4173 commit e159e4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/config/resource.pp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@
Optional[Enum['none', 'starttls', 'ldaps']] $ldap_encryption = 'none',
Integer $ldap_timeout = 5,
) {
if $type == 'db' {
deprecation('icingaweb2::config::resource', 'This icingaweb2::config::resource is deprecated and will be replaced for type=db by icingaweb2::resource::database in the future.')
} else {
deprecation('icingaweb2::config::resource', 'This icingaweb2::config::resource is deprecated and will be replaced for type=ldap by icingaweb2::resource::ldap in the future.')
}

$conf_dir = $::icingaweb2::globals::conf_dir

Expand Down

0 comments on commit e159e4b

Please sign in to comment.