Sha256: 5774933f1e5c0788ed61fd0f8f80baad83f740a1d581b5a7d9158c8aec86207c
Contents?: true
Size: 1.67 KB
Versions: 16
Compression:
Stored size: 1.67 KB
Contents
if abiquo_installed? include AETK include AETK::OutputFormatters def hvpasswd_match? vf_cfg = abiquo_virtualfactory_config vsm_cfg = abiquo_vsm_config nc_cfg = abiquo_nodecollector_config #check libvirt vsm_pwd = config_property(vsm_cfg, 'hypervisors/libvirtAgent/password') nc_pwd = config_property(nc_cfg, 'wsman/password') vf_pwd = config_property(vf_cfg, 'rimp/password') if (vsm_pwd != nc_pwd) or (vsm_pwd != vf_pwd) or (nc_pwd != vf_pwd) return false end #check vmware vsm_pwd = config_property(vsm_cfg, 'hypervisors/vmware/password') nc_pwd = config_property(nc_cfg, 'hypervisors/esxi/password') vf_pwd = config_property(vf_cfg, 'hypervisors/vmware/password') if (vsm_pwd != nc_pwd) or (vsm_pwd != vf_pwd) or (nc_pwd != vf_pwd) return false end #check hyperv vsm_pwd = config_property(vsm_cfg, 'hypervisors/hyperv/password') nc_pwd = config_property(nc_cfg, 'hypervisors/hyperv/password') vf_pwd = config_property(vf_cfg, 'hypervisors/hyperv/password') if (vsm_pwd != nc_pwd) or (vsm_pwd != vf_pwd) or (nc_pwd != vf_pwd) return false end #check xenserver vsm_pwd = config_property(vsm_cfg, 'hypervisors/xenserver/password') nc_pwd = config_property(nc_cfg, 'hypervisors/xenserver/password') vf_pwd = config_property(vf_cfg, 'hypervisors/xenserver/password') if (vsm_pwd != nc_pwd) or (vsm_pwd != vf_pwd) or (nc_pwd != vf_pwd) return false end true end if (detect_install_type == :monolithic) or (detect_install_type == :remote_services) if hvpasswd_match? two_cols("Hypervisor Passwords:".bold, "Match".bold.green) else two_cols("Hypervisor Passwords:".bold, "Do not match".red.bold) end end end
Version data entries
16 entries across 16 versions & 1 rubygems