Skip to content

Instantly share code, notes, and snippets.

View scottford-io's full-sized avatar

Scott Ford scottford-io

View GitHub Profile
@scottford-io
scottford-io / default-windows-2016.log
Created May 16, 2019 04:27
default-windows-2016.log
I, [2019-05-15T21:18:28.948779 #28414] INFO -- default-windows-2016: -----> Cleaning up any prior instances of <default-windows-2016>
I, [2019-05-15T21:18:28.949169 #28414] INFO -- default-windows-2016: -----> Destroying <default-windows-2016>...
I, [2019-05-15T21:18:32.014230 #28414] INFO -- default-windows-2016: ==> default: Forcing shutdown of VM...
I, [2019-05-15T21:18:33.163971 #28414] INFO -- default-windows-2016: ==> default: Destroying VM and associated drives...
I, [2019-05-15T21:18:33.692896 #28414] INFO -- default-windows-2016: Vagrant instance <default-windows-2016> destroyed.
I, [2019-05-15T21:18:33.694596 #28414] INFO -- default-windows-2016: Finished destroying <default-windows-2016> (0m4.74s).
I, [2019-05-15T21:18:33.695003 #28414] INFO -- default-windows-2016: -----> Testing <default-windows-2016>
I, [2019-05-15T21:18:33.695214 #28414] INFO -- default-windows-2016: -----> Creating <default-windows-2016>...
I, [2019-05-15T21:18:35.369738 #28414] INFO -- default-windows-2016: Bringing
I, [2019-05-15T21:18:22.900710 #28414] INFO -- Kitchen: -----> Starting Kitchen (v1.24.0)
I, [2019-05-15T21:18:28.948477 #28414] INFO -- Kitchen: -----> Cleaning up any prior instances of <default-windows-2016>
I, [2019-05-15T21:18:28.949135 #28414] INFO -- Kitchen: -----> Destroying <default-windows-2016>...
I, [2019-05-15T21:18:33.694937 #28414] INFO -- Kitchen: -----> Testing <default-windows-2016>
I, [2019-05-15T21:18:33.695157 #28414] INFO -- Kitchen: -----> Creating <default-windows-2016>...
I, [2019-05-15T21:20:22.083658 #28414] INFO -- Kitchen: -----> Converging <default-windows-2016>...
E, [2019-05-15T21:21:57.370052 #28414] ERROR -- Kitchen: ------Exception-------
E, [2019-05-15T21:21:57.370090 #28414] ERROR -- Kitchen: Class: Kitchen::ActionFailed
E, [2019-05-15T21:21:57.370111 #28414] ERROR -- Kitchen: Message: 1 actions failed.
>>>>>> Converge failed on instance <default-windows-2016>. Please see .kitchen/logs/default-windows-2016.log for more details
@scottford-io
scottford-io / .kitchen.yml
Created May 16, 2019 04:09
Test Kitchen file for Habitat POC Test
---
driver:
name: vagrant
provisioner:
name: chef_zero
product_name: chef
product_version: 14.12.3
verifier:
@scottford-io
scottford-io / a2_reports_api.md
Last active March 28, 2020 15:37
Reports API Chef Automate 2

Generating Custom Reports from Chef Automate 2.0 compliance API

The following documents how to query the A2 compliance api to pull reports for a given node for a given timeframe

step one: use suggestions or nodes list to get the id of the node

  • this will return a list of suggestions.
  • they will want to search the response data for the node name they requested and then grab the id for the node
curl -H "api-token: admin-token-val" https://a2-url/api/v0/compliance/reporting/suggestions -d '{"type":"node","text":"angrychef-rhel-7-s390x-tester-76dc19.cd.chef.co","filters":[{"type":"start_time","values":["2019-04-02T00:00:00Z"]},{"type":"end_time","values":["2019-04-12T23:59:59Z"]}]}'