-
Notifications
You must be signed in to change notification settings - Fork 65
Initial support for RHEL8 #198
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not only for RHEL8, but please see that specific diff for systemd (podman-restart.service) that's required when a server reboots to restart the ECE services. I also added the "docker" command specific by the documentation (optional).
- name: Podman daemon is enabled and systemd has read all changes
- systemd:
+ ansible.builtin.systemd:
name: "{{ item }}"
enabled: yes
daemon_reload: yes
loop:
- podman.service
- - podman.socket
\ No newline at end of file
+ - podman.socket
+ - podman-restart.service
+
+- name: Create docker cmd redirect to podman
+ ansible.builtin.copy:
+ content: |
+ #!/bin/bash
+ podman-remote --url unix:///var/run/podman/podman.sock "$@"
+ dest: /usr/bin/docker
+ mode: 0755
\ No newline at end of file
@smalenfant Good catch on |
I don't think we need that fake docker to podman link. This was only something documented by Elastic. Maybe required for diagnostics? I don't know. |
@cp-elastic I noticed on a recent execution of the playbook, that there is another task in tasks/vmimage/main.yml that fails when podman is used as container engine. ansible-elastic-cloud-enterprise/tasks/vmimage/main.yml Lines 2 to 6 in c7ddbc3
I managed to fix it, by adding the conditional |
@fgierlinger That's odd, I didn't run into that in testing. It does seem like that simple fix should suffice. Thank you! |
This PR fixes RHEL8's configurations to work with the new Podman workflow.
Related:
#196
#182