Browse Source

change /etc/ssl/etcd to etcd_config_dir param (#6408)

* change /etc/ssl/etcd to etcd_config_dir param

* add use etcd_events_data_dir param
pull/6446/head
chenguoquan1024 4 years ago
committed by GitHub
parent
commit
9c48f666ec
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions
  1. 2
      roles/etcd/defaults/main.yml
  2. 1
      roles/kubespray-defaults/defaults/main.yaml
  3. 4
      roles/reset/tasks/main.yml

2
roles/etcd/defaults/main.yml

@ -8,7 +8,7 @@ etcd_events_cluster_enabled: false
etcd_backup_prefix: "/var/backups" etcd_backup_prefix: "/var/backups"
etcd_data_dir: "/var/lib/etcd" etcd_data_dir: "/var/lib/etcd"
etcd_events_data_dir: "/var/lib/etcd-events"
etcd_config_dir: /etc/ssl/etcd etcd_config_dir: /etc/ssl/etcd
etcd_cert_dir: "{{ etcd_config_dir }}/ssl" etcd_cert_dir: "{{ etcd_config_dir }}/ssl"

1
roles/kubespray-defaults/defaults/main.yaml

@ -505,6 +505,7 @@ pip_extra_args: |-
{{ pip_extra_args_list|join(' ') }} {{ pip_extra_args_list|join(' ') }}
etcd_config_dir: /etc/ssl/etcd etcd_config_dir: /etc/ssl/etcd
etcd_events_data_dir: "/var/lib/etcd-events"
etcd_cert_dir: "{{ etcd_config_dir }}/ssl" etcd_cert_dir: "{{ etcd_config_dir }}/ssl"
typha_enabled: false typha_enabled: false

4
roles/reset/tasks/main.yml

@ -198,8 +198,8 @@
- "{{ ansible_env.HOME | default('/root') }}/.kube" - "{{ ansible_env.HOME | default('/root') }}/.kube"
- "{{ ansible_env.HOME | default('/root') }}/.helm" - "{{ ansible_env.HOME | default('/root') }}/.helm"
- "{{ etcd_data_dir }}" - "{{ etcd_data_dir }}"
- /var/lib/etcd-events
- /etc/ssl/etcd
- "{{ etcd_events_data_dir }}"
- "{{ etcd_config_dir }}"
- /var/log/calico - /var/log/calico
- /etc/cni - /etc/cni
- "{{ nginx_config_dir }}" - "{{ nginx_config_dir }}"

Loading…
Cancel
Save