Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
k8s_set_facts: setup facts when kube node RPM not installed (#341)
Browse files Browse the repository at this point in the history
The logic for determining the use of system containers was missing a
case when the `kubernetes-node` RPM was not installed on the host, but
the host was also not a Fedora/CentOS platform.  For example, our
internal 'autobrew' streams.

This updates the logic to handle this case.
  • Loading branch information
Micah Abbott committed Feb 20, 2018
1 parent 63e1236 commit 2531a1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/kubernetes_set_facts/tasks/main.yml
Expand Up @@ -36,7 +36,8 @@

- name: Define kube 1.7 master nodes, worker nodes and etcd images
when: (ansible_distribution == "Fedora" and ansible_distribution_major_version > '26') or
(ansible_distribution == "CentOSDev")
(ansible_distribution == "CentOSDev") or
(g_atomic_host is not defined)
set_fact:
kube_maj_ver: "1.7"
kube_apiserver: "registry.fedoraproject.org/f27/kubernetes-apiserver"
Expand Down

0 comments on commit 2531a1b

Please sign in to comment.