summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge remote-tracking branches 'origin/network_improvs' and ↵for-govuk-mini-environment-adminChristopher Baines2018-04-08
|\ | | | | | | 'cbaines-github/support-readonly-disks' into for-govuk-mini-environment-admin
| * Add support for readonly disksChristopher Baines2018-04-08
| |
* | More configuration options for networksAlvaro Saurin2018-03-14
|/
* Fix broken tests due to incorrect usage of t.Skip()Jonathan Ballet2018-03-05
| | | | | | | | | | | Current tests were broken with the following error: # github.com/dmacvicar/terraform-provider-libvirt/libvirt libvirt/resource_libvirt_domain_test.go:874: Skip call has possible formatting directive %s libvirt/resource_libvirt_domain_test.go:882: Skip call has possible formatting directive %s FAIL github.com/dmacvicar/terraform-provider-libvirt/libvirt [build failed] t.Skip with formatting should be t.Skipf()
* Merge branch 'keyless-kernel-cmdlines'Flavio Castelli2018-02-20
|\
| * Handle keyword-less kernel paramsFlavio Castelli2018-02-20
| | | | | | | | | | | | | | | | Allow kernel params that don't have a key/value structure to be handled. Also allow params with nested equal signs, like `root=UUID=aa52d618-a2c4-4aad-aeb7-68d9e3a2c91d` Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* | Handle keyword-less kernel paramsFlavio Castelli2018-02-20
|/ | | | | | Allow kernel params that don't have a key/value structure to be handled. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* Add make target to run acceptance testsFlavio Castelli2018-02-19
|
* Update to use latest release of terraform (0.11.3)Flavio Castelli2018-02-19
|
* Fix broken tests on TravisFlavio Castelli2018-02-19
| | | | | Some tests on travis are failing because there's no libvirt daemon running. Marking these tests as acceptance tests.
* Make the tests less noisyFlavio Castelli2018-02-19
| | | | | The TestWaitForSuccessBrokenFunction generated lots of useless noise, this commit silences it.
* Fix apt directive for travisFlavio Castelli2018-02-19
|
* Travis: ensure libvirt development headers are installedFlavio Castelli2018-02-19
|
* Travis: fix errorFlavio Castelli2018-02-19
| | | | Fix linting error, ensure tests are actually run
* Ensure libvirt connection is releasedFlavio Castelli2018-02-19
| | | | | | | | Deallocate the libvirt connect object before exit. Fixes issue #266 Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* travis: do not run acceptance testsFlavio Castelli2018-02-19
| | | | | | | | Acceptance test have to be run inside of lxd, which is not working right now on travis. Let's fall back to regular tests until we have a better jenkins based infra.
* sort importsThomas Hipp2018-02-19
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* remove dead/unreachable codeThomas Hipp2018-02-19
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* refactor cloudinitThomas Hipp2018-02-19
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* refactor resourceLibvirtDomainCreateThomas Hipp2018-02-19
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* refactor schemasThomas Hipp2018-02-19
| | | | | | | | * use boolean where it makes sense * do not use schema.TypeMap, but schema.TypeList with MaxItems=1 * do not split domain schema Signed-off-by: Thomas Hipp <thipp@suse.de>
* fix difference detection when using an existing bridge networkmluu2018-01-14
| | | | | | | | | | | | | | | given the terraform: ```json resource "libvirt_domain" "myvm" { network_interface { bridge = "some-bridge" network_name = "existing-bridge-network" } } ``` `terraform plan` would always think it needs to re-apply the domain
* Update README's requirement sectionFlavio Castelli2018-01-14
| | | | | | Add `mkisofs` to the list of requirements Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* Modify cloudinit to use 'mkisofs' instead of 'genisoimage'.night199uk2018-01-14
| | | | | genisoimage was debian's fork of mkisofs so the two are compatible, but mkisofs is available on more OS' (e.g. macOS via brew).
* fix network linkeAndrew Paxson2018-01-14
|
* add an example for ubuntuAndrew Paxson2018-01-14
| | | The Serial Console bug on ubuntu can be tough to find for people not used to the setup this example is just a nice example of creating a simple ubuntu instance from cloud images and passing in the ssh key.
* spelling....Andrew Paxson2018-01-14
|
* fix markdown spellingAndrew Paxson2018-01-14
|
* add the website docs to the README for visibilityAndrew Paxson2018-01-14
| | | because the terraform website docs are not live lets put them on the front page.
* Merge pull request #264 from monstermunchkin/issues/262Thomas Hipp2017-12-28
|\ | | | | domain: honor arch, machine, and emulator settings
| * domain: honor arch, machine, and emulator settingsThomas Hipp2017-12-22
|/ | | | | | | | | | The settings 'arch', 'machine', and 'emulator' should be honored. The default values have been removed. Instead, if not provided, the values are determined by consulting libvirt directly. This fixes #262. Signed-off-by: Thomas Hipp <thipp@suse.de>
* Add new method to get information on domain interfacesEamonn O'Toole2017-12-14
| | | | | | | | | | | | | | | | | | | We've found that, when executing destroy/create cycles on a domain where the virtual network(s) to which it is attached are persisted across these cycles then we get network failures on recreation of the domain since the old entries for the domain are still present in the virtual network(s). This issue should (hopefully) be fixed by commit a20d2a92668b2d5e077267c50074bf853ef371d. We've also found that, on occasion, we don't get complete information on a domain's interfaces from ListAllInterfaceAddresses. This patch implements a new method getDomainInterfacesFromNetworks which is called from domainGetIfacesInfo after the qemu agent method has been used if the qemu agent method doesn't return any information. This new method builds the interface information from information collected from the networks themselves. Change-Id: I5271ee191db93b2b1a0f14dc226d0b945f77a901
* Merge pull request #258 from monstermunchkin/support-cdromsThomas Hipp2017-12-08
|\ | | | | support local cdroms
| * support local cdromsThomas Hipp2017-12-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Local cdroms can now be added directly to the domain. See the following example: ```hcl resource "libvirt_domain" "test-domain" { name = "test" disk { file = "path/to/file.iso" } } ``` Furthermore, a small Tiny Core Linux (TCL) ISO image has been added to the testdata. This can be used for testing purposes. Signed-off-by: Thomas Hipp <thipp@suse.de>
* | Merge pull request #256 from monstermunchkin/unique-volume-nameThomas Hipp2017-12-08
|\ \ | | | | | | check uniqueness of storage volume name
| * | check uniqueness of storage volume nameThomas Hipp2017-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | The storage volume name needs to be unique. If this is not the case, the storage volume will be overwritten which is not problematic itself. However, `terraform destroy` will fail since it will try and delete the same storage volume twice. Signed-off-by: Thomas Hipp <thipp@suse.de>
* | | Merge pull request #221 from simonswine/fixes-net-updatesThomas Hipp2017-12-08
|\ \ \ | |_|/ |/| | Make add/updateHost a bit more resilient
| * | Make add/updateHost a bit more resilientChristian Simon2017-12-02
|/ / | | | | | | | | * provide a updateOrAddHost method that first will try to update an existing one, before adding a host entry
* | Merge pull request #255 from MalloZup/remove-runningThomas Hipp2017-11-30
|\ \ | |/ |/| remove running property in net and domain
| * remove running from documentationDario Maiocchi2017-11-28
| |
| * remove running property in net and domainDario Maiocchi2017-11-28
| |
* | Merge pull request #253 from monstermunchkin/test-formattingThomas Hipp2017-11-28
|\ \ | |/ |/| tests: format hcl strings
| * tests: format hcl stringsThomas Hipp2017-11-27
|/ | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* Simplify the wait_for_leases mechanismAlvaro Saurin2017-11-27
|
* Retry the query about interfaces to the qemu-agentAlvaro Saurin2017-11-27
|
* adding documentation about network autostartDario Maiocchi2017-11-27
|
* add test for autostart optionDario Maiocchi2017-11-27
|
* Init first backportDario Maiocchi2017-11-27
|
* Merge pull request #242 from dmacvicar/kernel_initrdDuncan Mac-Vicar P2017-11-27
|\ | | | | Add support for kernel/initrd/cmdline options
| * TypoDuncan Mac-Vicar P2017-11-24
| |