Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 3.16 KB

CONTRIBUTING.md

File metadata and controls

82 lines (55 loc) · 3.16 KB

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

You can contribute in many ways:

Types of Contributions

Report Bugs

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.

Fix Bugs

Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.

Implement Features

Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.

Write Documentation

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.

Submit Feedback

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 :)

Get Started!

Ready to contribute? Here's how to set up terraform-provider-ddcloud for local development.

  1. 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:
    1. Install Go version 1.9.x
    2. Make sure your GOPATH environment variable has been set.
    3. Run go get -u github.com/DimensionDataResearch/dd-cloud-compute-terraform.
    4. Go to $GOPATH/src/github.com/DimensionDataResearch/dd-cloud-compute-terraform.
  1. Run make dev to build the provider.
  2. 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"  
    }  

Pull Request Guidelines

Before you submit a pull request, check that it meets these guidelines:

  1. Your pull request should target the v1.3 branch.
  2. The pull request should include tests (either unit or acceptance, as appropriate).
  3. If the pull request adds functionality, the docs should be updated.

Tips

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.