Sha256: f37173f248edee06164f06a3c525023baa6f65cbdd87628e3a82ffb5e4759763

Contents?: true

Size: 477 Bytes

Versions: 6

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://centos@#{node['ip']} -i ~/.ssh/es-infrastructure.pem" }
  cwd "#{node['chef-acceptance']['suite-dir']}/inspec"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mixlib-install-3.9.0 acceptance/centos_install_checksum/.acceptance/acceptance-cookbook/recipes/verify.rb
mixlib-install-3.8.0 acceptance/centos_install_checksum/.acceptance/acceptance-cookbook/recipes/verify.rb
mixlib-install-3.7.0 acceptance/centos_install_checksum/.acceptance/acceptance-cookbook/recipes/verify.rb
mixlib-install-3.6.0 acceptance/centos_install_checksum/.acceptance/acceptance-cookbook/recipes/verify.rb
mixlib-install-3.5.1 acceptance/centos_install_checksum/.acceptance/acceptance-cookbook/recipes/verify.rb
mixlib-install-3.5.0 acceptance/centos_install_checksum/.acceptance/acceptance-cookbook/recipes/verify.rb