diff options
author | Eamonn O'Toole <eamonn.otoole@hpe.com> | 2017-01-20 15:28:40 +0000 |
---|---|---|
committer | Eamonn O'Toole <eamonn.otoole@hpe.com> | 2017-02-14 16:28:39 +0000 |
commit | 252e13d203ee85accc04758dec7196c726b715ab (patch) | |
tree | d83eaee62297784a79e7ccd423bef2d0184502ce /libvirt/provider_test.go | |
parent | ea96b6696d29713639d9f167e1d38616bcd5f753 (diff) | |
download | terraform-provider-libvirt-252e13d203ee85accc04758dec7196c726b715ab.tar terraform-provider-libvirt-252e13d203ee85accc04758dec7196c726b715ab.tar.gz |
Ignition support: first phase
A few changes here:
1. CoreOS Ignition support: A CoreOS Ignition file can be
specified for a domain using the "coreos_ignition"
parameter. Alternatively the "coreos_ignition" parameter
can be set equal to a Terraform ignition object. If the
latter, the ignition object is written to a file in /tmp
whose name is a hash of the object itself. This file-name
is stored in libvirt domain metadata, and is removed when
the domain is destroyed. This feature requires the emission
of qemu:commandline XML XML and also the setting of the XML
name-space to "http://libvirt.org/schemas/domain/qemu/1.0"
2. "graphics" block: A "graphics" block can be specified
in a domain definition. We've added this because we've
found that for some builds of qemu the default "spice"
emulator doesn't work and results in failure to boot the
VMs.
3. "console" block: One or more "console" blocks can be
specified in a domain definition. Note the description
in domain.html.markdown, and the information in
https://libvirt.org/formatdomain.html#elementsConsole
Added a test for coreos_ignition in resource_libvirt_domain_test.go
Diffstat (limited to 'libvirt/provider_test.go')
-rw-r--r-- | libvirt/provider_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvirt/provider_test.go b/libvirt/provider_test.go index 662b1185..c130f86b 100644 --- a/libvirt/provider_test.go +++ b/libvirt/provider_test.go @@ -6,6 +6,7 @@ import ( "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/terraform" + ignition "github.com/hashicorp/terraform/builtin/providers/ignition" ) var testAccProviders map[string]terraform.ResourceProvider @@ -15,6 +16,7 @@ func init() { testAccProvider = Provider().(*schema.Provider) testAccProviders = map[string]terraform.ResourceProvider{ "libvirt": testAccProvider, + "ignition": ignition.Provider(), } } |