https://github.com/belgaied2/tf-module-rke2-provision
A Terraform module to deploy RKE2 on existing nodes
https://github.com/belgaied2/tf-module-rke2-provision
Last synced: 3 months ago
JSON representation
A Terraform module to deploy RKE2 on existing nodes
- Host: GitHub
- URL: https://github.com/belgaied2/tf-module-rke2-provision
- Owner: belgaied2
- License: apache-2.0
- Created: 2023-01-30T14:20:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T18:11:34.000Z (9 months ago)
- Last Synced: 2025-02-08T06:43:16.728Z (4 months ago)
- Language: Shell
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Requirements
| Name | Version |
|------|---------|
| [vsphere](#requirement\_vsphere) | 2.0.2 |## Providers
| Name | Version |
|------|---------|
| [external](#provider\_external) | n/a |
| [local](#provider\_local) | n/a |
| [null](#provider\_null) | n/a |
| [template](#provider\_template) | n/a |
| [time](#provider\_time) | n/a |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [local_file.script_kubeconfig](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file) | resource |
| [null_resource.deploy_rancher](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [null_resource.rke2_common](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [null_resource.rke2_server1_provisioning](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [null_resource.rke2_servers_others_provisioning](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [null_resource.rke2_workers_provisioning](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [time_sleep.sleep_between_first_server_and_others](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
| [external_external.kubeconfig](https://registry.terraform.io/providers/hashicorp/external/latest/docs/data-sources/external) | data source |
| [template_file.config_other_yaml](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source |
| [template_file.config_server_yaml](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source |
| [template_file.rancher_manifest](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [cp\_vm\_count](#input\_cp\_vm\_count) | Number of VMs to spin up for RKE | `any` | n/a | yes |
| [do\_deploy\_rancher](#input\_do\_deploy\_rancher) | Variable to decide if Rancher will be deployed. | `bool` | `false` | no |
| [public\_key\_path](#input\_public\_key\_path) | path of public key for nodes | `string` | `"~/.ssh/id_rsa.pub"` | no |
| [rancher\_hostname](#input\_rancher\_hostname) | Desired Hostname for Rancher App | `string` | `""` | no |
| [rke2\_token](#input\_rke2\_token) | Desired RKE2 token | `any` | n/a | yes |
| [ssh\_password](#input\_ssh\_password) | SSH Password to connect to VM with | `string` | n/a | yes |
| [ssh\_user](#input\_ssh\_user) | SSH Username to connect to VM with | `string` | n/a | yes |
| [vm\_ips](#input\_vm\_ips) | List of IP Addresses for all VMs to use deploy Rancher on. | `list(string)` | n/a | yes |
| [vm\_name\_prefix](#input\_vm\_name\_prefix) | Prefix for the VM name in vSphere | `string` | `"rancher-ha"` | no |
| [wk\_vm\_count](#input\_wk\_vm\_count) | Number of VMs to spin up for RKE | `any` | n/a | yes |## Outputs
| Name | Description |
|------|-------------|
| [kubeconfig](#output\_kubeconfig) | n/a |