No description
  • Go 86%
  • Shell 5.3%
  • Makefile 5.1%
  • HTML 3.6%
Find a file
2019-06-24 16:08:45 +00:00
.github Make CoC and support channels more visible 2017-11-01 23:04:32 +01:00
chef remove id from schema 2019-02-23 19:28:05 -05:00
scripts Fix Changelog Links Script for chef provider 2017-06-26 09:48:45 -05:00
vendor upgrade hashicorp/terraform to v0.12.2 2019-06-22 14:34:23 +01:00
website website: document CHEF_KEY_MATERIAL instead of deprecated CHEF_PRIVATE_KEY_FILE 2017-11-09 14:47:36 -08:00
.gitignore Updating Makefile + Add gitignore 2017-06-06 16:26:09 -04:00
.go-version provider: Ensured Go 1.11 in TravisCI and README 2019-02-22 18:26:51 -05:00
.travis.yml deps: use go modules for dep mgmt 2019-02-22 18:26:58 -05:00
CHANGELOG.md Cleanup after v0.2.0 release 2019-06-24 16:08:45 +00:00
GNUmakefile deps: use go modules for dep mgmt 2019-02-22 18:26:58 -05:00
go.mod upgrade hashicorp/terraform to v0.12.2 2019-06-22 14:34:23 +01:00
go.sum upgrade hashicorp/terraform to v0.12.2 2019-06-22 14:34:23 +01:00
LICENSE initial commit 2017-06-05 20:53:59 +00:00
main.go Initial transfer of provider code 2017-06-06 11:33:49 -04:00
README.md provider: Require Go 1.11 in TravisCI and README 2019-01-07 17:03:30 -05:00

Terraform Provider

Requirements

  • Terraform 0.10.x
  • Go 1.11 (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-chef

$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
$ git clone git@github.com:terraform-providers/terraform-provider-chef

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-chef
$ make build

Using the provider

Fill in for each provider

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.11+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make bin
...
$ $GOPATH/bin/terraform-provider-chef
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc