No description
  • Go 97.4%
  • HTML 2.4%
  • Shell 0.1%
  • Makefile 0.1%
Find a file
2020-09-21 15:44:26 +05:30
.github/ISSUE_TEMPLATE Added issue templates 2020-07-06 16:37:15 +05:30
aci CACIT-68-69 updated 2020-09-21 14:07:15 +05:30
examples added logic to convert id to name for relation_cloud_rs_to_ctx 2020-07-20 10:11:15 +05:30
scripts Added modules missing in terraform provider 2020-03-30 18:33:44 +05:30
vendor CACIT-68-69 updated 2020-09-21 14:07:15 +05:30
website CACIT-69 DS added 2020-09-21 14:15:05 +05:30
.gitignore removed extra files 2019-06-25 12:36:47 +05:30
.travis.yml build: Add TravisCI 2019-07-26 14:28:38 +01:00
CHANGELOG.md Cleanup after v0.4.0 release 2020-09-16 20:07:25 +00:00
GNUmakefile Init commit 2019-06-18 09:31:50 +05:30
go.mod CACIT-68-69 updated 2020-09-21 14:07:15 +05:30
go.sum CACIT-68-69 updated 2020-09-21 14:07:15 +05:30
LICENSE Init commit 2019-06-18 09:31:50 +05:30
main.go Use terraform-plugin-sdk 2019-12-19 18:50:53 +05:30
README.md Minor markdown improvements 2019-09-11 16:06:14 -04:00

Cisco ACI Provider

Requirements

Building The Provider

Clone this repository to: $GOPATH/src/github.com/ciscoecosystem/terraform-provider-cisco-aci.

$ mkdir -p $GOPATH/src/github.com/ciscoecosystem; cd $GOPATH/src/github.com/ciscoecosystem
$ git clone https://github.com/ciscoecosystem/terraform-provider-aci.git

Enter the provider directory and run dep ensure to install all the dependancies. After, that run make build to build the provider binary.

$ cd $GOPATH/src/github.com/ciscoecosystem/terraform-provider-aci
$ dep ensure
$ make build

Using The Provider

If you are 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.

ex.

#configure provider with your cisco aci credentials.
provider "aci" {
  # cisco-aci user name
  username = "admin"
  # cisco-aci password
  password = "password"
  # cisco-aci url
  url      = "https://my-cisco-aci.com"
  insecure = true
  proxy_url = "https://proxy_server:proxy_port"
}

resource "aci_tenant" "test-tenant" {
  name        = "test-tenant"
  description = "This tenant is created by terraform"
}

resource "aci_app_profile" "test-app" {
  tanent_dn   = "${aci_tenant.test-tenant.id}"
  name        = "test-app"
  description = "This app profile is created by terraform"
}

Note : If you are facing the issue of invalid character '<' looking for beginning of value while running terraform apply, use signature based authentication in that case, or else use -parallelism=1 with terraform plan and terraform apply to limit the concurrency to one thread.

terraform plan -parallelism=1
terraform apply -parallelism=1
  provider "aci" {
      # cisco-aci user name
      username = "admin"
      # private key path
      private_key = "path to private key"
      # Certificate Name
      cert_name = "certificate.crt"
      # cisco-aci url
      url      = "https://my-cisco-aci.com"
      insecure = true
  }

Developing The Provider

If you want to work on the provider, you'll first need Go installed on your machine. 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 with sanity checks present in scripts directory and put the provider binary in $GOPATH/bin directory.

NOTE: Currently only resource properties supports the reflecting manual changes made in CISCO ACI. Manual changes to relationship is not taken care by the provider.