Giter VIP home page Giter VIP logo

terraform-provider-rancher2's Introduction

Terraform Provider for Rancher v2

Features WIP

Implemented resources

  • Auth Config providers
    • ActiveDirectory
    • ADFS
    • AzureAD
    • Github
    • FreeIpa
    • OpenLdap
    • Ping
  • Bootstrap Rancher system
  • Catalogs
  • Clusters
    • Amazon EKS
    • Azure AKS
    • Google GKE
    • Imported
    • RKE
      • Cloud providers adding node pools
      • Custom
  • Clusters & Projects logging
    • Elasticsearch
    • Fluentd
    • Kafka
    • Splunk
    • Syslog
  • Clusters & Projects Role Template Bindings
  • Namespaces
    • Resource quota limits (Rancher v2.1.x or higher )
  • Node Driver
  • Node Pools
  • Node Templates
    • Amazon EC2
    • Azure
    • Digitalocean
  • Projects
    • Resource quota limits (Rancher v2.1.x or higher )
  • Settings

Requirements

Using the provider

  • Build or download rancher2 provider binary from relases
  • Copy rancher2 provider binary to same folder as terraform binary.
  • Create tf file and use it.
$ terraform init
$ terraform plan
$ terraform apply

Building The Provider

Clone this repository and run make:

$ git clone [email protected]:rancher/terraform-provider-rancher2
$ cd terraform-provider-rancher2
  • Building Linux binary. Released at bin/ folder
$ make
  • Building linux, osx and windoes binaries. Released at build/bin/ folder
$ CROSS=1 make

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.8+ 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. This will build the provider and put the provider binary in bin/terraform-provider-rancher2 .

To compile binary on repo path and test on terraform:

$ make
$ terraform init
$ terraform plan
$ terraform apply

Managing vendor dependencies

Go vendor dependencies are managed with Trash and vendor.conf file.

To update vendor dependencies, edit vendor.conf file and execute trash

$ trash

Acceptance tests

For execute acceptance tests, a running rancher HA system and a rancher API key are needed.

To run acceptance tests, export RANCHER_URL with rancher url and RANCHER_TOKEN_KEY with bearer token or RANCHER_ACCESS_KEY with rancher acces key and RANCHER_SECRET_KEY with rancher secret key and execute

$ export RANCHER_URL=<URL>
$ export RANCHER_TOKEN_KEY=<TOKEN>
$ scripts/testacc

terraform-provider-rancher2's People

Contributors

rawmind0 avatar cloudnautique avatar oats87 avatar

Watchers

James Cloos avatar Bill Hood avatar  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.