Compare commits

..
6 Commits
Author SHA1 Message Date
xavier ce80ba0ee8 chore: minor changes in profiles
- reorder keys
- clean useless (dynamic) fields
- rename somes profile to normalize naming
2025-10-11 22:07:37 +02:00
xavier cb09ad0dbd Merge pull request 'feat: Add unattended-upgrades system profile' (#14) from feat/unattended-upgrades-profile into dev
Reviewed-on: cloud.logerais.com/lxd-profiles#14
2025-10-11 22:07:27 +02:00
xavier 25f0947ce2 Merge branch 'dev' into feat/unattended-upgrades-profile 2025-10-11 22:06:44 +02:00
xavier d1d509a584 Merge pull request 'feat: Add profile to install streamrip application' (#15) from feat/streamrip into dev
Reviewed-on: cloud.logerais.com/lxd-profiles#15
2025-10-11 22:06:30 +02:00
xavier 0a363c086a feat: Add profile to install streamrip application 2025-10-11 19:25:47 +02:00
xavierandClaude 582f351216 feat: Add unattended-upgrades system profile
Add a new system profile to enable automatic security updates on Ubuntu
containers using unattended-upgrades.

Features:
- Automatic installation of unattended-upgrades and apt-listchanges
- Daily security updates for Ubuntu packages
- Weekly cleanup of unused packages
- Configurable automatic reboot (disabled by default)
- ESM (Extended Security Maintenance) updates support

Configuration:
- Updates check: Daily
- Security updates: Automatic
- Autoclean interval: 7 days
- Automatic reboot: Disabled (can be enabled by setting to "true")
- Reboot time: 02:00 (if enabled)
- Remove unused dependencies: Enabled

Usage:
Apply this profile to any Ubuntu container to enable automatic security updates:
  lxc profile assign mycontainer default,unattended-upgrades

Closes #5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 00:07:42 +02:00
2 changed files with 81 additions and 0 deletions

No files matched your search

@@ -0,0 +1,49 @@
name: streamrip
description: Install streamrip (https://github.com/nathom/streamrip)
config:
cloud-init.vendor-data: |
#cloud-config
# Packages
package_update: true
package_upgrade: true
packages:
- curl
- python3-venv
- build-essential
- zlib1g-dev
- libjpeg-dev
users:
- name: rip
groups: sudo
shell: /bin/bash
sudo: ['ALL=(ALL) NOPASSWD:ALL']
write_files:
- path: /tmp/setup-mise.bash
permissions: '0755'
owner: root:root
content: |
#!/bin/bash
echo "This script runs as the user" $(whoami) > /tmp/setup-mise.log
exec 2>&1 >> /tmp/setup-mise.log
# Install mise
curl https://mise.run | sh
echo 'test -x ~/.local/bin/mise && source <(~/.local/bin/mise activate bash)' >> ~/.bashrc
# Activate mise
test -x ~/.local/bin/mise && source <(~/.local/bin/mise activate bash)
# Configure mise
mise settings set experimental true
mise use -g usage # for completion
# Install streamrip
mise use -g python
mise use -g pipx
mise use -g pipx:streamrip
runcmd:
- sudo -u rip /tmp/setup-mise.bash
@@ -0,0 +1,32 @@
name: unattended-upgrades
description: "Profil pour activer les unattended upgrades sur Ubuntu"
devices: {}
config:
cloud-init.vendor-data: |
#cloud-config
package_update: true
package_upgrade: true
packages:
- unattended-upgrades
- apt-listchanges
write_files:
- path: /etc/apt/apt.conf.d/20auto-upgrades
content: |
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::AutocleanInterval "7";
- path: /etc/apt/apt.conf.d/50unattended-upgrades
content: |
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
"${distro_id}ESM:${distro_codename}";
};
Unattended-Upgrade::Automatic-Reboot "false";
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
Unattended-Upgrade::Remove-Unused-Dependencies "true";
runcmd:
- [ systemctl, enable, --now, unattended-upgrades ]