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
46ee9fac
Commit
46ee9fac
authored
8 years ago
by
Matthew Mosesohn
Browse files
Options
Downloads
Patches
Plain Diff
Fix ca certificate loading on CoreOS
parent
6cc05c10
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/etcd/tasks/gen_certs.yml
+8
-7
8 additions, 7 deletions
roles/etcd/tasks/gen_certs.yml
roles/kubernetes/secrets/tasks/gen_certs.yml
+7
-7
7 additions, 7 deletions
roles/kubernetes/secrets/tasks/gen_certs.yml
with
15 additions
and
14 deletions
roles/etcd/tasks/gen_certs.yml
+
8
−
7
View file @
46ee9fac
...
...
@@ -84,21 +84,21 @@
when
:
inventory_hostname in groups['etcd']
changed_when
:
false
-
name
:
Gen_certs | target ca-certificate
s directory
-
name
:
Gen_certs | target ca-certificate
store file
set_fact
:
ca_cert_
dir
:
|-
ca_cert_
path
:
|-
{% if ansible_os_family == "Debian" -%}
/usr/local/share/ca-certificates
/usr/local/share/ca-certificates
/etcd-ca.crt
{%- elif ansible_os_family == "RedHat" -%}
/etc/pki/ca-trust/source/anchors
/etc/pki/ca-trust/source/anchors
/etcd-ca.crt
{%- elif ansible_os_family == "CoreOS" -%}
/etc/ssl/certs
/etc/ssl/certs
/etcd-ca.pem
{%- endif %}
-
name
:
Gen_certs | add CA to trusted CA dir
copy
:
src
:
"
{{
etcd_cert_dir
}}/ca.pem"
dest
:
"
{{
ca_cert_
dir
}}/etcd-ca.crt
"
dest
:
"
{{
ca_cert_
path
}}
"
remote_src
:
true
register
:
etcd_ca_cert
...
...
@@ -106,6 +106,7 @@
command
:
update-ca-certificates
when
:
etcd_ca_cert.changed and ansible_os_family in ["Debian", "CoreOS"]
-
name
:
Gen_certs | update ca-certificates
a
(RedHat)
-
name
:
Gen_certs | update ca-certificates (RedHat)
command
:
update-ca-trust extract
when
:
etcd_ca_cert.changed and ansible_os_family == "RedHat"
This diff is collapsed.
Click to expand it.
roles/kubernetes/secrets/tasks/gen_certs.yml
+
7
−
7
View file @
46ee9fac
...
...
@@ -65,21 +65,21 @@
when
:
inventory_hostname in groups['kube-master']
changed_when
:
false
-
name
:
Gen_certs | target ca-certificates
directory
-
name
:
Gen_certs | target ca-certificates
path
set_fact
:
ca_cert_
dir
:
|-
ca_cert_
path
:
|-
{% if ansible_os_family == "Debian" -%}
/usr/local/share/ca-certificates
/usr/local/share/ca-certificates
/kube-ca.crt
{%- elif ansible_os_family == "RedHat" -%}
/etc/pki/ca-trust/source/anchors
/etc/pki/ca-trust/source/anchors
/kube-ca.crt
{%- elif ansible_os_family == "CoreOS" -%}
/etc/ssl/certs
/etc/ssl/certs
/kube-ca.pem
{%- endif %}
-
name
:
Gen_certs | add CA to trusted CA dir
copy
:
src
:
"
{{
kube_cert_dir
}}/ca.pem"
dest
:
"
{{
ca_cert_
dir
}}/kube-ca.crt
"
dest
:
"
{{
ca_cert_
path
}}
"
remote_src
:
true
register
:
kube_ca_cert
...
...
@@ -87,7 +87,7 @@
command
:
update-ca-certificates
when
:
kube_ca_cert.changed and ansible_os_family in ["Debian", "CoreOS"]
-
name
:
Gen_certs | update ca-certificates
a
(RedHat)
-
name
:
Gen_certs | update ca-certificates (RedHat)
command
:
update-ca-trust extract
when
:
kube_ca_cert.changed and ansible_os_family == "RedHat"
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