Browse Source

Updates to properly assign values for $tls_cacertdir

'None' value was changed to '' value and "if" operator was
added to correct assign values to $tls_cacertdir.

Change-Id: Idaf3f9f4e2ea44d739523f4969792f72fe4eba07
Closes-Bug: #1558595
Maksym Yatsenko 3 years ago
parent
commit
8dd63cf88c

+ 5
- 3
deployment_scripts/puppet/modules/plugin_ldap/manifests/controller.pp View File

@@ -48,9 +48,11 @@ class plugin_ldap::controller {
48 48
     $ca_chain       = pick($::fuel_settings['ldap']['ca_chain'], false)
49 49
     $cacertfile     = '/usr/local/share/ca-certificates/cacert-ldap.crt'
50 50
 
51
-    $tls_cacertdir  = $ca_chain ? {
52
-      default => 'None',
53
-      true    => '/etc/ssl/certs',
51
+    if $ca_chain {
52
+      $tls_cacertdir = '/etc/ssl/certs'
53
+    }
54
+    else {
55
+      $tls_cacertdir = ''
54 56
     }
55 57
 
56 58
     if $ca_chain {

Loading…
Cancel
Save