+
Skip to content

Attempting to do this on Fedora 26 caused issues if I had kubernetes/runc/cri-o installed. #16

Open
@rhatdan

Description

@rhatdan

We probably need to expand this to work with distro packages. Installing of the kubernets packages at the end were causing me issues also.

Here is the diff that I used to make it work on fedora 26

diff --git a/cri-o.yml b/cri-o.yml
index ab681b9..b9e707d 100644
--- a/cri-o.yml
+++ b/cri-o.yml
@@ -33,6 +33,9 @@
         - skopeo-containers
         - tar
         - wget
+        - runc
+        - cri-o
+        - kubernetes
       when: ansible_distribution == 'Fedora'
 
     - name: Make sure we have all required packages on RHEL/CentOS
@@ -125,7 +128,7 @@
               make install
 
     - name: link runc
-      file: src=/usr/local/sbin/runc dest=/usr/bin/runc state=link
+      file: src=/usr/local/sbin/runc dest=/usr/bin/runc state=link force=true
 
     - name: build cri-o
       shell: |
@@ -135,6 +138,7 @@
               make install && \
               make install.systemd && \
               make install.config
+      when: ansible_distribution != 'Fedora'
 
     - name: install policy.json in Ubuntu
       shell: |
diff --git a/install/kubernetes.yml b/install/kubernetes.yml
index e9f886a..cec7e56 100644
--- a/install/kubernetes.yml
+++ b/install/kubernetes.yml
@@ -30,3 +30,4 @@
     - kubeadm
     - kubectl
     - kubernetes-cni
+  when: ansible_distribution != "Fedora"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载