Giter Site home page Giter Site logo

nonstdout / terraform-provider-dnacenter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cisco-en-programmability/terraform-provider-dnacenter

0.0 0.0 0.0 265.43 MB

Home Page: https://registry.terraform.io/providers/cisco-en-programmability/dnacenter/latest/docs

License: MIT License

Shell 0.02% Go 99.94% Makefile 0.04%

terraform-provider-dnacenter's Introduction

terraform-provider-dnacenter

terraform-provider-dnacenter is a Terraform Provider for Cisco DNA Center

Requirements

  • Terraform 0.13.x
  • Go 1.15 (to build the provider plugin)

Introduction

The terraform-provider-dnacenter provides a Terraform provider for managing and automating your Cisco DNA Center environment. It consists of a set of resources and data-sources for performing tasks related to DNA Center.

This collection has been tested and supports Cisco DNA Center 2.2.3.3.

Other versions of this collection have support for previous Cisco DNA Center versions. The recommended versions are listed below on the Compatibility matrix.

Compatibility matrix

Cisco DNA Center version Terraform "dnacenter" provider version
2.1.1 0.0.4
2.2.3.3 0.3.0-beta
2.2.3.3 0.3.0
2.3.3.0 1.0.7-beta

Using the provider

There are two ways to get and use the provider.

  1. Downloading & installing it from registry.terraform.io
  2. Building it from source

From build (For test)

Clone this repository to: $GOPATH/src/github.com/cisco-en-programmability/terraform-provider-dnacenter

$ mkdir -p $GOPATH/src/github.com/cisco-en-programmability/
$ cd $GOPATH/src/github.com/cisco-en-programmability/
$ git clone https://github.com/cisco-en-programmability/terraform-provider-dnacenter.git

Enter the provider directory and build the provider

! NOTE: It is important to check the architecture of your operating system in the file MakeFile

$ cd $GOPATH/src/github.com/cisco-en-programmability/terraform-provider-dnacenter
$ make developtest

If the Makefile values (HOSTNAME, NAMESPACE, NAME, VERSION) were not changed, then the following code could used without changes. Otherwise change the values accordingly.

To use this provider, copy and paste this code into your Terraform configuration. Then, run terraform init.

terraform {
  required_providers {
    dnacenter = {
      source = "hashicorp.com/edu/dnacenter"      version = "1.0.7-beta"    }
  }
}

# Configure provider with your Cisco DNA Center SDK credentials
provider "dnacenter" {
  # Cisco DNA Center user name
  username = "admin"
  # it can be set using the environment variable DNAC_BASE_URL

  # Cisco DNA Center password
  password = "admin123"
  # it can be set using the environment variable DNAC_USERNAME

  # Cisco DNA Center base URL, FQDN or IP
  base_url = "https://172.168.196.2"
  # it can be set using the environment variable DNAC_PASSWORD

  # Boolean to enable debugging
  debug = "false"
  # it can be set using the environment variable DNAC_DEBUG

  # Boolean to enable or disable SSL certificate verification
  ssl_verify = "false"
  # it can be set using the environment variable DNAC_SSL_VERIFY
}

There are several examples of the use of the provider within the folder samples

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.15+ 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
...
$ $GOPATH/bin/terraform-provider-dnacenter
...

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.

$ make testacc

Documentation

In the docs directory you can find the documentation source for this 1.0.7-beta version.

You can find the documentation online for the previously released versions at Terraform Registry - Cisco DNA Center provider.

Contributing

Ongoing development efforts and contributions to this provider are tracked as issues in this repository.

We welcome community contributions to this project. If you find problems, need an enhancement or need a new data-source or resource, please open an issue or create a PR against the Terraform Provider for Cisco DNA Center repository.

Change log

All notable changes to this project will be documented in the CHANGELOG file.

The development team may make additional changes as the library evolves with the Cisco DNA Center.

NOTE: Consider reviewing the Changelog to review the new features of the 1.0.7-beta version.

License

This library is distributed under the license found in the LICENSE file.

terraform-provider-dnacenter's People

Contributors

dependabot[bot] avatar fmunozmiranda avatar jbogarin avatar wastorga avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.