kubespray/contrib
Cristian Klein b77460ec34
contrib/terraform/exoscale: Rework SSH public keys (#7242)
* contrib/terraform/exoscale: Rework SSH public keys

Exoscale has a few limitations with `exoscale_ssh_keypair` resources.
Creating several clusters with these scripts may lead to an error like:

```
Error: API error ParamError 431 (InvalidParameterValueException 4350): The key pair "lj-sc-ssh-key" already has this fingerprint
```

This patch reworks handling of SSH public keys. Specifically, we rely on
the more cloud-agnostic way of configuring SSH public keys via
`cloud-init`.

* contrib/terraform/exoscale: terraform fmt

* contrib/terraform/exoscale: Add terraform validate

* contrib/terraform/exoscale: Inline public SSH keys

The Terraform scripts need to install some SSH key, so that Kubespray
(i.e., the "Ansible part") can take over. Initially, we pointed the
Terraform scripts to `~/.ssh/id_rsa.pub`. This proved to be suboptimal:
Operators sharing responbility for a cluster risk unnecessarily replacing resources.

Therefore, it has been determined that it's best to inline the public
SSH keys. The chosen variable `ssh_public_keys` provides some uniformity
with `contrib/azurerm`.

* Fix Terraform Exoscale test

* Fix Terraform 0.14 test
2021-02-03 07:32:28 -08:00
..
aws_iam Added Missing AWS IAM Profiles and Policies 2017-03-03 15:30:07 +01:00
aws_inventory fix: added boto3 as dependency required by kubespray-aws-inventory.py (#6890) 2020-11-26 15:06:19 -08:00
azurerm Improve markdownlint coverage (#7075) 2020-12-22 04:44:26 -08:00
dind Improve markdownlint coverage (#7075) 2020-12-22 04:44:26 -08:00
inventory_builder Fix and document environment variable KUBE_MASTERS (#7127) 2021-01-11 11:34:24 -08:00
kvm-setup Improve markdownlint coverage (#7075) 2020-12-22 04:44:26 -08:00
misc update rbac.authorization.k8s.io to non deprecated api-groups (#5517) 2020-04-14 13:14:04 -07:00
network-storage Improve markdownlint for contrib/network-storage (#7079) 2020-12-23 00:00:26 -08:00
offline Fix mardownlint failures of offline (#7108) 2021-01-06 23:45:45 -08:00
packaging/rpm Fix ansible syntax to avoid ansible deprecation warnings (#3512) 2018-10-16 15:33:30 -07:00
terraform contrib/terraform/exoscale: Rework SSH public keys (#7242) 2021-02-03 07:32:28 -08:00
vault Improve markdownlint for contrib/network-storage (#7079) 2020-12-23 00:00:26 -08:00