CiscoDevNet / terraform-provider-mso

Terraform Cisco MSO provider

Home Page:https://registry.terraform.io/providers/CiscoDevNet/mso/latest/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cisco MSO Provider

Requirements

Building The Provider

Clone this repository to: $GOPATH/src/github.com/ciscoecosystem/terraform-provider-mso. Clone mso-go-client to $GOPATH/src/github.com/ciscoecosystem/mso-go-client.

$ mkdir -p $GOPATH/src/github.com/ciscoecosystem; cd $GOPATH/src/github.com/ciscoecosystem
$ git clone https://github.com/CiscoDevNet/terraform-provider-mso.git
$ git clone https://github.com/ciscoecosystem/mso-go-client.git

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.

terraform {
  required_providers {
    mso = {
      source = "CiscoDevNet/mso"
    }
  }
}
#configure provider with your cisco mso credentials.
provider "mso" {
  # cisco-mso user name
  username = "admin"
  # cisco-mso password
  password = "password"
  # cisco-mso url
  url      = "https://my-cisco-mso.com"
  insecure = true
  proxy_url = "https://proxy_server:proxy_port"
  platform = "nd"
}

resource "mso_schema" "schema1" {
  name          = "nkp1002"
  template_name = "temp1"
  tenant_id     = "5e9d09482c000068500a269a"

}

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.

About

Terraform Cisco MSO provider

https://registry.terraform.io/providers/CiscoDevNet/mso/latest/docs

License:Mozilla Public License 2.0


Languages

Language:Go 98.2%Language:HTML 1.5%Language:Shell 0.2%Language:Makefile 0.1%