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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
8f85ea89
Commit
8f85ea89
authored
6 years ago
by
Anatoly Rugalev
Browse files
Options
Downloads
Patches
Plain Diff
Added `download_validate_certs` option which allows to disables SSL validation for file downloads
parent
51a5f54f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
inventory/sample/group_vars/all/all.yml
+5
-0
5 additions, 0 deletions
inventory/sample/group_vars/all/all.yml
roles/download/defaults/main.yml
+5
-0
5 additions, 0 deletions
roles/download/defaults/main.yml
roles/download/tasks/download_file.yml
+1
-0
1 addition, 0 deletions
roles/download/tasks/download_file.yml
with
11 additions
and
0 deletions
inventory/sample/group_vars/all/all.yml
+
5
−
0
View file @
8f85ea89
...
@@ -61,6 +61,11 @@ bin_dir: /usr/local/bin
...
@@ -61,6 +61,11 @@ bin_dir: /usr/local/bin
## Refer to roles/kubespray-defaults/defaults/main.yml before modifying no_proxy
## Refer to roles/kubespray-defaults/defaults/main.yml before modifying no_proxy
#no_proxy: ""
#no_proxy: ""
## Some problems may occur when downloading files over https proxy due to ansible bug
## https://github.com/ansible/ansible/issues/32750. Set this variable to False to disable
## SSL validation of get_url module. Note that kubespray will still be performing checksum validation.
#download_validate_certs: False
## If you need exclude all cluster nodes from proxy and other resources, add other resources here.
## If you need exclude all cluster nodes from proxy and other resources, add other resources here.
#additional_no_proxy: ""
#additional_no_proxy: ""
...
...
This diff is collapsed.
Click to expand it.
roles/download/defaults/main.yml
+
5
−
0
View file @
8f85ea89
...
@@ -23,6 +23,11 @@ download_localhost: False
...
@@ -23,6 +23,11 @@ download_localhost: False
# Always pull images if set to True. Otherwise check by the repo's tag/digest.
# Always pull images if set to True. Otherwise check by the repo's tag/digest.
download_always_pull
:
False
download_always_pull
:
False
# Some problems may occur when downloading files over https proxy due to ansible bug
# https://github.com/ansible/ansible/issues/32750. Set this variable to False to disable
# SSL validation of get_url module. Note that kubespray will still be performing checksum validation.
download_validate_certs
:
True
# Use the first kube-master if download_localhost is not set
# Use the first kube-master if download_localhost is not set
download_delegate
:
"
{%
if
download_localhost
%}localhost{%
else
%}{{groups['kube-master'][0]}}{%
endif
%}"
download_delegate
:
"
{%
if
download_localhost
%}localhost{%
else
%}{{groups['kube-master'][0]}}{%
endif
%}"
...
...
This diff is collapsed.
Click to expand it.
roles/download/tasks/download_file.yml
+
1
−
0
View file @
8f85ea89
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
sha256sum
:
"
{{download.sha256
|
default(omit)}}"
sha256sum
:
"
{{download.sha256
|
default(omit)}}"
owner
:
"
{{
download.owner|default(omit)
}}"
owner
:
"
{{
download.owner|default(omit)
}}"
mode
:
"
{{
download.mode|default(omit)
}}"
mode
:
"
{{
download.mode|default(omit)
}}"
validate_certs
:
"
{{
download_validate_certs
}}"
register
:
get_url_result
register
:
get_url_result
until
:
"
'OK'
in
get_url_result.msg
or
'file
already
exists'
in
get_url_result.msg"
until
:
"
'OK'
in
get_url_result.msg
or
'file
already
exists'
in
get_url_result.msg"
retries
:
4
retries
:
4
...
...
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