Giter Site home page Giter Site logo

terraform-scc's Introduction

Terraform SCC plugin

Provides a provider that registers products at SCC and a provisioner that sets up zypper services.

Minimal example

resource "scc_system" "my_sles_server" {
  regserver = "https://scc.suse.com"
  regcode = "my-awesome-regcode"
  
  # The list of products to be activated
  products = [
    {
      identifier = "SLES"
      version = "12.3"
      arch = "x86_64"
    },
  ]
}

resource "null_resource" "test_resource" {
  # A host you can access over SSH
  connection {
    host = "example.org"
  }

  # A provisioner that sets up zypper services on the machine
  provisioner "scc" {
    login    = "${scc_system.my_sles_server.login}"
    password = "${scc_system.my_sles_server.password}"
    
    products = [
      "${scc_system.my_sles_server.products[0]}",
    ]
  }
}

Building

  1. Set up $GOPATH
  2. Install the dependencies: glide install
  3. Run make

Caveats

  1. Doesn't (yet) install product release RPM package for the extension products
  2. Doesn't supply any host information (such as hostname) during registration
  3. There seems to be an issue in Terraform when it comes to interpolating complex data structures (such as list of maps):

This is why the provisioner receives one product at a time, in the ideal world should be as easy as products = "${scc_system.my_sles_server.products}".

terraform-scc's People

Contributors

ikapelyukhin avatar

Watchers

 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.