Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
6f4f170a
Commit
6f4f170a
authored
9 years ago
by
Smaine Kahlouch
Browse files
Options
Downloads
Patches
Plain Diff
remove useless etcd download, runs into docker containers
parent
3f3b03bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/download/tasks/etcd.yml
+0
-42
0 additions, 42 deletions
roles/download/tasks/etcd.yml
roles/download/tasks/main.yml
+0
-1
0 additions, 1 deletion
roles/download/tasks/main.yml
with
0 additions
and
43 deletions
roles/download/tasks/etcd.yml
deleted
100644 → 0
+
0
−
42
View file @
3f3b03bc
---
-
name
:
Create etcd release directory
local_action
:
file
path={{ local_release_dir }}/etcd/bin
recurse=yes
state=directory
delegate_to
:
"
{{
groups['kube-master'][0]
}}"
-
name
:
Check if etcd release archive has been downloaded
local_action
:
stat
path={{ local_release_dir }}/etcd/etcd-{{ etcd_version }}-linux-amd64.tar.gz
register
:
e_tar
delegate_to
:
"
{{
groups['kube-master'][0]
}}"
# issues with get_url module and redirects, to be tested again in the near future
-
name
:
Download etcd
local_action
:
shell
curl -o {{ local_release_dir }}/etcd/etcd-{{ etcd_version }}-linux-amd64.tar.gz -Ls {{ etcd_download_url }}/{{ etcd_version }}/etcd-{{ etcd_version }}-linux-amd64.tar.gz
when
:
not e_tar.stat.exists
register
:
dl_etcd
delegate_to
:
"
{{
groups['kube-master'][0]
}}"
-
name
:
Extract etcd archive
local_action
:
unarchive
src={{ local_release_dir }}/etcd/etcd-{{ etcd_version }}-linux-amd64.tar.gz
dest={{ local_release_dir }}/etcd copy=no
when
:
dl_etcd|changed
delegate_to
:
"
{{
groups['kube-master'][0]
}}"
-
name
:
Pick up only etcd binaries
local_action
:
copy
src={{ local_release_dir }}/etcd/etcd-{{ etcd_version }}-linux-amd64/{{ item }}
dest={{ local_release_dir }}/etcd/bin
with_items
:
-
etcdctl
-
etcd
when
:
dl_etcd|changed
-
name
:
Delete unused etcd files
local_action
:
file
path={{ local_release_dir }}/etcd/etcd-{{ etcd_version }}-linux-amd64 state=absent
when
:
dl_etcd|changed
This diff is collapsed.
Click to expand it.
roles/download/tasks/main.yml
+
0
−
1
View file @
6f4f170a
---
-
include
:
kubernetes.yml
-
include
:
etcd.yml
-
include
:
calico.yml
-
include
:
flannel.yml
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment