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