Hi,
Cookbook Name:: HPSiteScope
Recipe:: default
Copyright 2013, YOUR_COMPANY_NAME
All rights reserved - Do Not Redistribute
include_recipe “windows::default”
directory “d:/HPSiteScope.11.2” do
action :create
end
directory “d:/HPSiteScope.11.2/HPSiteScope.11.22” do
action :create
end
cookbook_file “d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe”) }
end
cookbook_file “d:/HPSiteScope.11.2/ovinstallparams.ini” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/ovinstallparams.ini”) }
end
remote_directory “d:/HPSiteScope.11.2/packages” do
source 'packages.11.20’
recursive true
action :create
end
execute " HPsitescope" do
print " Installation of site scope package started"
command "start /wait d:/HPSiteScope.11.2/HPSiteScope_11.20_setup.exe -i silent"
end
cookbook_file “d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe”) }
action :create
end
remote_directory “d:/HPSiteScope.11.2/HPSiteScope.11.22/packages” do
source 'packages.11.22’
recursive true
action :create
end
execute " upgrading sitescope to 11.22" do
print " Installation of site scope package started"
command "start /wait d:/HPSiteScope.11.2/HPSiteScope.11.22/HPSiS1122_11.22_setup.exe -i silent"
end
cookbook_file “d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi” do
cookbook "HPSiteScope"
action :create
not_if { ::File.exists?(“d:/HPSiteScope.11.2/SS1122130614-11.22.000-WinNT4.0.msi”) }
end
windows_package “SS1122130614-11.22.000-WinNT4.0.msi” do
source "D:\HPSiteScope.11.2\SS1122130614-11.22.000-WinNT4.0.msi"
options '/L*V “D:\SiS_patch_install.log”'
installer_type :msi
end
I am trying to install and upgrade a sitescope package in single recipe but it is failing because reboot is required before upgrade the package
- HPSiteScope_11.20_setup.exe – installation 2) HPSiS1122_11.22_setup.exe – upgrade 3) SS1122130614-11.22.000-WinNT4.0.msi – upgrade
After installing the first package(HPSiteScope_11.20_setup.exe ) reboot is required to update the folder relevant with this package . Issue: upgrade is looking for that folder relevant with that package
Is there is any way to retrigger the recipe after reboot?
To add the bat job in window to trigger “chef-solo” to upgrade the package once after reboot of the recipe for installation. ?
Any cookbook is there for installing HP sitescope package in window?
Thanks & Regards,
Premkumar
UTS
From: Gontrand, Premkumar
Sent: Tuesday, January 07, 2014 1:20 AM
To: chef@lists.opscode.com
Subject: window msi package installation issue
Hi,
I am trying to install msi patch for hpsitescope in window 2008 server I am getting the below error while I am compiling
default.rb
include_recipe “windows::default”
windows_package “S1122130614-11.22.000-WinNT4.0.msi” do
source "D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi"
options "/q"
installer_type :msi
action :install
end
Error:
- gem_package[win32-mutex] action install←[0m (up to date)←[0m
Recipe: HPSiteScope::default←[0m - windows_package[S1122130614-11.22.000-WinNT4.0.msi] action install←[0m←[0m
================================================================================←[0m
←[31mError executing actioninstall
on resource 'windows_package[S1122130614-11.22.000-WinNT4.0.msi]'←[0m
================================================================================←[0m
←[0m
NameError←[0m
---------←[0m
uninitialized constant Chef::Win32::Registry::HKEY_LOCAL_MACHINE←[0m
←[0m
Resource Declaration:←[0m
---------------------←[0m
In C:/Users/chef/cookbooks/HPSiteScope/recipes/default.rb
4: windows_package “S1122130614-11.22.000-WinNT4.0.msi” do
5: source "D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi"
6: options "/q"
7: installer_type :msi
8: action :install
9: end←[0m
←[0m
Compiled Resource:←[0m
------------------←[0m
Declared in C:/Users/chef/cookbooks/HPSiteScope/recipes/default.rb:4:in `from_file’
windows_package(“S1122130614-11.22.000-WinNT4.0.msi”) do
action [:install]
retries 0
retry_delay 2
cookbook_name :HPSiteScope
recipe_name "default"
source "D:\HPSiteScope.11.2\S1122130614-11.22.000-WinNT4.0.msi"
options "/q"
installer_type :msi
package_name "S1122130614-11.22.000-WinNT4.0.msi"
end
←[0m
←[0m
I am new to development and window Any one faced the issue similar to that?
Is there is anything that need to be along with the code.
Thanks & Regards,
Premkumar