terraform-provider-chronos

command module
v0.0.0-...-e58a0d4 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

README

Chronos Terraform Provider

Install

$ go get 

Usage

Provider Configuration

Use a tfvar file or set the ENV variable

$ export TF_VAR_chronos_url="http://chronos.domain.tld:4040"
variable "chronos_url" {}

provider "chronos" {
  url = "${var.chronos_url}"
}
$ export TF_VAR_chronos_url="https://chronos.domain.tld:8443"
$ export TF_VAR_chronos_debug="true"
$ export TF_VAR_chronos_timeout="5"

variable "chronos_url" {}
variable "chronos_debug" {}
variable "chronos_timeout" {}

provider "chronos" {
  url = "${var.chronos_url}"
  debug = "${var.chronos_debug}"
  request_timeout = "${var.chronos_timeout}"
}
Basic Usage
resource "chronos_job" "hello-world" {
  name = "Hello World"
  command = "echo Hello World"
  owner = "mail@address.tld"
  owner_name = "firstname surname"
  description = "simple example who display Hello World"
  schedule = "R/2014-03-08T20:00:00.000Z/PT2H"
  schedule_timezone = "GMT"
}
Docker Usage
resource "chronos_job" "docker-hello-world" {
  name = "Hello Docker"
  command = "echo Hello Docker"
  owner = "mail@address.tld"
  owner_name = "firstname surname"
  description = "simple example who display Hello Docker"
  container = {
  	type = "DOCKER"
  	image = "debian:jessie"
  	network = "HOST"
  }
  schedule = "R/2014-03-08T20:00:00.000Z/PT2H"
  schedule_timezone = "GMT"
}

Development

Build
$ go install
Test
$ export CHRONOS_URL="http://chronos.domain.tld:8080"
$ ./test.sh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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