forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factorize some identical playbooks steps into their own sub-playbooks (…
…kubernetes-sigs#10633) * Factorize identical playboooks steps in sub-playbooks * Copy legacy_groups.yml into its sole user
- Loading branch information
1 parent
b43ff11
commit 329c514
Showing
8 changed files
with
57 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
- name: Install etcd | ||
hosts: etcd:kube_control_plane | ||
gather_facts: False | ||
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" | ||
environment: "{{ proxy_disable_env }}" | ||
roles: | ||
- { role: kubespray-defaults } | ||
- role: etcd | ||
tags: etcd | ||
vars: | ||
etcd_cluster_setup: true | ||
etcd_events_cluster_setup: "{{ etcd_events_cluster_enabled }}" | ||
when: etcd_deployment_type != "kubeadm" | ||
|
||
- name: Install etcd certs on nodes if required | ||
hosts: k8s_cluster | ||
gather_facts: False | ||
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" | ||
environment: "{{ proxy_disable_env }}" | ||
roles: | ||
- { role: kubespray-defaults } | ||
- role: etcd | ||
tags: etcd | ||
vars: | ||
etcd_cluster_setup: false | ||
etcd_events_cluster_setup: false | ||
when: | ||
- etcd_deployment_type != "kubeadm" | ||
- kube_network_plugin in ["calico", "flannel", "canal", "cilium"] or cilium_deploy_additionally | default(false) | bool | ||
- kube_network_plugin != "calico" or calico_datastore == "etcd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters