Sha256: b35d1b0379653105ea8d293d2e564de7bedc3b8c1a989d4e40c2b9f1ebdb65f3
Contents?: true
Size: 477 Bytes
Versions: 81
Compression:
Stored size: 477 Bytes
Contents
ruby_block "get ip" do block do tf_state = JSON.parse(File.read("#{node['chef-acceptance']['suite-dir']}/terraform/terraform.tfstate")) node.default["ip"] = tf_state["modules"].first["resources"]["aws_instance.mixlib_install_sh"]["primary"]["attributes"]["public_ip"] end end execute "run inspec" do command lazy { "inspec exec verify.rb -t ssh://ubuntu@#{node['ip']} -i ~/.ssh/es-infrastructure.pem" } cwd "#{node['chef-acceptance']['suite-dir']}/inspec" end
Version data entries
81 entries across 35 versions & 1 rubygems