added new config resource, edited .gitignore

This commit is contained in:
Max K 2019-04-12 17:57:49 +03:00
parent 471658bd10
commit b38b0f17b1
2 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
.idea
*~*
*.bak

View File

@ -47,6 +47,11 @@ func resourceVmQemu() *schema.Resource {
Optional: true,
Default: true,
},
"agent": {
Type: schema.TypeString,
Optional: true,
Default: "1",
},
"iso": {
Type: schema.TypeString,
Optional: true,
@ -348,6 +353,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
Name: vmName,
Description: d.Get("desc").(string),
Onboot: d.Get("onboot").(bool),
Agent: d.Get("agent").(string),
Memory: d.Get("memory").(int),
QemuCores: d.Get("cores").(int),
QemuSockets: d.Get("sockets").(int),