diff --git a/flake.nix b/flake.nix index 1306143b..d588ac57 100644 --- a/flake.nix +++ b/flake.nix @@ -175,7 +175,6 @@ inputs'.threefold-rfs.packages.default - pkgs.opentofu pkgs.jq ] ++ ( diff --git a/tf/.terraform.lock.hcl b/tf/.terraform.lock.hcl deleted file mode 100644 index 2468f5c7..00000000 --- a/tf/.terraform.lock.hcl +++ /dev/null @@ -1,50 +0,0 @@ -# This file is maintained automatically by "tofu init". -# Manual edits may be lost in future updates. - -provider "registry.opentofu.org/carlpett/sops" { - version = "0.7.2" - constraints = "~> 0.5" - hashes = [ - "h1:3Bw0Dms7NNi0bgH9kdWcSapc9hBKQy9yFMwdxivR83c=", - "zh:43f218054ea3a72c9756bf989aeebb9d0f23b66fd08e9fb4ae75d4f921295e82", - "zh:57fd326388042a6b7ecd60f740f81e5ef931546c4f068f054e7df34acf65d190", - "zh:87b970db8c137f4c2fcbff7a5705419a0aea9268ae0ac94f1ec5b978e42ab0d2", - "zh:9e3b67b89ac919f01731eb0466baa08ce0721e6cf962fe6752e7cc526ac0cba0", - "zh:c028f67ef330be0d15ce4d7ac7649a2e07a98ed3003fca52e0c72338b5f481f8", - "zh:c29362e36a44480d0d9cb7d90d1efba63fe7e0e94706b2a07884bc067c46cbc7", - "zh:d5bcfa836244718a1d564aa96eb7d733b4d361b6ecb961f7c5bcd0cadb1dfd05", - ] -} - -provider "registry.opentofu.org/hashicorp/random" { - version = "3.6.0" - hashes = [ - "h1:FO1uXAZ3l/kAHovHpmg/IoCGi7WMRso7G9ffLfyMnNs=", - "zh:486a1c921eab5c51a480f2eb0ad85173f207c9b7bb215f3893e58bc38d3b7c75", - "zh:6901b3afa4607d1e31934ba91ed2625215ada42b3518c3a9adeeac7a5f656dc3", - "zh:7e93752c9de710e417191353ad1a41b5a60432ab7ef4f8b556bf248297ec5e23", - "zh:c795d3d319e8ee7be972746b935963b7e772a6a14080261a35c03915c1f9ccb2", - "zh:cd4f8bcaf332828d1736c73874549c25e427737f136173c7b61e2df3db50e5d9", - "zh:e0103eb2e280989c3d9ffda5d6b413e8f583be21bc1d5754c6e9ca87ecc1c44a", - "zh:f4fbec2510322d5b7ad584a92436b5dbd0f2e897a3ec538932af59e245a4c8e4", - "zh:f5418842afd4aa7676e2456e425e8f573cb2b9bffd29bd7de09d91845644ab24", - "zh:f572a26f93d00ec42461ce478678366e570fa4497e2273f9d47f24cdfc4b42b4", - "zh:ff1f07c561a3f7f219b6fee1647a559933b5dd6181753e164c3978fd47a11685", - ] -} - -provider "registry.opentofu.org/threefoldtech/grid" { - version = "1.10.0-dev" - constraints = "1.10.0-dev" - hashes = [ - "h1:OSyUXW0vc8v47LFE0vkbqQEnyfw2FGxv/zNdzBEK4JY=", - "zh:19991d402838d4f49b3cf80eac53d1ac6d921e88feef7260f29766822265ea8b", - "zh:1a18984daf76424d4de387d9d28e3fa4c7ab2d40d31bd59d36a5cc6eaf58ed0a", - "zh:1ca77dd16513e03c71fe188782c64504d798331bedaaf01d4bee7a683b5c9574", - "zh:33c8f3a6014b07d1535b65e2a5f8ce09ee274c89112c41db7cfea8c0f6e0fe0a", - "zh:4a488bf5626a113bff6c689e162edf6f96f9089ad55b4a38c14fac442d3e212a", - "zh:862a9d6e5e4bb14dae663b35a6cfd718eed190922a19f1afff4fa77760ecb64e", - "zh:ef73d75070831e17ea4fa45ccd3a6cecfd20f2c4cd6719d0b28292275fcd78c5", - "zh:f471d820048cc819f545a9397d4fd9364487d8092a3049ab9d99a476322438c2", - ] -} diff --git a/tf/.terraform/providers/registry.opentofu.org/carlpett/sops/0.7.2/linux_arm64/terraform-provider-sops_v0.7.2 b/tf/.terraform/providers/registry.opentofu.org/carlpett/sops/0.7.2/linux_arm64/terraform-provider-sops_v0.7.2 deleted file mode 100755 index c74ef06a..00000000 Binary files a/tf/.terraform/providers/registry.opentofu.org/carlpett/sops/0.7.2/linux_arm64/terraform-provider-sops_v0.7.2 and /dev/null differ diff --git a/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/CHANGELOG.md b/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/CHANGELOG.md deleted file mode 100644 index b7243661..00000000 --- a/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/CHANGELOG.md +++ /dev/null @@ -1,232 +0,0 @@ -## 3.6.0 (December 04, 2023) - -FEATURES: - -* resource/random_bytes: New resource that generates an array of random bytes intended to be used as key or secret ([#272](https://github.com/hashicorp/terraform-provider-random/issues/272)) - -## 3.5.1 (April 12, 2023) - -BUG FIXES: - -* resource/random_password: Prevent error with `bcrypt` by truncating the bytes that are hashed to a maximum length of 72 ([#397](https://github.com/hashicorp/terraform-provider-random/issues/397)) - -## 3.5.0 (April 11, 2023) - -NOTES: - -* This Go module has been updated to Go 1.19 per the [Go support policy](https://golang.org/doc/devel/release.html#policy). Any consumers building on earlier Go versions may experience errors. ([#378](https://github.com/hashicorp/terraform-provider-random/issues/378)) - -## 3.4.3 (September 08, 2022) - -NOTES: - -* resource/random_password: The values for `lower`, `number`, `special`, `upper`, `min_lower`, `min_numeric`, `min_special`, `min_upper` and `length` could be null if the resource was imported using version 3.3.1 or before. The value for `length` will be automatically calculated and assigned and default values will be assigned for the other attributes listed after this upgrade ([#313](https://github.com/hashicorp/terraform-provider-random/pull/313)) -* resource/random_string: The values for `lower`, `number`, `special`, `upper`, `min_lower`, `min_numeric`, `min_special`, `min_upper` and `length` could be null if the resource was imported using version 3.3.1 or before. The value for `length` will be automatically calculated and assigned and default values will be assigned for the other attributes listed after this upgrade ([#313](https://github.com/hashicorp/terraform-provider-random/pull/313)) -* resource/random_password: If the resource was created between versions 3.4.0 and 3.4.2, the `bcrypt_hash` value would not correctly verify against the `result` value. Affected resources will automatically regenerate a valid `bcrypt_hash` after this upgrade. ([#308](https://github.com/hashicorp/terraform-provider-random/pull/308)) -* resource/random_password: The `override_special` attribute may show a plan difference from empty string (`""`) to `null` if previously applied with version 3.4.2. The plan should show this as an in-place update and it should occur only once after upgrading. ([#312](https://github.com/hashicorp/terraform-provider-random/pull/312)) -* resource/random_string: The `override_special` attribute may show a plan difference from empty string (`""`) to `null` if previously applied with version 3.4.2. The plan should show this as an in-place update and it should occur only once after upgrading. ([#312](https://github.com/hashicorp/terraform-provider-random/pull/312)) - -BUG FIXES: - -* resource/random_password: Assign default values to `lower`, `number`, `special`, `upper`, `min_lower`, `min_numeric`, `min_special` and `min_upper` if null. Assign length of `result` to `length` if null ([#313](https://github.com/hashicorp/terraform-provider-random/pull/313)) -* resource/random_string: Assign default values to `lower`, `number`, `special`, `upper`, `min_lower`, `min_numeric`, `min_special` and `min_upper` if null. Assign length of `result` to `length` if null ([#313](https://github.com/hashicorp/terraform-provider-random/pull/313)) -* resource/random_password: Fixed incorrect `bcrypt_hash` generation since version 3.4.0 ([#308](https://github.com/hashicorp/terraform-provider-random/pull/308)) -* resource/random_password: Prevented difference with `override_special` when upgrading from version 3.3.2 and earlier ([#312](https://github.com/hashicorp/terraform-provider-random/pull/312)) -* resource/random_string: Prevented difference with `override_special` when upgrading from version 3.3.2 and earlier ([#312](https://github.com/hashicorp/terraform-provider-random/pull/312)) - -## 3.4.2 (September 02, 2022) - -BUG FIXES: - -* all: Prevent `keeper` with `null` values from forcing replacement ([305](https://github.com/hashicorp/terraform-provider-random/pull/305)). -* resource/random_password: During upgrade state, ensure `min_upper` is populated ([304](https://github.com/hashicorp/terraform-provider-random/pull/304)). -* resource/random_string: During upgrade state, ensure `min_upper` is populated ([304](https://github.com/hashicorp/terraform-provider-random/pull/304)). - -## 3.4.1 (August 31, 2022) - -BUG FIXES: - -* resource/random_password: During attribute plan modifier, only return error if `number` and `numeric` are both present and do not match ([301](https://github.com/hashicorp/terraform-provider-random/pull/301)). -* resource/random_string: During attribute plan modifier, only return error if `number` and `numeric` are both present and do not match ([301](https://github.com/hashicorp/terraform-provider-random/pull/301)). - -## 3.4.0 (August 30, 2022) - -NOTES: - -* Provider has been re-written using the new [`terraform-plugin-framework`](https://www.terraform.io/plugin/framework) ([#177](https://github.com/hashicorp/terraform-provider-random/pull/177)). -* resource/random_password: `number` was deprecated in [v3.3.0](https://github.com/hashicorp/terraform-provider-random/releases/tag/v3.3.0) and will be removed in the next major release. -* resource/random_string: `number` was deprecated in [v3.3.0](https://github.com/hashicorp/terraform-provider-random/releases/tag/v3.3.0) and will be removed in the next major release. - -## 3.3.2 (June 23, 2022) - -BUG FIXES: - -* resource/random_password: When importing set defaults for all attributes that have a default defined ([256](https://github.com/hashicorp/terraform-provider-random/pull/256)). -* resource/random_string: When importing set defaults for all attributes that have a default defined ([256](https://github.com/hashicorp/terraform-provider-random/pull/256)). - -## 3.3.1 (June 07, 2022) - -BUG FIXES: - -* resource/random_password: During schema upgrade, copy value of attribute `number` to attribute `numeric`, only if said value is a boolean (i.e. not `null`) ([262](https://github.com/hashicorp/terraform-provider-random/pull/262)) -* resource/random_string: During schema upgrade, copy value of attribute `number` to attribute `numeric`, only if said value is a boolean (i.e. not `null`) ([262](https://github.com/hashicorp/terraform-provider-random/pull/262)) - -## 3.3.0 (June 06, 2022) - -ENHANCEMENTS: - -* resource/random_password: `number` is now deprecated and `numeric` has been added to align attribute naming. `number` will be removed in the next major release ([#258](https://github.com/hashicorp/terraform-provider-random/pull/258)). -* resource/random_string: `number` is now deprecated and `numeric` has been added to align attribute naming. `number` will be removed in the next major release ([#258](https://github.com/hashicorp/terraform-provider-random/pull/258)). - -## 3.2.0 (May 18, 2022) - -NEW FEATURES: - -* resource/random_password: New attribute `bcrypt_hash`, which is the hashed password ([73](https://github.com/hashicorp/terraform-provider-random/pull/73), [102](https://github.com/hashicorp/terraform-provider-random/issues/102), [254](https://github.com/hashicorp/terraform-provider-random/pull/254)) - -NOTES: - -* Adds or updates DESIGN.md, README.md, CONTRIBUTING.md and SUPPORT.md docs ([176](https://github.com/hashicorp/terraform-provider-random/issues/176), [235](https://github.com/hashicorp/terraform-provider-random/issues/235), [242](https://github.com/hashicorp/terraform-provider-random/pull/242)). -* Removes usage of deprecated fields, types and functions ([243](https://github.com/hashicorp/terraform-provider-random/issues/243), [244](https://github.com/hashicorp/terraform-provider-random/pull/244)). -* Tests all minor Terraform versions ([238](https://github.com/hashicorp/terraform-provider-random/issues/238), [241](https://github.com/hashicorp/terraform-provider-random/pull/241)) -* Switches to linting with golangci-lint ([237](https://github.com/hashicorp/terraform-provider-random/issues/237), [240](https://github.com/hashicorp/terraform-provider-random/pull/240)). - -## 3.1.3 (April 22, 2022) - -BUG FIXES: - -* resource/random_password: Prevent crash when length is less than 0 ([#129](https://github.com/hashicorp/terraform-provider-random/issues/129), [#181](https://github.com/hashicorp/terraform-provider-random/issues/181), [#200](https://github.com/hashicorp/terraform-provider-random/pull/200), [#233](https://github.com/hashicorp/terraform-provider-random/issues/233)). -* resource/random_string: Prevent crash when length is less than 0 ([#129](https://github.com/hashicorp/terraform-provider-random/issues/129), [#181](https://github.com/hashicorp/terraform-provider-random/issues/181), [#200](https://github.com/hashicorp/terraform-provider-random/pull/200), [#233](https://github.com/hashicorp/terraform-provider-random/issues/233)). -* resource/random_password: Prevent confusing inconsistent result error when length is 0 ([#222](https://github.com/hashicorp/terraform-provider-random/issues/222), [#233](https://github.com/hashicorp/terraform-provider-random/issues/233)). -* resource/random_string: Prevent confusing inconsistent result error when length is 0 ([#222](https://github.com/hashicorp/terraform-provider-random/issues/222), [#233](https://github.com/hashicorp/terraform-provider-random/issues/233)). - -## 3.1.2 (March 17, 2022) - -BUG FIXES: - -* resource/random_pet: Prevented deterministic results since 3.1.1 ([#217](https://github.com/hashicorp/terraform-provider-random/issues/217). - -## 3.1.1 (March 16, 2022) - -NOTES: - -* Updated [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) to `v0.7.0`: - this improves generated documentation, with attributes now correctly formatted as `code` - and provided with anchors. -* Functionally identical to the previous 3.1.0 release. - -## 3.1.0 (February 19, 2021) - -Binary releases of this provider now include the darwin-arm64 platform. This version contains no further changes. - -## 3.0.1 (January 12, 2021) - -BUG FIXES: - -* `resource_integer`: Integers in state that do not cleanly fit into float64s no longer lose their precision ([#132](https://github.com/terraform-providers/terraform-provider-random/issues/132)) - -## 3.0.0 (October 09, 2020) - -Binary releases of this provider will now include the linux-arm64 platform. - -BREAKING CHANGES: - -* Upgrade to version 2 of the Terraform Plugin SDK, which drops support for Terraform 0.11. This provider will continue to work as expected for users of Terraform 0.11, which will not download the new version. ([#118](https://github.com/terraform-providers/terraform-provider-random/issues/118)) -* Remove deprecated `b64` attribute ([#118](https://github.com/terraform-providers/terraform-provider-random/issues/118)) - -## 2.3.1 (October 26, 2020) - -NOTES: This version is identical to v2.3.0, but has been compiled using Go v1.14.5 to fix https://github.com/hashicorp/terraform-provider-random/issues/120. - -## 2.3.0 (July 07, 2020) - -NOTES: - -* The provider now uses the binary driver for acceptance tests ([#99](https://github.com/terraform-providers/terraform-provider-random/issues/99)) - -NEW FEATURES: - -* Added import handling for `random_string` and `random_password` ([#104](https://github.com/terraform-providers/terraform-provider-random/issues/104)) - -## 2.2.1 (September 25, 2019) - -NOTES: - -* The provider has switched to the standalone TF SDK, there should be no noticeable impact on compatibility. ([#76](https://github.com/terraform-providers/terraform-provider-random/issues/76)) - -## 2.2.0 (August 08, 2019) - -NEW FEATURES: - -* `random_password` is similar to `random_string` but is marked sensitive for logs and output [[#52](https://github.com/terraform-providers/terraform-provider-random/issues/52)] - -## 2.1.2 (April 30, 2019) - -* This release includes another Terraform SDK upgrade intended to align with that being used for other providers as we prepare for the Core v0.12.0 release. It should have no significant changes in behavior for this provider. - -## 2.1.1 (April 12, 2019) - -* This release includes only a Terraform SDK upgrade intended to align with that being used for other providers as we prepare for the Core v0.12.0 release. It should have no significant changes in behavior for this provider. - -## 2.1.0 (March 20, 2019) - -IMPROVEMENTS: - -* The provider is now compatible with Terraform v0.12, while retaining compatibility with prior versions. - -## 2.0.0 (August 15, 2018) - -BACKWARDS INCOMPATIBILITIES / NOTES: -* `random_string`: set the ID for random_string resources to "none". Any terraform configuration referring to `random_string.foo.id` will need to be updated to reference `random_string.foo.result` ([#17](https://github.com/terraform-providers/terraform-provider-random/issues/17)) - -NEW FEATURES: - -* `random_uuid` generates random uuid string that is intended to be used as unique identifiers for other resources ([#38](https://github.com/terraform-providers/terraform-provider-random/issues/38)) - -BUG FIXES: -* Use UnixNano() instead of Unix() for the current time seed in NewRand() ([#27](https://github.com/terraform-providers/terraform-provider-random/issues/27)) -* `random_shuffle`: if `random_shuffle` is given an empty list, it will return an empty list - -IMPROVEMENTS: - -* Replace ReadPet function in `resource_pet` with schema.Noop ([#34](https://github.com/terraform-providers/terraform-provider-random/issues/34)) - -## 1.3.1 (May 22, 2018) - -BUG FIXES: - -* Add migration and new schema version for `resource_string` ([#29](https://github.com/terraform-providers/terraform-provider-random/issues/29)) - -## 1.3.0 (May 21, 2018) - -BUG FIXES: - -* `random_integer` now supports update ([#25](https://github.com/terraform-providers/terraform-provider-random/issues/25)) - -IMPROVEMENTS: - -* Add optional minimum character constraints to `random_string` ([#22](https://github.com/terraform-providers/terraform-provider-random/issues/22)) - -## 1.2.0 (April 03, 2018) - -NEW FEATURES: - -* `random_integer` and `random_id` are now importable. ([#20](https://github.com/terraform-providers/terraform-provider-random/issues/20)) - -## 1.1.0 (December 01, 2017) - -NEW FEATURES: - -* `random_integer` resource generates a single integer within a given range. ([#12](https://github.com/terraform-providers/terraform-provider-random/issues/12)) - -## 1.0.0 (September 15, 2017) - -NEW FEATURES: - -* `random_string` resource generates random strings of a given length consisting of letters, digits and symbols. ([#5](https://github.com/terraform-providers/terraform-provider-random/issues/5)) - -## 0.1.0 (June 21, 2017) - -NOTES: - -* Same functionality as that of Terraform 0.9.8. Repacked as part of [Provider Splitout](https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10/) diff --git a/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/LICENSE b/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/LICENSE deleted file mode 100644 index b9ac071e..00000000 --- a/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/LICENSE +++ /dev/null @@ -1,375 +0,0 @@ -Copyright (c) 2017 HashiCorp, Inc. - -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - 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 http://mozilla.org/MPL/2.0/. - -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. - -You may add additional accurate notices of copyright ownership. - -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- - - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. diff --git a/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/README.md b/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/README.md deleted file mode 100644 index fa3e88c0..00000000 --- a/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/README.md +++ /dev/null @@ -1,119 +0,0 @@ -# Terraform Provider: Random - -The Random provider supports the use of randomness within Terraform configurations. The -provider resources can be used to generate a random [id](docs/resources/id.md), -[integer](docs/resources/integer.md), [password](docs/resources/password.md), -[pet](docs/resources/pet.md), [shuffle](docs/resources/shuffle.md) (random permutation -of a list of strings), [string](docs/resources/string.md) or -[uuid](docs/resources/uuid.md). - -## Documentation, questions and discussions - -Official documentation on how to use this provider can be found on the -[Terraform Registry](https://registry.terraform.io/providers/hashicorp/random/latest/docs). -In case of specific questions or discussions, please use the -HashiCorp [Terraform Providers Discuss forums](https://discuss.hashicorp.com/c/terraform-providers/31), -in accordance with HashiCorp [Community Guidelines](https://www.hashicorp.com/community-guidelines). - -We also provide: - -* [Support](.github/SUPPORT.md) page for help when using the provider -* [Contributing](.github/CONTRIBUTING.md) guidelines in case you want to help this project -* [Design](DESIGN.md) documentation to understand the scope and maintenance decisions - -The remainder of this document will focus on the development aspects of the provider. - -## Requirements - -* [Terraform](https://www.terraform.io/downloads) (>= 0.12) -* [Go](https://go.dev/doc/install) (1.20) -* [GNU Make](https://www.gnu.org/software/make/) -* [golangci-lint](https://golangci-lint.run/usage/install/#local-installation) (optional) - -## Development - -### Building - -1. `git clone` this repository and `cd` into its directory -2. `make build` will trigger the Golang build - -The provided `GNUmakefile` defines additional commands generally useful during development, -like for running tests, generating documentation, code formatting and linting. -Taking a look at it's content is recommended. - -### Testing - -In order to test the provider, you can run - -* `make test` to run provider tests -* `make testacc` to run provider acceptance tests - -It's important to note that acceptance tests (`testacc`) will actually spawn -`terraform` and the provider. Read more about they work on the -[official page](https://www.terraform.io/plugin/sdkv2/testing/acceptance-tests). - -### Generating documentation - -This provider uses [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/) -to generate documentation and store it in the `docs/` directory. -Once a release is cut, the Terraform Registry will download the documentation from `docs/` -and associate it with the release version. Read more about how this works on the -[official page](https://www.terraform.io/registry/providers/docs). - -Use `make generate` to ensure the documentation is regenerated with any changes. - -### Using a development build - -If [running tests and acceptance tests](#testing) isn't enough, it's possible to set up a local terraform configuration -to use a development builds of the provider. This can be achieved by leveraging the Terraform CLI -[configuration file development overrides](https://www.terraform.io/cli/config/config-file#development-overrides-for-provider-developers). - -First, use `make install` to place a fresh development build of the provider in your [`${GOBIN}`](https://pkg.go.dev/cmd/go#hdr-Compile_and_install_packages_and_dependencies) (defaults to `${GOPATH}/bin` or `${HOME}/go/bin` if `${GOPATH}` is not set). Repeat -this every time you make changes to the provider locally. - -Then, in your `${HOME}/.terraformrc` (Unix) / `%APPDATA%\terraform.rc` (Windows), a `provider_installation` that contains -the following `dev_overrides`: - -```hcl -provider_installation { - dev_overrides { - "hashicorp/random" = "${GOBIN}" //< replace `${GOBIN}` with the actual path on your system - } - - direct {} -} -``` - -Note that it's also possible to use a dedicated Terraform configuration file and invoke `terraform` while setting -the environment variable `TF_CLI_CONFIG_FILE=my_terraform_config_file`. - -Once the `dev_overrides` are in place, any local execution of `terraform plan` and `terraform apply` will -use the version of the provider found in the given `${GOBIN}` directory, -instead of the one indicated in your terraform configuration. - -### Testing GitHub Actions - -This project uses [GitHub Actions](https://docs.github.com/en/actions/automating-builds-and-tests) to realize its CI. - -Sometimes it might be helpful to locally reproduce the behaviour of those actions, -and for this we use [act](https://github.com/nektos/act). Once installed, you can _simulate_ the actions executed -when opening a PR with: - -```shell -# List of workflows for the 'pull_request' action -$ act -l pull_request - -# Execute the workflows associated with the `pull_request' action -$ act pull_request -``` - -## Releasing - -The release process is automated via GitHub Actions, and it's defined in the Workflow -[release.yml](./.github/workflows/release.yml). - -Each release is cut by pushing a [semantically versioned](https://semver.org/) tag to the default branch. - -## License - -[Mozilla Public License v2.0](./LICENSE) diff --git a/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/terraform-provider-random b/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/terraform-provider-random deleted file mode 100755 index 7393c08f..00000000 Binary files a/tf/.terraform/providers/registry.opentofu.org/hashicorp/random/3.6.0/linux_arm64/terraform-provider-random and /dev/null differ diff --git a/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/CHANGELOG.md b/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/CHANGELOG.md deleted file mode 100644 index 6de67680..00000000 --- a/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -# 0.1.0 (Unreleased) - -BACKWARDS INCOMPATIBILITIES / NOTES: diff --git a/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/LICENSE b/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/LICENSE deleted file mode 100644 index 88b9a967..00000000 --- a/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright TF TECH NV (Belgium) - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/README.md b/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/README.md deleted file mode 100644 index fa44b214..00000000 --- a/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/README.md +++ /dev/null @@ -1,108 +0,0 @@ -# Grid provider for terraform - -[![Codacy Badge](https://app.codacy.com/project/badge/Grade/cd6e18aac6be404ab89ec160b4b36671)](https://www.codacy.com/gh/threefoldtech/terraform-provider-grid/dashboard?utm_source=github.com&utm_medium=referral&utm_content=threefoldtech/terraform-provider-grid&utm_campaign=Badge_Grade) [![Testing](https://github.com/threefoldtech/terraform-provider-grid/actions/workflows/test.yml/badge.svg?branch=development)](https://github.com/threefoldtech/terraform-provider-grid/actions/workflows/test.yml) [![Testing](https://github.com/threefoldtech/terraform-provider-grid/actions/workflows/lint.yml/badge.svg?branch=development)](https://github.com/threefoldtech/terraform-provider-grid/actions/workflows/lint.yml) [![Testing](https://github.com/threefoldtech/terraform-provider-grid/actions/workflows/terratest.yml/badge.svg?branch=development)](https://github.com/threefoldtech/terraform-provider-grid/actions/workflows/terratest.yml) [![Dependabot](https://badgen.net/badge/Dependabot/enabled/green?icon=dependabot)](https://dependabot.com/) - -A terraform provider for the [threefold grid](https://threefold.io) to manage your infrastructure using terraform. - -## Requirements - -- [Terraform](https://www.terraform.io/downloads.html) >= 0.13.x -- [Go](https://golang.org/doc/install) >= 1.15 -- [Gettting started document](https://library.threefold.me/info/manual/#/manual3_iac/grid3_terraform/manual__grid3_terraform_home) - -## Using provider for different environments - -- to use the `mainnet`'s version of the provider for `v1.7.0`, use the following configs: - - ```terraform - terraform { - required_providers { - grid = { - source = "threefoldtech/grid" - } - } - } - ``` - -- to use the `testnet`'s version of the provider for `v1.7.0`, use the following configs: - - ```terraform - terraform{ - required_providers{ - grid = { - source = "threeflodtech/grid" - version = "1.7.0-rcX" - } - } - } - ``` - -- for devnet, qanet use `-dev` and `-qa` respectivly - -## Generating the docs - -```bash -make docs -``` - -## Using the provider - -```bash -cd examples/resources/singlenode -export MNEMONICS="mnemonics words" -export NETWORK="network" # dev, qa, test, main -terraform init && terraform apply # creates resources defined in main.tf -terraform destroy # destroy the created resource -``` - -- For a tutorials, please visit the [wiki](https://library.threefold.me/info/manual/#/manual3_iac/grid3_terraform/manual__grid3_terraform_home) page. -- Detailed docs for resources and their arguments can be found in the [docs](docs). - -## Building The Provider (for development only) - -```bash -make -``` - -## Run tests - -```bash -export MNEMONICS="mnemonics words" -export NETWORK="network" # dev, qa, test, main -``` - -- ### Unit tests - - ```bash - make unittests - ``` - -- ### Integration tests - - ```bash - make integration - ``` - - - if you want to run one test use: - - ```bash - cd integrationtests - go test . -run -v --tags=integration - go test . -run -v --tags=integration #for testing only one sub-function - ``` - -## Known Issues - -- [increasing IPs in active deployment](https://github.com/threefoldtech/terraform-provider-grid/issues/15) -- [same private ips for parallel deployments](https://github.com/threefoldtech/terraform-provider-grid/issues/781#issuecomment-1865961184) - -## Latest Releases - -- Releasing for each environment is done using the methods in this [Wiki](wiki/release.md#releasing-for-each-environment) -- For latest releases [terraform-provider-grid](https://registry.terraform.io/providers/threefoldtech/grid/latest) - -## Using example directory - -- the examples directory contains some examples to show user how to use the provider so kindly note that - - User should change the nodes to match the node that wants to deploy on - - In examples that uses`SSH_KEY` default location is `file("~/.ssh/id_rsa.pub")` the path should be changed to match your public key location diff --git a/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/terraform-provider-grid_v1.10.0-dev b/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/terraform-provider-grid_v1.10.0-dev deleted file mode 100755 index 52a16780..00000000 Binary files a/tf/.terraform/providers/registry.opentofu.org/threefoldtech/grid/1.10.0-dev/linux_arm64/terraform-provider-grid_v1.10.0-dev and /dev/null differ diff --git a/tf/state.json b/tf/state.json deleted file mode 100644 index 862e69c0..00000000 --- a/tf/state.json +++ /dev/null @@ -1 +0,0 @@ -{"networks":{}} \ No newline at end of file diff --git a/tf/terraform.tfstate b/tf/terraform.tfstate deleted file mode 100644 index 24dc78ae..00000000 --- a/tf/terraform.tfstate +++ /dev/null @@ -1,9 +0,0 @@ -{ - "version": 4, - "terraform_version": "1.6.1", - "serial": 296, - "lineage": "e6a55684-85ee-b3d6-b507-dece9af50fa7", - "outputs": {}, - "resources": [], - "check_results": null -} diff --git a/tf/terraform.tfstate.backup b/tf/terraform.tfstate.backup deleted file mode 100644 index 465ed6c4..00000000 --- a/tf/terraform.tfstate.backup +++ /dev/null @@ -1,220 +0,0 @@ -{ - "version": 4, - "terraform_version": "1.6.1", - "serial": 290, - "lineage": "e6a55684-85ee-b3d6-b507-dece9af50fa7", - "outputs": { - "vm0_console_url": { - "value": "10.1.3.1:20002", - "type": "string" - }, - "vm0_mycelium_ip": { - "value": "489:6890:4bb0:c3e3:ff0f:b200:ba0b:3a42", - "type": "string" - }, - "vm0_wg_config": { - "value": "\n[Interface]\nAddress = 100.64.1.2\nPrivateKey = KPRSWDu+R2wWiDvYzd0wstD8zYDXIe/ApPNV6xE5xWc=\n[Peer]\nPublicKey = f6gk+ASim/8Fg/4ckJrzBKF1JM5KIH6deimWRJEz1F4=\nAllowedIPs = 10.1.0.0/16, 100.64.0.0/16\nPersistentKeepalive = 25\nEndpoint = 185.206.122.32:28788\n\t", - "type": "string" - }, - "vm0_zmachine1_ip": { - "value": "10.1.3.2", - "type": "string" - } - }, - "resources": [ - { - "mode": "data", - "type": "sops_file", - "name": "static-age-keys", - "provider": "provider[\"registry.opentofu.org/carlpett/sops\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "data": { - "tfgrid-shared": "# created: 2024-04-08T21:23:13+02:00\n# public key: age194xfar0gfdauu2dcxwqk9lh9d0vjfrzzs2ke0ppanpwv9eqxzs2qp7q7cn\nAGE-SECRET-KEY-1TXFF3LUNE03CXTE6RWPNFTYNG4WYK7XRHK9ZCSJUGAY7D073JZSSDDMGS9\n" - }, - "id": "-", - "input_type": null, - "raw": "tfgrid-shared: |\n # created: 2024-04-08T21:23:13+02:00\n # public key: age194xfar0gfdauu2dcxwqk9lh9d0vjfrzzs2ke0ppanpwv9eqxzs2qp7q7cn\n AGE-SECRET-KEY-1TXFF3LUNE03CXTE6RWPNFTYNG4WYK7XRHK9ZCSJUGAY7D073JZSSDDMGS9\n", - "source_file": "../secrets/static-age-keys.yaml" - }, - "sensitive_attributes": [] - } - ] - }, - { - "mode": "managed", - "type": "grid_deployment", - "name": "d1", - "provider": "provider[\"registry.opentofu.org/threefoldtech/grid\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "disks": [], - "id": "107251", - "ip_range": null, - "name": "vm", - "network_name": "steveej_vm0", - "node": 195, - "qsfs": [], - "solution_provider": 0, - "solution_type": "Virtual Machine", - "timeouts": null, - "vms": [ - { - "computedip": "", - "computedip6": "", - "console_url": "10.1.3.1:20002", - "corex": false, - "cpu": 8, - "description": "", - "entrypoint": "/init", - "env_vars": { - "DEPLOYMENT": "tofu", - "SSH_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAIODJoJ7Chi8jPTGmKQ5MlB7+TgNGznreeRW/K34v1ey23/FlnIxP9XyyLkzojKALTfAQYgqzrQV3HDSRwhd1rXB7YLq1/CiVWRJvDMTkJiOCV515eiUJGXu1G8e12d/USPNBMEzMJGvqBCIGYen5OxXkyIHIREfePNi5k337G5z9fiuiggxJl9ty6qZ4XIRgFQj9jAoShixP/+99I7XrGWeFQ1BmLZWzi20SQGKvogYnOszDZFqBAHGFnCFYHaTz2jOXXCtQsa27gr8D2iLRFaxvhB7XMK+VbpDcZGjmfRJ701XxFv15GFnFAV71hTaYqj/Ebpw9Vs02+gUp3+tt cardno:17_673_080" - }, - "flist": "https://sj-bm-hostkey0.dev.infra.holochain.org/s3/tfgrid-eval/tfgrid-base.20240408.190655.fl", - "flist_checksum": "", - "gpus": null, - "ip": "10.1.3.2", - "memory": 4096, - "mounts": [], - "mycelium_ip": "489:6890:4bb0:c3e3:ff0f:b200:ba0b:3a42", - "mycelium_ip_seed": "b200ba0b3a42", - "name": "steveej_vm0", - "planetary": false, - "planetary_ip": "", - "publicip": false, - "publicip6": false, - "rootfs_size": 20000, - "zlogs": null - } - ], - "zdbs": [] - }, - "sensitive_attributes": [ - [ - { - "type": "get_attr", - "value": "vms" - }, - { - "type": "index", - "value": { - "value": 0, - "type": "number" - } - }, - { - "type": "get_attr", - "value": "mycelium_ip_seed" - } - ] - ], - "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoyNzAwMDAwMDAwMDAwfX0=", - "dependencies": [ - "data.sops_file.static-age-keys", - "grid_network.net0", - "random_bytes.mycelium_ip_seed", - "random_bytes.mycelium_key" - ] - } - ] - }, - { - "mode": "managed", - "type": "grid_network", - "name": "net0", - "provider": "provider[\"registry.opentofu.org/threefoldtech/grid\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "access_wg_config": "\n[Interface]\nAddress = 100.64.1.2\nPrivateKey = KPRSWDu+R2wWiDvYzd0wstD8zYDXIe/ApPNV6xE5xWc=\n[Peer]\nPublicKey = f6gk+ASim/8Fg/4ckJrzBKF1JM5KIH6deimWRJEz1F4=\nAllowedIPs = 10.1.0.0/16, 100.64.0.0/16\nPersistentKeepalive = 25\nEndpoint = 185.206.122.32:28788\n\t", - "add_wg_access": true, - "description": "newer network", - "external_ip": "10.1.2.0/24", - "external_sk": "KPRSWDu+R2wWiDvYzd0wstD8zYDXIe/ApPNV6xE5xWc=", - "id": "777f9639-3640-44c5-9a9c-86fc100f48b9", - "ip_range": "10.1.0.0/16", - "mycelium_keys": { - "195": "c82b5f075bfe4b3836654e2ce1703daa486700b678adcb8689fe705419bd1b3b" - }, - "name": "steveej_vm0", - "node_deployment_id": { - "11": 107249, - "195": 107250 - }, - "nodes": [ - 195 - ], - "nodes_ip_range": { - "11": "10.1.4.0/24", - "195": "10.1.3.0/24" - }, - "public_node_id": 11, - "solution_type": "Network" - }, - "sensitive_attributes": [ - [ - { - "type": "get_attr", - "value": "mycelium_keys" - }, - { - "type": "index", - "value": { - "value": "195", - "type": "string" - } - } - ] - ], - "private": "bnVsbA==", - "dependencies": [ - "random_bytes.mycelium_key" - ] - } - ] - }, - { - "mode": "managed", - "type": "random_bytes", - "name": "mycelium_ip_seed", - "provider": "provider[\"registry.opentofu.org/hashicorp/random\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "base64": "sgC6CzpC", - "hex": "b200ba0b3a42", - "keepers": null, - "length": 6 - }, - "sensitive_attributes": [] - } - ] - }, - { - "mode": "managed", - "type": "random_bytes", - "name": "mycelium_key", - "provider": "provider[\"registry.opentofu.org/hashicorp/random\"]", - "instances": [ - { - "schema_version": 0, - "attributes": { - "base64": "yCtfB1v+Szg2ZU4s4XA9qkhnALZ4rcuGif5wVBm9Gzs=", - "hex": "c82b5f075bfe4b3836654e2ce1703daa486700b678adcb8689fe705419bd1b3b", - "keepers": null, - "length": 32 - }, - "sensitive_attributes": [] - } - ] - } - ], - "check_results": null -} diff --git a/tf/tfgrid-dev.tf b/tf/tfgrid-dev.tf deleted file mode 100644 index 5e11393d..00000000 --- a/tf/tfgrid-dev.tf +++ /dev/null @@ -1,148 +0,0 @@ -variable "tfgrid_dev_mnemonics" { - sensitive = true -} - -variable "nixos_flake" { - type = string - default = "github:holochain/holochain-infra/workorch-zos#tfgrid-devnet-vm0" -} - -variable "build_host" { - type = string - default = "root@sj-bm-hostkey0.dev.infra.holochain.org" -} - -terraform { - required_providers { - grid = { - source = "threefoldtech/grid" - version = "1.10.0-dev" - } - - sops = { - source = "carlpett/sops" - version = "~> 0.5" - } - } -} - -data "sops_file" "static-age-keys" { - source_file = "../secrets/static-age-keys.yaml" -} - -provider "grid" { - mnemonics = var.tfgrid_dev_mnemonics - network = "dev" # or test to use testnet -} - -locals { - vm0_name= "steveej_vm0" - node = 195 -} - -resource "random_bytes" "mycelium_ip_seed" { - length = 6 -} - -resource "random_bytes" "mycelium_key" { - length = 32 -} - -resource "grid_network" "net0" { - name = local.vm0_name - nodes = [local.node] - ip_range = "10.1.0.0/16" - - mycelium_keys = { - format("%s", local.node) = random_bytes.mycelium_key.hex - } - description = "newer network" - - add_wg_access = true -} -resource "grid_deployment" "d1" { - node = local.node - network_name = grid_network.net0.name - # disks { - # name = "store" - # size = 50 - # description = "volume holding store data" - # } - - vms { - name = local.vm0_name - # flist = "https://sj-bm-hostkey0.dev.infra.holochain.org/s3/tfgrid-eval/tfgrid-devnet-vm0.20240406.103712.fl" - flist = "https://sj-bm-hostkey0.dev.infra.holochain.org/s3/tfgrid-eval/tfgrid-base.20240408.190655.fl" - - cpu = 8 - # publicip = true - memory = 4096 - rootfs_size = 20000 # MiB - entrypoint = "/init" - # mounts { - # disk_name = "store" - # mount_point = "/nix" - # } - - mycelium_ip_seed = random_bytes.mycelium_ip_seed.hex - - env_vars = { - SSH_KEY = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAIODJoJ7Chi8jPTGmKQ5MlB7+TgNGznreeRW/K34v1ey23/FlnIxP9XyyLkzojKALTfAQYgqzrQV3HDSRwhd1rXB7YLq1/CiVWRJvDMTkJiOCV515eiUJGXu1G8e12d/USPNBMEzMJGvqBCIGYen5OxXkyIHIREfePNi5k337G5z9fiuiggxJl9ty6qZ4XIRgFQj9jAoShixP/+99I7XrGWeFQ1BmLZWzi20SQGKvogYnOszDZFqBAHGFnCFYHaTz2jOXXCtQsa27gr8D2iLRFaxvhB7XMK+VbpDcZGjmfRJ701XxFv15GFnFAV71hTaYqj/Ebpw9Vs02+gUp3+tt cardno:17_673_080" - DEPLOYMENT = "tofu" - } - } - - connection { - type = "ssh" - user = "root" - agent = true - host = grid_deployment.d1.vms[0].mycelium_ip - } - - provisioner "remote-exec" { - inline = [ - "set -eEux -o pipefail", - - # TODO: consider generating a new key, adding it to sops, and re-encrypting the secrets - "printf '' > /etc/age.key", - "chmod 400 /etc/age.key", - "echo '${data.sops_file.static-age-keys.data["tfgrid-shared"]}' >> /etc/age.key", - ] - } - - provisioner "remote-exec" { - inline = [ - "set -eEux -o pipefail", - - # switch to a deployment specific profile - # can use build-host only if the local agent has access to it - "export NIX_SSHOPTS='-o StrictHostKeyChecking=accept-new'", - # "systemctl restart dbus", - # "nixos-rebuild -v --build-host ${var.build_host} --flake ${var.nixos_flake} switch" - ] - } - - # TODO: figure out how to avoid evaluating on the target system. - # ssh root@sj-bm-hostkey0.dev.infra.holochain.org "nix build --print-out-paths --no-link -vL github:holochain/holochain-infra/workorch-zos#nixosConfigurations.tfgrid-devnet-vm0.config.system.build.toplevel" - -} - -output "vm0_wg_config" { - value = grid_network.net0.access_wg_config -} - -output "vm0_zmachine1_ip" { - value = grid_deployment.d1.vms[0].ip -} - -# output "vm0_computed_public_ip" { -# value = split("/", grid_deployment.d1.vms[0].computedip)[0] -# } - -output "vm0_mycelium_ip" { - value = grid_deployment.d1.vms[0].mycelium_ip -} - -output "vm0_console_url" { - value = grid_deployment.d1.vms[0].console_url -}