vagrant-terraform 0.1.15 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 521be5e29b0d8f4f9721993c9eb9bdc4f1c24c13f49dbb7e908ff073eb64582b
|
4
|
+
data.tar.gz: fa899ca576f224bd3848d4dc4f30d1fdf25dbdbd197456d8af01a669b8037570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 942d98722ba684c0ef7e3e6b9142f131f5062eaee220735d085b9aedf677c90234c0d92914eab3e40a60f1f29500d655549df11d28f6413b2504a42d920d5132
|
7
|
+
data.tar.gz: 9318d6692fd8b1532cf3418db29dfea4932c27caa7b45bd0b931021cb6e4585868e1d162ca8fee6a28f4e18d168ea7f56cbc1cde1bb52850ae135341fe1099c8
|
@@ -48,7 +48,7 @@ resource "proxmox_vm_qemu" "#{vmname.gsub(/\./, '-')}" {
|
|
48
48
|
desc = "#{config.description}"
|
49
49
|
vm_state = "stopped"
|
50
50
|
clone = "#{config.template}"
|
51
|
-
full_clone =
|
51
|
+
full_clone = #{config.full_clone}
|
52
52
|
cores = #{config.cpu_cores.to_i}
|
53
53
|
cpu_type = "#{config.cpu_type}"
|
54
54
|
memory = #{Filesize.from("#{config.memory_size} B").to_f('MB').to_i}
|
@@ -70,6 +70,7 @@ resource "proxmox_vm_qemu" "#{vmname.gsub(/\./, '-')}" {
|
|
70
70
|
disk {
|
71
71
|
storage = "#{config.storage_domain}"
|
72
72
|
size = "#{Filesize.from("#{config.disk_size} B").to_f('GB').to_i}G"
|
73
|
+
format = "#{config.full_clone ? "raw" : "qcow2"}"
|
73
74
|
}
|
74
75
|
}
|
75
76
|
}
|
@@ -101,8 +102,7 @@ terraform {
|
|
101
102
|
required_providers {
|
102
103
|
proxmox = {
|
103
104
|
source = "telmate/proxmox"
|
104
|
-
version = "3.0.
|
105
|
-
#version = ">= 3.0.1-rc3"
|
105
|
+
version = "3.0.2-rc04"
|
106
106
|
}
|
107
107
|
}
|
108
108
|
}
|
@@ -47,15 +47,13 @@ module VagrantPlugins
|
|
47
47
|
|
48
48
|
attributes = instances.first["attributes"]
|
49
49
|
return :not_created if attributes.nil?
|
50
|
+
return :not_created if attributes["vm_state"].nil?
|
50
51
|
|
51
52
|
ip_addr = attributes["default_ipv4_address"]
|
52
53
|
unless ip_addr.nil?
|
53
54
|
env[:ip_address] = ip_addr
|
54
55
|
end
|
55
56
|
|
56
|
-
if attributes["vm_state"].nil?
|
57
|
-
return :not_created
|
58
|
-
end
|
59
57
|
return attributes["vm_state"].to_sym
|
60
58
|
else
|
61
59
|
return :not_created
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-terraform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mika Båtsman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: filesize
|