No description
  • Go 95.8%
  • HTML 2.7%
  • Shell 1%
  • Makefile 0.5%
Find a file
2020-06-18 18:44:29 +08:00
fortios Improve connection timeout design #68 2020-06-18 18:38:51 +08:00
scripts Directory structure changed 2020-05-08 19:48:57 +08:00
test Update .travis.yml 2020-05-30 18:53:56 +08:00
vendor Improve connection timeout design #68 2020-06-18 18:38:51 +08:00
website Fix fortios_system_setting_global.html.markdown format problem 2020-06-18 18:44:29 +08:00
.gitattributes Fix setEnvSession issue 2020-05-13 12:41:35 +08:00
.gitignore Update go.mod, CHANGELOG.md,etc. 2020-05-19 10:37:20 +08:00
.go-version Update go.mod, CHANGELOG.md,etc. 2020-05-19 10:37:20 +08:00
.golangci.yml Update go.mod, CHANGELOG.md,etc. 2020-05-19 10:37:20 +08:00
.travis.yml Update .travis.yml 2020-05-30 18:53:56 +08:00
CHANGELOG.md Cleanup after v1.3.0 release 2020-06-15 22:51:51 +00:00
GNUmakefile Fix setEnvSession issue 2020-05-13 12:41:35 +08:00
go.mod Update SDK tag to the latest version 2020-06-12 12:36:34 +08:00
go.sum Update go.mod, CHANGELOG.md,etc. 2020-05-19 10:37:20 +08:00
LICENSE Trim trailing whitespace 2020-05-14 11:48:16 +08:00
main.go Update go.mod, CHANGELOG.md,etc. 2020-05-19 10:37:20 +08:00
README.md Update go.mod, CHANGELOG.md,etc. 2020-05-19 10:37:20 +08:00

Terraform Provider

Requirements

  • Terraform 0.12.x +
  • Go 1.13.x (to build the provider plugin)
  • The provider can cover both FortiOS 6.0 and 6.2 versions. The provider can cover both FortiManager 6.0 and 6.2 versions. When using FortiManager, make sure the versions of FortiManager and the FortiGates controlled by it are the same.

Building the Provider

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

    $ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
    $ git clone git@github.com:terraform-providers/terraform-provider-fortios
    
  2. Enter the provider directory and build the provider.

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

Using the Provider

If you're building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

$ terraform init

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.13+ 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 build
...