GithubHelp home page GithubHelp logo

kryndex / terraform-provider-ct Goto Github PK

View Code? Open in Web Editor NEW

This project forked from poseidon/terraform-provider-ct

0.0 2.0 0.0 1.72 MB

Terraform provider for Container Linux Configs

License: Apache License 2.0

Makefile 14.53% Go 74.00% HCL 5.25% Shell 6.22%

terraform-provider-ct's Introduction

Terraform Provider for Container Linux Configs

The ct provider provides a ct_config data source that parses a Container Linux Config, validates the content, and renders Ignition. The rendered strings can be used as input to other Terraform resources (e.g. user-data for instances).

Requirements

  • Terraform 0.9.x

Installation

Add the terraform-provider-ct plugin binary on your filesystem.

# dev
go get -u github.com/coreos/terraform-provider-ct

Register the plugin in ~/.terraformrc.

providers {
  ct = "/$GOPATH/bin/terraform-provider-ct"
}

Usage

data "ct_config" "worker" {
  content      = "${file("worker.yaml")}"
  platform     = "ec2"
  pretty_print = false
}

resource "aws_instance" "worker" {
  user_data = "${data.ct_config.worker.rendered}"
}

The optional platform can be "azure", "ec2", "gce", or others to perform platform-specific susbstitutions. By default, platform is "" (none, for bare-metal).

Development

To develop the provider plugin locally, set up Go 1.8+ and a valid GOPATH. Build the plugin locally.

make

Optionally, install the plugin to $(GOPATH)/bin.

make install

Vendor

Add or update dependencies in glide.yaml and vendor. The glide and glide-vc tools vendor and prune dependencies.

make vendor

terraform-provider-ct's People

Contributors

alekssaul avatar bison avatar dghubble avatar dhensen avatar

Watchers

 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.