{"id":22653882,"url":"https://github.com/gslabdev/terraform-provider-scvmm","last_synced_at":"2025-04-12T04:05:53.520Z","repository":{"id":57529374,"uuid":"104216595","full_name":"GSLabDev/terraform-provider-scvmm","owner":"GSLabDev","description":"Automates the Microsoft System Center Virtual Machine Manager (SCVMM) resources creation during Infrastructure build using Terraform Provider. ","archived":false,"fork":false,"pushed_at":"2019-12-16T10:28:27.000Z","size":177,"stargazers_count":17,"open_issues_count":2,"forks_count":17,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-12T04:05:38.372Z","etag":null,"topics":["microsoft-scvmm","terraform","terraform-provider","vmm"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GSLabDev.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":"2017-09-20T13:07:20.000Z","updated_at":"2024-06-22T19:37:36.000Z","dependencies_parsed_at":"2022-08-26T03:51:26.358Z","dependency_job_id":null,"html_url":"https://github.com/GSLabDev/terraform-provider-scvmm","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/GSLabDev%2Fterraform-provider-scvmm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSLabDev%2Fterraform-provider-scvmm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSLabDev%2Fterraform-provider-scvmm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GSLabDev%2Fterraform-provider-scvmm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GSLabDev","download_url":"https://codeload.github.com/GSLabDev/terraform-provider-scvmm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514228,"owners_count":21116903,"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":["microsoft-scvmm","terraform","terraform-provider","vmm"],"created_at":"2024-12-09T09:30:21.403Z","updated_at":"2025-04-12T04:05:53.470Z","avatar_url":"https://github.com/GSLabDev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Microsoft SCVMM Provider\n\nThis is the repository for the Terraform [Microsoft SCVMM][1] Provider, which one can use\nwith Terraform to work with Microsoft SCVMM.\n\n[1]: https://docs.microsoft.com/en-us/system-center/vmm/\n\nCoverage is currently only limited to Virtual Machine, Virtual Disk and Checkpoint but in the coming months we are planning release coverage for most essential Microsoft SCVMM workflows.\nWatch this space!\n\nFor general information about Terraform, visit the [official website][3] and the\n[GitHub project page][4].\n\n[3]: https://terraform.io/\n[4]: https://github.com/hashicorp/terraform\n\n# Using the Provider\n\nThe current version of this provider requires Terraform v0.10.2 or higher to\nrun.\n\nNote that you need to run `terraform init` to fetch the provider before\ndeploying. Read about the provider split and other changes to TF v0.10.0 in the\nofficial release announcement found [here][4].\n\n[4]: https://www.hashicorp.com/blog/hashicorp-terraform-0-10/\n\n## Full Provider Documentation\n\nThe provider is usefull in adding Virtual Machine, Virtual Disk and Checkpoint using Microsoft SCVMM.\n\n### Example\n```hcl\n# Configure the Microsoft SCVMM Provider\nprovider \"scvmm\" {\n  server_ip = \"${var.scvmm_server_ip}\"\n  port = ${var.scvmm_server_port}\n  user_name = \"${var.scvmm_server_user}\"\n  user_password = \"${var.scvmm_server_password}\"\n}\n\n# Add a Virtual Machine\nresource \"scvmm_virtual_machine\" \"CreateVM\" {\n  timeout = \"10000\"\n  vmm_server = \"WIN-2F929KU8HIU\"\n  vm_name = \"Test_VM_demo01\"\n  template_name = \"TestVMTemplate\"\n  cloud_name = \"GSL Cloud\"\n}\n\n#Add a Virtual Disk\nresource \"scvmm_virtual_disk\" \"demoDisk\" {\n  timeout = 10000\n  vmm_server = \"${scvmm_virtual_machine.CreateVM.vmm_server}\"\n  vm_name = \"${scvmm_virtual_machine.CreateVM.vm_name}\"\n  virtual_disk_name = \"demo_disk\"\n  virtual_disk_size = 10000\n}\n\nresource \"scvmm_checkpoint\" \"demoCheck\" {\n  timeout=1000\n  vmm_server=\"${scvmm_virtual_disk.demoDisk.vmm_server}\"\n  vm_name=\"${scvmm_virtual_machine.CreateVM.vm_name}\"\n  checkpoint_name=\"demo_checkpoint\"\n}\n```\n\n# Building The Provider\n\n**NOTE:** Unless you are [developing][7] or require a pre-release bugfix or feature,\nyou will want to use the officially released version of the provider (see [the\nsection above][8]).\n\n[7]: #developing-the-provider\n[8]: #using-the-provider\n\n\n## Cloning the Project\n\nFirst, you will want to clone the repository to\n`$GOPATH/src/github.com/GSLabDev/terraform-provider-scvmm`:\n\n```sh\nmkdir -p $GOPATH/src/github.com/GSLabDev/\ncd $GOPATH/src/github.com/GSLabDev/\ngit clone git@github.com:terraform-providers/terraform-provider-scvmm\n```\n\n## Running the Build\n\nAfter the clone has been completed, you can enter the provider directory and\nbuild the provider.\n\n```sh\ncd $GOPATH/src/github.com/GSLabDev/terraform-provider-scvmm\nmake\n```\n\n## Installing the Local Plugin\n\nAfter the build is complete, copy the `terraform-provider-scvmm` binary into\nthe same path as your `terraform` binary, and re-run `terraform init`.\n\nAfter this, your project-local `.terraform/plugins/ARCH/lock.json` (where `ARCH`\nmatches the architecture of your machine) file should contain a SHA256 sum that\nmatches the local plugin. Run `shasum -a 256` on the binary to verify the values\nmatch.\n\n# Developing the Provider\n\nIf you wish to work on the provider, you'll first need [Go][9] installed on your\nmachine (version 1.9+ is **required**). You'll also need to correctly setup a\n[GOPATH][10], as well as adding `$GOPATH/bin` to your `$PATH`.\n\n[9]: https://golang.org/\n[10]: http://golang.org/doc/code.html#GOPATH\n\nSee [Building the Provider][11] for details on building the provider.\n\n[11]: #building-the-provider\n\n# Testing the Provider\n\n**NOTE:** Testing the Microsoft SCVMM provider is currently a complex operation as it\nrequires having a Microsoft SCVMM Server to test against.\n\n## Configuring Environment Variables\n\nMost of the tests in this provider require a comprehensive list of environment\nvariables to run. See the individual `*_test.go` files in the\n[`scvmm/`](scvmm/) directory for more details. The next section also\ndescribes how you can manage a configuration file of the test environment\nvariables.\n\n### Using the `.tf-scvmm-devrc.mk` file\n\nThe [`tf-scvmm-devrc.mk.example`](tf-scvmm-devrc.mk.example) file contains\nan up-to-date list of environment variables required to run the acceptance\ntests. Copy this to `$HOME/.tf-scvmm-devrc.mk` and change the permissions to\nsomething more secure (ie: `chmod 600 $HOME/.tf-scvmm-devrc.mk`), and\nconfigure the variables accordingly.\n\n## Running the Acceptance Tests\n\nAfter this is done, you can run the acceptance tests by running:\n\n```sh\n$ make testacc\n```\n\nIf you want to run against a specific set of tests, run `make testacc` with the\n`TESTARGS` parameter containing the run mask as per below:\n\n```sh\nmake testacc TESTARGS=\"-run=TestAccSCVMM\"\n```\n\nThis following example would run all of the acceptance tests matching\n`TestAccSCVMM`. Change this for the specific tests you want to\nrun.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgslabdev%2Fterraform-provider-scvmm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgslabdev%2Fterraform-provider-scvmm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgslabdev%2Fterraform-provider-scvmm/lists"}