diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml deleted file mode 100644 index 3e5b31626..000000000 --- a/.github/auto-label.yaml +++ /dev/null @@ -1,10 +0,0 @@ -requestsize: - enabled: true -language: - pullrequest: true -staleness: - pullrequest: true -path: - pullrequest: true - paths: - docs: 'documentation' diff --git a/example/resource_virtual_environment_vm.tf b/example/resource_virtual_environment_vm.tf index 339fdd70e..abc9e0096 100644 --- a/example/resource_virtual_environment_vm.tf +++ b/example/resource_virtual_environment_vm.tf @@ -101,11 +101,13 @@ resource "proxmox_virtual_environment_vm" "example" { ] } - initialization { - dns { - server = "8.8.8.8" - } - } +# While overwriting the initialization block when cloning a template is possible, it is not recommended. +# This will cause the coned VM to be reinitialized each time on re-apply. +# initialization { +# dns { +# server = "8.8.8.8" +# } +# } } diff --git a/proxmoxtf/config.go b/proxmoxtf/config.go index 6aec2b76d..109ec70ce 100644 --- a/proxmoxtf/config.go +++ b/proxmoxtf/config.go @@ -4,12 +4,6 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - */ - package proxmoxtf import ( diff --git a/proxmoxtf/resource/firewall/rules.go b/proxmoxtf/resource/firewall/rules.go index 9deb7bcd2..db8a91b62 100644 --- a/proxmoxtf/resource/firewall/rules.go +++ b/proxmoxtf/resource/firewall/rules.go @@ -389,6 +389,7 @@ func mapToBaseRule(rule map[string]interface{}) *firewall.BaseRule { return baseRule } + func mapToSecurityGroupBaseRule(rule map[string]interface{}) *firewall.BaseRule { baseRule := &firewall.BaseRule{} @@ -440,6 +441,7 @@ func baseRuleToMap(baseRule *firewall.BaseRule, rule map[string]interface{}) { rule[mkRuleSPort] = *baseRule.SPort } } + func securityGroupBaseRuleToMap(baseRule *firewall.BaseRule, rule map[string]interface{}) { if baseRule.Comment != nil { rule[mkRuleComment] = *baseRule.Comment diff --git a/proxmoxtf/resource/validator/firewall.go b/proxmoxtf/resource/validator/firewall.go index e186f699c..251ea4d88 100644 --- a/proxmoxtf/resource/validator/firewall.go +++ b/proxmoxtf/resource/validator/firewall.go @@ -24,6 +24,7 @@ func FirewallRate() schema.SchemaValidateDiagFunc { "Must be a valid rate expression, e.g. '1/second'", )) } + func FirewallIFace() schema.SchemaValidateDiagFunc { return validation.ToDiagFunc(validation.StringMatch( ifaceExpression,