[chef-dev] Opscode Chef installing Eclipse with Plugins on Windows 2012


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef-dev] Opscode Chef installing Eclipse with Plugins on Windows 2012
  • Date: Wed, 8 Jan 2014 08:51:40 -0800 (PST)

Hello,

I am install Eclipse on a Windows 2012 using Chef remotely.  I am able to
accomplish this with no issue.  The problem I am running into is installing
plugins.  

It seems that I need the "windows_batch" to run as administrator.  I am using
the knife-windows plugin.  The recipe I am using is below:

windows_batch "install_maven" do 
code <<-EOH
C:\\eclipse\\eclipsec.exe -nosplash -application
org.eclipse.equinox.p2.director -repository
http://download.eclipse.org/releases/indigo/,http://repository.sonatype.org/content/sites/forge-sites/m2e/0.12.0/S/0.12.0.20101102-1505/
-installIU org.maven.ide.eclipse.feature.feature.group
EOH
end

The issue I see is it just hangs when it reaches this recipe remotely.

The recipe works when I run chef-client locally from a powershell prompt ran 
as
administrator and I change "windows_batch" to "batch".  How can I make this
work when I run this remotely?

Please let me know if you need more details.

Thank you for the help!
Mike



Archive powered by MHonArc 2.6.16.

§