summaryrefslogtreecommitdiff
path: root/libvirt/cloudinit_def.go
Commit message (Collapse)AuthorAge
* refactor cloudinitThomas Hipp2018-02-19
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* 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).
* use poolMutexKV for locking resources.Dario Maiocchi2017-11-22
|
* init govet on travisDario Maiocchi2017-11-22
|
* golint on resource_libvirt_domain_test.goDario Maiocchi2017-11-16
| | | | Use correct names in comments
* golinting on various filesDario Maiocchi2017-11-16
|
* fix golint on cloudinit_def.goDario Maiocchi2017-11-16
|
* comment on exported function should Start withDario Maiocchi2017-11-16
| | | | name of the function
* use libvirt-go-xml for volumesThomas Hipp2017-08-11
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* cloudinit: show user_data in .tfstate fileThomas Hipp2017-08-08
| | | | | | This fixes #135. Signed-off-by: Thomas Hipp <thipp@suse.de>
* use official libvirt-go bindingsThomas Hipp2017-06-16
| | | | Signed-off-by: Thomas Hipp <thipp@suse.de>
* DRY codeFlavio Castelli2017-05-27
| | | | | | | Provide a generic function to return a copier to be used with `img.Import`. This reduces code duplication. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* Use If-Modified-Since for downloading imagesAlvaro Saurin2017-03-29
|
* Code refactoring: rename structFlavio Castelli2017-03-29
|
* cloud-init: rework user-data handlingFlavio Castelli2017-03-29
| | | | | | | | Merge the user data specified by explicit terraform directives into the raw data provided by the user. The raw data has priority over the values specified using older directives. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* user_data argument for cloud-initAlvaro Saurin2017-03-29
|
* Fix random issues when handling multiple cloudinit volumesFlavio Castelli2016-10-10
| | | | | | | | | | | | | | Sometimes the libvirt provider fails with cryptic messages when multiple cloudinit volumes are being used. libvirtd contains several messages like `internal error: pool has asynchronous jobs running`. This seems to be caused by invoking `pool.Refresh()` while a volume is being uploaded. This commit introduces a new structure that can be used to synchronize operations involving storage pools. From my testing this solves the issues we have experiences so far.
* Make the hostname field of cloudinit optionalFlavio Castelli2016-10-08
| | | | This fixes issue #64
* Make cloudinit generation more resilentFlavio Castelli2016-09-08
| | | | | | Invoke the external `genisofs` program in a safer way. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* fixed cloud-init iso creation with type qcow2 instead rawJose David Martin Nieto2016-08-09
|
* Fix build issueFlavio Castelli2016-06-29
| | | | Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* cloudinit: change the ID used internall by TerraformFlavio Castelli2016-06-27
| | | | | | | | | | Previously the ID was equal to the volume key, hence it was just the path to the ISO file. This caused confusion when a cloudinit resource was regenerated because the key didn't change at all. The new ID is made from the volume key joined with a UUID. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* Associate a cloud-init with a domainFlavio Castelli2016-06-27
Allow the usage of a cloud-init ISO with a Domain. Signed-off-by: Flavio Castelli <fcastelli@suse.com>