Giter VIP home page Giter VIP logo

terraform-provisioner-clc_exec's Introduction

terraform-provisioner-clc_exec

A Terraform provisioner for CenturyLinkCloud (CLC) packages.

Installation

  1. Download the plugin from the releases tab - https://github.com/fatmcgav/terraform-provisioner-clc_exec/releases/download/0.0.1/terraform-provisioner-clc_exec-0.0.1.tar.gz
  2. Extract it somewhere on your PATH or note the full path to the binary.
  3. Create or modify your ~/.terraformrc file. You will need to add the clc_exec path within the provisioner section. E.g:
provisioners {
    clc_exec = "~/path/to/terraform-provisioner-clc_exec"
}

Quick start

In order to execute a CLC package, you need to know the Package UUID, and any parameters that the package requires.

  provisioner "clc_exec" {
    username = "[clc username]"
    password = "[clc password]"
    account = "[clc account alias]"
    package = "[clc pacakge uuid]"
    parameters = {
      "parameter1" = "value"
      "parameter2" = "value2"
    }
  }

Usage

Provisioner Configuration

clc_exec

Executes a CLC package as part of the resource provisioning process.

TODO: Add table of params

Known Issues

Currently it's necessary to provider the CLC authentication details to the provisioner in addition to the provider.

Contribution

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

terraform-provisioner-clc_exec's People

Contributors

fatmcgav avatar

Watchers

 avatar  avatar

Forkers

weareact

terraform-provisioner-clc_exec's Issues

No field or method error?!

For some reason, I've started getting the following errors...

go test -v .

github.com/fatmcgav/terraform-provisioner-clc_exec

./resource_provisioner.go:85: pkg_resp.IsQueued undefined (type []_status.QueuedResponse has no field or method IsQueued)
./resource_provisioner.go:90: pkg_resp.GetStatusID undefined (type []_status.QueuedResponse has no field or method GetStatusID)

@ack Any chance you could take a quick look?

This is the initial stab at a clc_exec provisioner, and I was making good progress until I tried to plumb the latest version of clc-sdk in...

It's almost like I've got a cached version of the clc-sdk somewhere, but I can't work out where... Might just be cus I'm a novice Go'er... :)

Any pointers?

Cheers
Gav

Pull auth credentials from Env vars

It would be beneficial to be able to pull authentication credentials from environment variables in the same way that the CLC provider can.

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.