terraform-provider-coreosbox

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

README

CoreOS Version provider for Terraform

This Terraform provider is for dynamically finding version number and box information for a given IaaS, update channel and version (or current version)

Status

Development/Testing

Currently only supports ami, gce and vagrant box info

Install - Build

go get
go build
go install

With Homebrew

$ brew tap 'samsung-cnct/terraform-provider-coreosbox'
$ brew install terraform-provider-coreosbox

Usage

resource "coreosbox_ami" "current_ami" {
  channel = "alpha"
  virtualization = "hvm"
  region = "us-east-1"
  version = "current"
}

resource "coreosbox_ami" "versioned_ami" {
  channel = "stable"
  virtualization = "hvm"
  region = "us-east-1"
  version = "647.2.0"
}

resource "coreosbox_gce" "current_gce" {
  channel = "alpha"
  version = "current"
}

resource "coreosbox_gce" "versioned_gce" {
  channel = "stable"
  version = "647.2.0"
}

resource "coreosbox_vagrant" "current_vagrant" {
  channel = "alpha"
  version = "current"
  hypervisor = "virtualbox"
}

resource "coreosbox_vagrant" "versioned_vagrant" {
  channel = "stable"
  version = "647.2.0"
  hypervisor = "virtualbox"
}

resource "coreosbox_vagrant" "current_vagrant_vmware" {
  channel = "alpha"
  version = "current"
  hypervisor = "vmware"
}

resource "coreosbox_vagrant" "versioned_vagrant_vmware" {
  channel = "stable"
  version = "647.2.0"
  hypervisor = "vmware"
}

output "info_ami" {
    value = "Version: ${coreosbox_ami.current_ami.version_out}, ami: ${coreosbox_ami.current_ami.box_string}." 
}

output "info_ami_versioned" {
    value = "Version: ${coreosbox_ami.versioned_ami.version_out}, ami: ${coreosbox_ami.versioned_ami.box_string}." 
}

output "info_gce" {
    value = "Version: ${coreosbox_gce.current_gce.version_out}, box: ${coreosbox_gce.current_gce.box_string}." 
}

output "info_gce_versioned" {
    value = "Version: ${coreosbox_gce.versioned_gce.version_out}, box: ${coreosbox_gce.versioned_gce.box_string}." 
}

output "info_vagrant" {
    value = "Version: ${coreosbox_vagrant.current_vagrant.version_out}, box: ${coreosbox_vagrant.current_vagrant.box_string}." 
}

output "info_vagrant_versioned" {
    value = "Version: ${coreosbox_vagrant.versioned_vagrant.version_out}, box: ${coreosbox_vagrant.versioned_vagrant.box_string}." 
}

output "info_vmware" {
    value = "Version: ${coreosbox_vagrant.current_vagrant_vmware.version_out}, box: ${coreosbox_vagrant.current_vagrant_vmware.box_string}." 
}

output "info_vmware_versioned" {
    value = "Version: ${coreosbox_vagrant.versioned_vagrant_vmware.version_out}, box: ${coreosbox_vagrant.versioned_vagrant_vmware.box_string}." 
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL