inspec/examples/kitchen-ansible
Adam Leff d77551baf1 Remove rubocop from example Gemfiles (#2341)
The pinned version of Rubocop in some of the TK examples' Gemfiles
was a very old version with known vulnerabilities. Since these are just
examples and have no Rake tasks that rely on them, I removed rubocop
outright from the example Gemfiles.

Signed-off-by: Adam Leff <adam@leff.co>
2017-11-27 19:05:52 +01:00
..
files add kitchen-ansible inspec example 2015-11-30 14:56:33 +01:00
tasks add kitchen-ansible inspec example 2015-11-30 14:56:33 +01:00
test/integration/default add kitchen-ansible inspec example 2015-11-30 14:56:33 +01:00
.kitchen.yml add kitchen-ansible inspec example 2015-11-30 14:56:33 +01:00
Gemfile Remove rubocop from example Gemfiles (#2341) 2017-11-27 19:05:52 +01:00
README.md update title of examples 2015-12-11 14:57:21 +01:00

Test-Kitchen - InSpec with Ansible Example

This example demonstrates a complete roundtrip via Test-Kitchen.

# install all dependencies
$ bundle install
# show all available tests
$ bundle exec kitchen list
Instance             Driver   Provisioner      Verifier  Transport  Last Action
default-centos-71    Vagrant  AnsiblePlaybook  Inspec    Ssh        <Not Created>
default-ubuntu-1204  Vagrant  AnsiblePlaybook  Inspec    Ssh        <Not Created>
default-ubuntu-1404  Vagrant  AnsiblePlaybook  Inspec    Ssh        <Not Created>

# Now we are ready to run a complete test
$ bundle exec kitchen test default-ubuntu-1404
-----> Starting Kitchen (v1.4.2)
-----> Cleaning up any prior instances of <default-ubuntu-1404>
-----> Destroying <default-ubuntu-1404>...
       Finished destroying <default-ubuntu-1404> (0m0.00s).
-----> Testing <default-ubuntu-1404>
-----> Creating <default-ubuntu-1404>...
       Bringing machine 'default' up with 'virtualbox' provider...
       ==> default: Importing base box 'opscode-ubuntu-14.04'...

...

       Vagrant instance <default-ubuntu-1404> created.
       Finished creating <default-ubuntu-1404> (0m37.51s).
-----> Converging <default-ubuntu-1404>...
       Preparing files for transfer
       Preparing playbook

...

       Finished converging <default-ubuntu-1404> (1m14.53s).
-----> Setting up <default-ubuntu-1404>...
       Finished setting up <default-ubuntu-1404> (0m0.00s).
-----> Verifying <default-ubuntu-1404>...
.....

Finished in 0.08796 seconds (files took 1 minute 52.3 seconds to load)
5 examples, 0 failures

       Finished verifying <default-ubuntu-1404> (0m0.27s).
-----> Destroying <default-ubuntu-1404>...
       ==> default: Forcing shutdown of VM...
       ==> default: Destroying VM and associated drives...
       Vagrant instance <default-ubuntu-1404> destroyed.
       Finished destroying <default-ubuntu-1404> (0m4.41s).
       Finished testing <default-ubuntu-1404> (1m56.73s).
-----> Kitchen is finished. (1m57.06s)