{"id":18808802,"url":"https://github.com/nimbolus/tf-rancher","last_synced_at":"2026-01-10T00:30:15.791Z","repository":{"id":38086070,"uuid":"296116084","full_name":"nimbolus/tf-rancher","owner":"nimbolus","description":"Deploy Rancher with Terraform on OpenStack","archived":false,"fork":false,"pushed_at":"2025-02-13T12:41:59.000Z","size":169,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T13:42:48.614Z","etag":null,"topics":["openstack","rancher","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nimbolus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-16T18:30:55.000Z","updated_at":"2024-10-04T19:05:20.000Z","dependencies_parsed_at":"2023-09-27T16:09:47.956Z","dependency_job_id":"427360c4-6150-4f46-b317-ae914577c7ca","html_url":"https://github.com/nimbolus/tf-rancher","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimbolus%2Ftf-rancher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimbolus%2Ftf-rancher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimbolus%2Ftf-rancher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nimbolus%2Ftf-rancher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nimbolus","download_url":"https://codeload.github.com/nimbolus/tf-rancher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239742836,"owners_count":19689394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openstack","rancher","terraform","terraform-module"],"created_at":"2024-11-07T23:14:20.745Z","updated_at":"2026-01-10T00:30:15.745Z","avatar_url":"https://github.com/nimbolus.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Module - Rancher\n\nSets up a Rancher (Platform for Kubernetes Management) cluster on top of OpenStack.\n\nFor an overview of the options, checkout [variables.tf](./variables.tf)\n\n## Example\n\n```terraform\nresource \"openstack_compute_keypair_v2\" \"rancher_cluster\" {\n  name = \"rancher-cluster\"\n}\n\nmodule \"rancher\" {\n  source = \"git::https://github.com/nimbolus/tf-rancher.git?ref=v0.7.0\"\n\n  cluster_availability_zone   = \"nova\"\n  cluster_image_name          = \"ubuntu-20.04\"\n  cluster_key_pair            = openstack_compute_keypair_v2.rancher_cluster.name\n  cluster_server_group_policy = \"anti-affinity\"\n  cluster_network_id          = data.openstack_networking_network_v2.rancher.id\n  cluster_subnet_id           = data.openstack_networking_subnet_v2.rancher.id\n  rancher_hostname            = \"rancher.example.com\"\n}\n\noutput \"rancher_cluster_kubeconfig\" {\n  value     = module.rancher.kubeconfig\n  sensitive = true\n}\n\nprovider \"rancher2\" {\n  alias = \"bootstrap\"\n\n  api_url   = \"https://rancher.example.com\"\n  bootstrap = true\n}\n\nresource \"rancher2_bootstrap\" \"admin\" {\n  provider = rancher2.bootstrap\n\n  current_password = module.rancher.rancher_bootstrap_password\n  password         = module.rancher.rancher_bootstrap_password\n  telemetry        = false\n}\n\nprovider \"rancher2\" {\n  api_url   = rancher2_bootstrap.admin.url\n  token_key = rancher2_bootstrap.admin.token\n}\n\nmodule \"rancher_sa_test\" {\n  source = \"git::https://github.com/nimbolus/tf-rancher.git//service-account?ref=v0.7.0\"\n\n  name  = \"test\"\n  email = \"test@example.com\"\n}\n```\n\n## Upgrade Notes\n\n### v0.7.0\n\nUpgrade to `v0.6.1` first and migrate kubectl provider resources if needed:\n```sh\ntofu state rm module.rancher.kubectl_manifest.cluster_issuer\ntofu state rm module.rancher.kubectl_manifest.rancher_certificate\ntofu import 'module.rancher.kubernetes_manifest.cluster_issuer[0]' \\\n  \"apiVersion=cert-manager.io/v1kind=ClusterIssuser,name=letsencrypt\"\ntofu import 'module.rancher.kubernetes_manifest.rancher_certificate[0]' \\\n  \"apiVersion=cert-manager.iov1,kind=Certificate,namespace=cattle-system,name=rancher\"\n```\n\nThen upgrade to `v0.7.0`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimbolus%2Ftf-rancher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnimbolus%2Ftf-rancher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimbolus%2Ftf-rancher/lists"}