{"id":29416127,"url":"https://github.com/ewypych/terraform-vsphere-single-vm","last_synced_at":"2025-09-17T23:39:41.294Z","repository":{"id":302258977,"uuid":"83148472","full_name":"ewypych/terraform-vsphere-single-vm","owner":"ewypych","description":"Deploy single vSphere VM with Terraform - template.","archived":false,"fork":false,"pushed_at":"2017-09-03T15:36:38.000Z","size":4,"stargazers_count":22,"open_issues_count":0,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-11T19:02:19.616Z","etag":null,"topics":["hcl","iac","infrastructure","infrastructure-as-code","terraform","terraform-configurations","vms","vsphere"],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ewypych.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-02-25T17:19:08.000Z","updated_at":"2023-08-27T18:16:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b6c45e3-7b42-4b94-a65e-e88e9597d7ee","html_url":"https://github.com/ewypych/terraform-vsphere-single-vm","commit_stats":null,"previous_names":["ewypych/terraform-vsphere-single-vm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ewypych/terraform-vsphere-single-vm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewypych%2Fterraform-vsphere-single-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewypych%2Fterraform-vsphere-single-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewypych%2Fterraform-vsphere-single-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewypych%2Fterraform-vsphere-single-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewypych","download_url":"https://codeload.github.com/ewypych/terraform-vsphere-single-vm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewypych%2Fterraform-vsphere-single-vm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275685072,"owners_count":25509527,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hcl","iac","infrastructure","infrastructure-as-code","terraform","terraform-configurations","vms","vsphere"],"created_at":"2025-07-11T19:01:36.624Z","updated_at":"2025-09-17T23:39:41.270Z","avatar_url":"https://github.com/ewypych.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"TERRAFORM vSPHERE BUILD\n=======================\n\nThis is a basic build, which you can use to deploy a single VM in the vSphere infrastructure. Please notice that here you do not have many options like additional disk or copy .vmdk file. Anyway you do not need to specify every variables in the each build - there are a lot of maps which help to provision your infrastructure.\n\nThis build can be helpful with:\n\n- deploy a new VM for some tests,\n- deploy many VM, one by one,\n- join infrastructure deploying to the Ansible builds,\n- be a part of some tests, based on VMs\n- many other cases.\n\nYou can find more details on my page, where I described [how to deploy vSphere VM with Terraform](https://emilwypych.com/2017/02/26/deploying-vsphere-vm-with-terraform/).\n\nWARNING! Works only with Linux VMs!\n\nRequirements\n----------\n\nValid installation of vSphere with vCenter Server\n\nVariables\n---------\n\nThere are couple of variables. Some of them have default values. You should check all of them and ensure yourself that everything is valid for you Infrastructure deploy. This version has maps of variables, for example:\n\n```\nvariable \"vmgateway\" {\n  type = \"map\"\n  default = {\n    local.domain = \"192.168.0.1\"\n    second.domain = \"192.16.1.1\"\n  }\n}\n```\n\nYou need to create a file named terraform.tfvars in which you put your secrets and another custom variables. You can overwrite variables from the vars.tf file.\n\nPlease remember, that the most important variable is a vmdomain var (maps base on it), but you should specify the following variables:\n\n```\nviuser\nvipassword\nvmname\nvmdomain\nvmrp\nvmdatastore\nvmtemp\n```\n\nLicense\n----------\n\n[MIT](https://tldrlegal.com/license/mit-license)\n\nAuthor\n-------\n\n[Emil Wypych](https://emilwypych.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewypych%2Fterraform-vsphere-single-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fewypych%2Fterraform-vsphere-single-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewypych%2Fterraform-vsphere-single-vm/lists"}