Replies: 5 comments
-
I have had some initial success.
I have had to make two changes,
---
- name: Prepare Diet Pi
gather_facts: false
hosts: all
tasks:
- name: Install lsb-release package
ansible.builtin.apt:
name: lsb-release
state: present
---
- name: Reboot
reboot:
reboot_command: /usr/sbin/shutdown -r now
listen: reboot I have also been using this playbook to attempt to reset/undo the machines to repeat testing. Run this after resetting the k3s install. ---
- name: Cleanup Diet Pi
gather_facts: false
hosts: all
tasks:
- name: Remove iptables package
ansible.builtin.apt:
name: iptables
state: absent
- name: Remove lsb-release package
ansible.builtin.apt:
name: lsb-release
state: absent
- name: Remove cgroup from cmdline.txt
ansible.builtin.replace:
path: /boot/cmdline.txt
regexp: '\s(cgroup_enable|cgroup_memory)=\S+'
replace: ''
notify: reboot
handlers:
- name: Reboot
ansible.builtin.reboot:
reboot_command: /usr/sbin/shutdown -r now
listen: reboot |
Beta Was this translation helpful? Give feedback.
-
Looks like diet pi isn't fully compatible for pi 5 yet. If it was I would look into it. I have some success with just Raspbian lite installed to my pi 5 with nvme drives overclocked. It works really well. I hope diet pi gets pi 5 support. Let us know how it goes! |
Beta Was this translation helpful? Give feedback.
-
Where do you get Raspbian lite these days? I could only find Raspberry Pi OS Lite. For diet pi, you need to
Tecnically the dependency on lsb-release could be removed if the OS Release facts could used instead of lsb facts |
Beta Was this translation helpful? Give feedback.
-
Hey all, any update on this? This does seem like an edge case that's hard to test in CI. I think that this support really belongs with Diet Pi or K3s rather than here because we are installing k3s. I'd also like to not leave this open indefinitely so if there is any progress or a PR we can open this back up. Also, I would like test cases written for it too considering I have no way to test this. Thank you! |
Beta Was this translation helpful? Give feedback.
-
I converted this to a discussion so that we can still track and discuss it. |
Beta Was this translation helpful? Give feedback.
-
Attempting to deploy a cluster on a new set of machines running Diet Pi does not work. Diet Pi has significantly lower resource requirements than a base Raspberry Pi OS Lite install which frees up resources for k3s processes.
See DietPi OS stats & comparison
Hopefully someone in the community will able able to assist with this issue. This open issue is also useful for others that may be trying to install on Diet Pi to know there are currently issues with Diet Pi and this playbook.
Expected Behavior
Diet Pi is based on Debian and k3s can run on it. The playbook should be able to deploy to a Diet Pi machine.
Current Behavior
There are additional tasks that need to be added to ensure the correct dependencies are installed. The current playbook depends on
lsb
ansible facts (ie ansible_facts.lsb). To gather these facts, ansible runslsb_release
command from thelsb-release
apt package. Either a task should be added to ensurelsb-release
is present. Alternatively, instead of relying on lsb release, the information provided in/etc/os-release
can be used which is available on theansible_distribution*
keys, ieSteps to Reproduce
AUTO_SETUP_SSH_PUBKEY==ssh-...
line with your public key to enable password-less SSHContext (variables)
Operating system: Diet Pi 9.1
Hardware: Raspberry Pi 4 (4GB / 8GB)
Variables Used
all.yml
Hosts
host.ini
Possible Solution
/etc/os-release
can provide the details required. This would avoid having to install a package, orThe excellent rpi4cluster guide can be used as a reference to possible steps to include in the playbook.
Beta Was this translation helpful? Give feedback.
All reactions