Skip to content

Commit

Permalink
Merge pull request #2 from arvancloud/add-wait-for-abrak
Browse files Browse the repository at this point in the history
Add wait for abrak
  • Loading branch information
AlirezaKm authored Apr 21, 2022
2 parents 579f07b + 98d364c commit 2112eae
Show file tree
Hide file tree
Showing 35 changed files with 214 additions and 92 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.5.1
VERSION=0.6.0

HOSTNAME=arvancloud.com
NAMESPACE=terraform
Expand All @@ -17,6 +17,7 @@ default: install

build:
mkdir -p $(BINARY_PATH)
go mod tidy
go build -o $(BINARY_PATH)/$(BINARY)

release:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0" # put the version here
version = "0.6.0" # put the version here
}
}
}
Expand All @@ -46,7 +46,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/actions/add-public-ip/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/actions/change-ip/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/actions/hard-reboot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/actions/rescue/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/actions/reset-password/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/actions/shutdown/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/actions/soft-reboot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/actions/turnon/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/actions/unrescue/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/change-disk-size/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/change-flavor/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/floatip/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/ptr/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/rebuild/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/rename/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/snapshot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/tag-attach-detach/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/tag-replace-batch/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/abrak/tag/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/datasources/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions examples/iaas/security-groups/assign-security-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand All @@ -14,7 +14,7 @@ variable "ApiKey" {

variable "abrak-name" {
type = string
default = "terraform-add-security-group"
default = "terraform-assign-security-group"
}

variable "region" {
Expand Down Expand Up @@ -44,7 +44,7 @@ resource "arvan_iaas_security_group" "security-group-1" {
description = "a description"
}

resource "arvan_iaas_abrak_add_security_group" "abrak-security-group" {
resource "arvan_iaas_abrak_assign_security_group" "abrak-security-group" {

depends_on = [
arvan_iaas_abrak.abrak-1,
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/security-groups/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/iaas/volume/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
arvan = {
source = "arvancloud.com/terraform/arvan"
version = "0.5.0"
version = "0.6.0"
}
}
}
Expand Down
15 changes: 9 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,29 @@ module github.com/arvancloud/terraform-provider-arvan

go 1.18

require (
github.com/hashicorp/go-uuid v1.0.2
github.com/hashicorp/terraform-plugin-sdk/v2 v2.13.0
)
require github.com/hashicorp/terraform-plugin-sdk/v2 v2.13.0

require (
github.com/agext/levenshtein v1.2.2 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.2.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.3 // indirect
github.com/hashicorp/go-uuid v1.0.2 // indirect
github.com/hashicorp/go-version v1.4.0 // indirect
github.com/hashicorp/hc-install v0.3.1 // indirect
github.com/hashicorp/hcl/v2 v2.11.1 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.16.0 // indirect
github.com/hashicorp/terraform-json v0.13.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.8.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.3.0 // indirect
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 // indirect
Expand All @@ -38,8 +42,7 @@ require (
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/tagparser v0.1.1 // indirect
github.com/zclconf/go-cty v1.10.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 // indirect
golang.org/x/text v0.3.5 // indirect
Expand Down
Loading

0 comments on commit 2112eae

Please sign in to comment.