cookbooks/mu-master/recipes/default.rb in cloud-mu-2.0.0.pre.alpha7 vs cookbooks/mu-master/recipes/default.rb in cloud-mu-2.0.0.pre.alpha8
- old
+ new
@@ -53,10 +53,10 @@
if !node['update_nagios_only']
include_recipe 'chef-vault'
if $MU_CFG.has_key?('ldap')
- if $MU_CFG['ldap']['type'] == "389 Directory Services" and Dir.exists?("/etc/dirsrv/slapd-#{$MU_CFG['hostname']}")
+ if $MU_CFG['ldap']['type'] == "389 Directory Services" and Dir.exist?("/etc/dirsrv/slapd-#{$MU_CFG['hostname']}")
include_recipe 'mu-master::sssd'
elsif $MU_CFG['ldap']['type'] == "Active Directory"
node.normal['ad'] = {}
node.normal['ad']['computer_name'] = "MU-MASTER"
node.normal['ad']['node_class'] = "mumaster"