postgresql - Ruby chef script .exe file format installer installation -
i creating ruby chef script (cookbooks recipe) install postgresql on provisioned virtual machine on windows. have following scripts:
postgresql_location = "#{chef::config['file_cache_path']}/#{node['postgresql']['filename']}" windows_package 'postgresql' action :install source postgresql_location installer_type :custom end
if have installer in .msi format, installation work fine. however, if installer in .exe format, exception thrown.
is there missing script or statement need add work? there libraries or built in recipes need included in recipe?
appreciate help.
thanks,
you can use batch resource -
batch "install setup.exe " code "c:/temp/yourexe.exe" action :run end
Comments
Post a Comment