/tf-module-rke2-provision

A Terraform module to deploy RKE2 on existing nodes

Primary LanguageShellApache License 2.0Apache-2.0

Requirements

Name Version
vsphere 2.0.2

Providers

Name Version
external n/a
local n/a
null n/a
template n/a
time n/a

Modules

No modules.

Resources

Name Type
local_file.script_kubeconfig resource
null_resource.deploy_rancher resource
null_resource.rke2_common resource
null_resource.rke2_server1_provisioning resource
null_resource.rke2_servers_others_provisioning resource
null_resource.rke2_workers_provisioning resource
time_sleep.sleep_between_first_server_and_others resource
external_external.kubeconfig data source
template_file.config_other_yaml data source
template_file.config_server_yaml data source
template_file.rancher_manifest data source

Inputs

Name Description Type Default Required
cp_vm_count Number of VMs to spin up for RKE any n/a yes
do_deploy_rancher Variable to decide if Rancher will be deployed. bool false no
public_key_path path of public key for nodes string "~/.ssh/id_rsa.pub" no
rancher_hostname Desired Hostname for Rancher App string "" no
rke2_token Desired RKE2 token any n/a yes
ssh_password SSH Password to connect to VM with string n/a yes
ssh_user SSH Username to connect to VM with string n/a yes
vm_ips List of IP Addresses for all VMs to use deploy Rancher on. list(string) n/a yes
vm_name_prefix Prefix for the VM name in vSphere string "rancher-ha" no
wk_vm_count Number of VMs to spin up for RKE any n/a yes

Outputs

Name Description
kubeconfig n/a