Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rhatdan opened this issue Jul 25, 2017 · 1 comment

Comments

@rhatdan
Copy link

rhatdan commented Jul 25, 2017

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"
@rhatdan
Copy link
Author

rhatdan commented Jul 25, 2017

@aweiteka PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant