Giter Club home page Giter Club logo

terraform-provider-yodeck's Introduction



Terraform provider for Yodeck digital signage 

Using the provider:

00-provider.tf
variable "yodeck_username" {
  type    = "string"
  default = "[email protected]"
}

variable "yodeck_apikey" {
  type    = "string"
  default = "MyKEY"
}

provider "yodeck" {
  username = "${var.yodeck_username}"
  apikey   = "${var.yodeck_apikey}"
}

variable "wifi_ssid" {
  type    = "string"
  default = "mywifi"
}

variable "wifi_key" {
  type    = "string"
  default = "connectMe"
}

variable "wifi_mode" {
  type    = "string"
  default = "WEP"
}
workspace.tf
resource "yodeck_workspace" "floor" {
  name        = "Floor workspace"
  description = "Workspace for All Floor"
}
webpage.tf
resource "yodeck_webpage" "home" {
  name        = "home"
  url         = "https://dashboard.domain.gtd/dashboard/home/index.html"
  description = ""
  duration    = 60
  workspace   = "${yodeck_workspace.floor.id}"
}

resource "yodeck_webpage" "admin-home" {
  name        = "home"
  url         = "https://dashboard.domain.gtd/dashboard/admin-home/index.html"
  description = ""
  duration    = 60
  workspace   = "${yodeck_workspace.floor.id}"
}
playlist.tf
resource "yodeck_playlist" "floor" {
  name        = "floor default"
  description = ""
  workspace   = "${yodeck_workspace.floor.id}"

  media {
    media    = "${yodeck_webpage.home.id}"
    duration = "${yodeck_webpage.home.duration}"
  }

  media {
    media    = "${yodeck_webpage.admin-home.id}"
    duration = "${yodeck_webpage.admin-home.duration}"
  }
}
show.tf
resource "yodeck_show" "floor" {
  name      = "Show for floor"
  workspace = "${yodeck_workspace.floor.id}"

  regions {
    top                 = 0
    left                = 0
    height              = 1080
    width               = 1920
    fit                 = "stretch"
    enable_transparency = false
    is_muted            = true
    res_width           = 1920
    res_height          = 1080
    background_audio    = false
    zindex              = 0

    playlists {
      playlist = "${yodeck_playlist.floor.id}"
      duration = 0
      order    = 0
    }
  }
}
device.tf
resource "yodeck_device" "monitor-1" {
    name      = "Monitor 1"
    workspace = "${yodeck_workspace.floor.id}"

    default_show = "${yodeck_show.floor.id}"
    wifi_ssid    = "${var.wifi_ssid}"
    wifi_key     = "${var.wifi_key}"
    wifi_mode    = "${var.wifi_mode}"
}
terraform plan
terraform apply

terraform-provider-yodeck's People

Watchers

James Cloos avatar Laurent RICHARD 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.