Skip to content

Commit

Permalink
Remove vault (kubernetes-sigs#7400)
Browse files Browse the repository at this point in the history
* Remove contrib/vault

This is marked as broken since 2018 / 3dcb914
This still reference apiserver.pem, not used since ddffdb6

Signed-off-by: Etienne Champetier <[email protected]>

* Finish nuking vault from the codebase

Signed-off-by: Etienne Champetier <[email protected]>
  • Loading branch information
champtar authored Mar 24, 2021
1 parent 8655b92 commit f0cdf71
Show file tree
Hide file tree
Showing 59 changed files with 7 additions and 2,032 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ As a consequence, `ansible-playbook` command will fail with:
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
```

probably pointing on a task depending on a module present in requirements.txt (i.e. "unseal vault").
probably pointing on a task depending on a module present in requirements.txt.

One way of solving this would be to uninstall the Ansible package and then, to install it via pip but it is not always possible.
A workaround consists of setting `ANSIBLE_LIBRARY` and `ANSIBLE_MODULE_UTILS` environment variables respectively to the `ansible/modules` and `ansible/module_utils` subdirectories of pip packages installation location, which can be found in the Location field of the output of `pip show [package]` before executing `ansible-playbook`.
Expand Down
10 changes: 5 additions & 5 deletions contrib/terraform/openstack/modules/compute/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ resource "openstack_compute_instance_v2" "k8s_master" {

metadata = {
ssh_user = var.ssh_user
kubespray_groups = "etcd,kube_control_plane,${var.supplementary_master_groups},k8s-cluster,vault"
kubespray_groups = "etcd,kube_control_plane,${var.supplementary_master_groups},k8s-cluster"
depends_on = var.network_id
use_access_ip = var.use_access_ip
}
Expand Down Expand Up @@ -292,7 +292,7 @@ resource "openstack_compute_instance_v2" "k8s_master_no_etcd" {

metadata = {
ssh_user = var.ssh_user
kubespray_groups = "kube_control_plane,${var.supplementary_master_groups},k8s-cluster,vault"
kubespray_groups = "kube_control_plane,${var.supplementary_master_groups},k8s-cluster"
depends_on = var.network_id
use_access_ip = var.use_access_ip
}
Expand Down Expand Up @@ -337,7 +337,7 @@ resource "openstack_compute_instance_v2" "etcd" {

metadata = {
ssh_user = var.ssh_user
kubespray_groups = "etcd,vault,no-floating"
kubespray_groups = "etcd,no-floating"
depends_on = var.network_id
use_access_ip = var.use_access_ip
}
Expand Down Expand Up @@ -379,7 +379,7 @@ resource "openstack_compute_instance_v2" "k8s_master_no_floating_ip" {

metadata = {
ssh_user = var.ssh_user
kubespray_groups = "etcd,kube_control_plane,${var.supplementary_master_groups},k8s-cluster,vault,no-floating"
kubespray_groups = "etcd,kube_control_plane,${var.supplementary_master_groups},k8s-cluster,no-floating"
depends_on = var.network_id
use_access_ip = var.use_access_ip
}
Expand Down Expand Up @@ -421,7 +421,7 @@ resource "openstack_compute_instance_v2" "k8s_master_no_floating_ip_no_etcd" {

metadata = {
ssh_user = var.ssh_user
kubespray_groups = "kube_control_plane,${var.supplementary_master_groups},k8s-cluster,vault,no-floating"
kubespray_groups = "kube_control_plane,${var.supplementary_master_groups},k8s-cluster,no-floating"
depends_on = var.network_id
use_access_ip = var.use_access_ip
}
Expand Down
32 changes: 0 additions & 32 deletions contrib/vault/groups_vars/vault.yaml

This file was deleted.

1 change: 0 additions & 1 deletion contrib/vault/requirements.txt

This file was deleted.

73 changes: 0 additions & 73 deletions contrib/vault/roles/etcd/vault/tasks/gen_certs_vault.yml

This file was deleted.

39 changes: 0 additions & 39 deletions contrib/vault/roles/etcd/vault/tasks/sync_etcd_master_certs.yml

This file was deleted.

33 changes: 0 additions & 33 deletions contrib/vault/roles/etcd/vault/tasks/sync_etcd_node_certs.yml

This file was deleted.

134 changes: 0 additions & 134 deletions contrib/vault/roles/kubernetes/vault-secrets/tasks/gen_certs_vault.yml

This file was deleted.

Loading

0 comments on commit f0cdf71

Please sign in to comment.