[chef] unable to run a powershell to create a failover cluster using chef.


Chronological Thread 
  • From: Pradeep Kumar < >
  • To:
  • Subject: [chef] unable to run a powershell to create a failover cluster using chef.
  • Date: Mon, 27 Apr 2015 18:19:07 +0530

Hi Every one,

hope someone could help me on this.

im trying to create a failover windows cluster using chef. im running the following

powershell_script "Validate and Create cluster" do
  code <<-EOH
  import-module failoverclusters
  New-Cluster –Name TestCluster –Node node1,node2  –StaticAddress "IP"
  EOH
  flags '-NoLogo, -NonInteractive, -NoProfile, -ExecutionPolicy Unrestricted, -InputFormat None'
end

the new-cluster command does not seem to run.

my chef run ends with a success! with no errors.

i have previously run various powershell scripts through chef and have been successfull. but no luck with this one. 


--
pradeep



Archive powered by MHonArc 2.6.16.

§