diff --git a/roles/download/defaults/main.yml b/roles/download/defaults/main.yml index af30908c1..88633c351 100644 --- a/roles/download/defaults/main.yml +++ b/roles/download/defaults/main.yml @@ -34,16 +34,12 @@ flannel_cni_version: "v0.2.0" pod_infra_version: 3.0 # Download URLs -etcd_download_url: "https://storage.googleapis.com/kargo/{{etcd_version}}_etcd" kubeadm_download_url: "https://storage.googleapis.com/kubernetes-release/release/{{ kubeadm_version }}/bin/linux/amd64/kubeadm" # Checksums -etcd_checksum: "274c46a7f8d26f7ae99d6880610f54933cbcf7f3beafa19236c52eb5df8c7a0b" kubeadm_checksum: "ddd5949699d6bdbc0b90b379e7e534f137b1058db1acc8f26cc54843f017ffbf" # Containers -# Possible values: host, docker -etcd_deployment_type: "docker" etcd_image_repo: "quay.io/coreos/etcd" etcd_image_tag: "{{ etcd_version }}" flannel_image_repo: "quay.io/coreos/flannel" @@ -124,18 +120,10 @@ downloads: sha256: "{{ netcheck_agent_digest_checksum|default(None) }}" enabled: "{{ deploy_netchecker|bool }}" etcd: - version: "{{etcd_version}}" - dest: "etcd/etcd-{{ etcd_version }}-linux-amd64.tar.gz" - sha256: >- - {%- if etcd_deployment_type in [ 'docker', 'rkt' ] -%}{{etcd_digest_checksum|default(None)}}{%- else -%}{{etcd_checksum}}{%- endif -%} - source_url: "{{ etcd_download_url }}" - url: "{{ etcd_download_url }}" - unarchive: true - owner: "etcd" - mode: "0755" - container: "{{ etcd_deployment_type in [ 'docker', 'rkt' ] }}" + container: true repo: "{{ etcd_image_repo }}" tag: "{{ etcd_image_tag }}" + sha256: "{{etcd_digest_checksum|default(None)}}" kubeadm: version: "{{ kubeadm_version }}" dest: "kubeadm" diff --git a/roles/etcd/defaults/main.yml b/roles/etcd/defaults/main.yml index 7e7c5a108..61a7386b5 100644 --- a/roles/etcd/defaults/main.yml +++ b/roles/etcd/defaults/main.yml @@ -3,7 +3,6 @@ etcd_cluster_setup: true etcd_backup_prefix: "/var/backups" -etcd_bin_dir: "{{ local_release_dir }}/etcd/etcd-{{ etcd_version }}-linux-amd64/" etcd_data_dir: "/var/lib/etcd" etcd_config_dir: /etc/ssl/etcd diff --git a/roles/etcd/tasks/install_docker.yml b/roles/etcd/tasks/install_docker.yml index f7589e812..f0b277981 100644 --- a/roles/etcd/tasks/install_docker.yml +++ b/roles/etcd/tasks/install_docker.yml @@ -1,5 +1,4 @@ --- -# Plan A: no docker-py deps - name: Install | Copy etcdctl binary from docker container command: sh -c "{{ docker_bin_dir }}/docker rm -f etcdctl-binarycopy; {{ docker_bin_dir }}/docker create --name etcdctl-binarycopy {{ etcd_image_repo }}:{{ etcd_image_tag }} &&