Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
You can contribute in many ways:
Report bugs at https://github.com/DimensionDataResearch/dd-cloud-compute-terraform/issues.
If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your local setup that might be helpful in troubleshooting.
- Detailed steps to reproduce the bug.
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.
Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.
The CloudControl plugin for Terraform could always use more documentation, whether as part of the official documentation, in GoDoc, or even on the web in blog posts, articles, and such.
The best way to send feedback is to file an issue at https://github.com/DimensionDataResearch/dd-cloud-compute-terraform/issues.
If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to implement.
- Remember that this is a volunteer-driven project, and that contributions are welcome :)
Ready to contribute? Here's how to set up terraform-provider-ddcloud
for local development.
- Set up your build environment:
- If you have Vagrant and VMWare / VirtualBox, you can run
vagrant up
to create a VM to work in.- The resulting VM will have your repository folder mapped into the VM as a shared folder (so you can use your regular editor on your machine, but run build commands in the VM).
- Run
vagrant ssh
to connect to the VM.
- Otherwise:
- Install Go version 1.9.x
- Make sure your GOPATH environment variable has been set.
- Run
go get -u github.com/DimensionDataResearch/dd-cloud-compute-terraform
. - Go to $GOPATH/src/github.com/DimensionDataResearch/dd-cloud-compute-terraform.
- Run
make dev
to build the provider. - Configure Terraform to use the built provider:
- On windows create / update
$HOME\terraform.rc
- On Linux / OSX, create / update
~/.terraformrc
- And add the following contents:
providers { ddcloud = "path-to-the-folder/containing/dd-cloud-compute-terraform/_bin/terraform-provider-ddcloud" }
Before you submit a pull request, check that it meets these guidelines:
- Your pull request should target the v1.3 branch.
- The pull request should include tests (either unit or acceptance, as appropriate).
- If the pull request adds functionality, the docs should be updated.
To run a subset of tests:
$ make testacc TEST=MyTestPrefix # Appends the test name to "TestAcc" and only runs tests matching that prefix.
A file called AccTest.log is created, and contains detailed information about the provider's operation during acceptance tests.