{"id":16749518,"url":"https://github.com/jjasghar/inspec-vmware-example","last_synced_at":"2025-11-01T10:30:35.281Z","repository":{"id":47387072,"uuid":"138329910","full_name":"jjasghar/inspec-vmware-example","owner":"jjasghar","description":"An example InSpec profile to run a control to validate TSM-SSH against ESXi","archived":true,"fork":false,"pushed_at":"2018-08-21T15:36:56.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-10T14:22:55.621Z","etag":null,"topics":["chef","demo","inspec","powercli","powershell"],"latest_commit_sha":null,"homepage":"https://github.com/jjasghar/inspec-vmware-example","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jjasghar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-22T17:25:37.000Z","updated_at":"2024-07-25T23:19:02.000Z","dependencies_parsed_at":"2022-08-22T12:51:26.315Z","dependency_job_id":null,"html_url":"https://github.com/jjasghar/inspec-vmware-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjasghar%2Finspec-vmware-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjasghar%2Finspec-vmware-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjasghar%2Finspec-vmware-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjasghar%2Finspec-vmware-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjasghar","download_url":"https://codeload.github.com/jjasghar/inspec-vmware-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239282094,"owners_count":19613004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chef","demo","inspec","powercli","powershell"],"created_at":"2024-10-13T02:25:05.546Z","updated_at":"2025-11-01T10:30:35.222Z","avatar_url":"https://github.com/jjasghar.png","language":"Ruby","readme":"# InSpec-VMware Example Profile\n\n## Scope\n\nThis is an example of the `powercli_command` InSpec resource and a `TSM-SSH` control.\n\n## Usage\n\n### Setup\n\n#### Via Vagrant\n\n```shell\nvagrant up\nvagrant ssh\nsudo pwsh -Command \"\u0026 {Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:\\\\$False}\"\ninspec exec inspec-vmware-example -t vmware://USERNAME@VISERVER --password PASSWORD\n```\n\n#### Via Bundle\n\n```shell\ngit clone https://github.com/jjasghar/inspec-vmware-example.git\ncd inspec-vmware-example\nbundle install\nbundle exec inspec vendor\nsudo pwsh -Command \"\u0026 {Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:\\\\$False}\"\nbundle exec inspec exec . -t vmware://USERNAME@VISERVER --password PASSWORD\n```\n\n### Self-Signed Certs\n\nIf you have self signed certificates on your ESXi/vCenter instances you will need to run the following commands from the host you want to run InSpec from.\n\n```powershell\n$ pwsh\nPS \u003e  Set-PowerCLIConfiguration -InvalidCertificateAction Ignore\n```\n\nIf you don't the initial `Connect-VIserver` will fail with not being able to find PowerShell.\n\n## License and Author\n\n- Author::  JJ Asghar \u003cjj@chef.io\u003e\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjasghar%2Finspec-vmware-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjasghar%2Finspec-vmware-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjasghar%2Finspec-vmware-example/lists"}