Terraform for running control plane and downstream clusters Python for scaling tests
control-plane: for getting Rancher runningclusters: for scaling Rancher with many clusterscluster-with-nodes: for scaling Rancher with many nodes per cluster
rancher-cluster-operations: a collection of convenience modules for creating various rancher2 resources that are commonly used
- Install
pre-commit - Create
pre-commit-config.yamlin the git working directory of this repository - Add
pre-commit-hooksto yourpre-commit-config.yaml- Example recommended
pre-commit-config.yamlconfiguration:repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.2.0 hooks: - id: detect-aws-credentials - id: detect-private-key - id: check-yaml - id: trailing-whitespace
- Example recommended
- Add
pre-commit-terraformhooks to yourpre-commit-config.yaml:- Example recommended
pre-commit-terraformconfiguration:... - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.72.1 hooks: - id: terraform_tflint args: - --args=--config=__GIT_WORKING_DIR__/.tflint.hcl # this file needs to exist at this path - --args=--enable-rule=terraform_comment_syntax - --args=--enable-rule=terraform_naming_convention - --args=--enable-rule=terraform_deprecated_index - --args=--enable-rule=terraform_deprecated_interpolation - id: terraform_fmt args: - --args=-recursive - id: terraform_docs args: - --hook-config=--path-to-file=README.md # Valid UNIX path. I.e. ../TFDOC.md or docs/README.md etc. - --hook-config=--add-to-existing-file=true # Boolean. true or false - --hook-config=--create-file-if-not-exist=true # Boolean. true or false
- Example recommended
- Create a
.tflint.hclconfiguration in the git working directory of this repository - Add the desired
tflintconfiguration to the.tflint.hclfile- Example recommended
.tflint.hclconfiguration:config { plugin_dir = "~/.tflint.d/plugins" module = true force = false disabled_by_default = false } plugin "aws" { enabled = true version = "0.13.4" source = "github.com/terraform-linters/tflint-ruleset-aws" deep_check = false }
- Example recommended