Patrick Dillon 800239a021 Move libvirt folder from test to hack. há 5 anos atrás
..
README.md 800239a021 Move libvirt folder from test to hack. há 5 anos atrás
main.tf 800239a021 Move libvirt folder from test to hack. há 5 anos atrás
meta-data.tpl 800239a021 Move libvirt folder from test to hack. há 5 anos atrás
user-data.tpl 800239a021 Move libvirt folder from test to hack. há 5 anos atrás
variables.tf 800239a021 Move libvirt folder from test to hack. há 5 anos atrás

README.md

Bootstrap Module

This Terraform module manages libvirt resources only needed during cluster bootstrapping. It uses implicit provider inheritance to access the libvirt provider.

Example

Set up a main.tf with:

provider "libvirt" {
  uri = "qemu:///system"
}

resource "libvirt_network" "example" {
  name   = "example"
  mode   = "none"
  domain = "example.com"
  addresses = ["192.168.0.0/24"]
}

resource "libvirt_volume" "example" {
  name   = "example"
  source = "file:///path/to/example.qcow2"
}

module "bootstrap" {
  source = "github.com/openshift/installer//data/data/libvirt/bootstrap"

  addresses      = ["192.168.0.1"]
  base_volume_id = "${libvirt_volume.example.id}"
  cluster_name   = "my-cluster"
  ignition       = "{\"ignition\": {\"version\": \"2.2.0\"}}",
  network_id     = "${libvirt_network.example.id}"
}

Then run:

$ terraform init
$ terraform plan