Commit Graph
58 Commits
Author SHA1 Message Date
xavierandClaude Opus 5.5 8f5255f36c feat(profiles): nextcloud profile : Add DB dump script and systemd timers
Add a script to dump the DB in the volume dir so DB dumps can be backed
up alongside data files, like the gitea profile.

The DB is much bigger than gitea's (~216 MB of SQL): the dump runs every
4 hours and the last 24 hours are kept. The dump is plain SQL, not
gzipped, so that restic deduplicates between dumps: measured, a gzipped
dump adds ~67 MB to the repository each time, a plain one ~5 MB.

The dump goes through a pipe: the snap's AppArmor profile prevents
nextcloud.mysqldump from writing to a redirected file. --single-transaction
gives a consistent dump without locking the tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJhddwLWVwYhGB8t6RP
2026-11-22 15:55:42 +01:00
xavierandClaude Opus 5.5 b8b847fe68 refactor(profiles): gitea profile : Use explicit variable names in the DB dump script
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:55:42 +01:00
xavierandClaude Opus 5.5 ef76fb8fec fix(profiles): gitea profile : Enable the DB dump timer after installing gitea
The timer was enabled before the snap install, so a first run could fire
while gitea was not installed yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:55:42 +01:00
xavierandClaude Opus 5.5 17c9b04780 docs: Backrest tutorial with recorded demos and UI screenshots (demo/backrest)
- demo/backrest/README.md (fr) and README.en.md: a backup instance reading
  the data volume of another instance read-only, restic repository on its own
  volume, Backrest configured from the web UI, then restic on the command
  line and restoring a lost file
- install and restore scenarios recorded with autocast; restore configures
  Backrest through its configuration file (autoInitialize)
- UI screenshots made by screenshots.sh: a Debian instance with Chromium
  driven by Playwright fills in the forms
- demo/lib.sh: helpers shared by the tutorial preambles
- Docker tutorial: a filesystem volume can be shared by several instances,
  two Docker daemons must not share /var/lib/docker

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJkPw1qcoCubeKqfffm
2026-11-22 15:51:14 +01:00
xavier 296d45e295 feat(profiles): gitea profile : Add DB dump script and systemd timers
Add a script to dump the DB in the volume dir so DB dumps can be backed
up alongside data files.
Also add systemd timers to run the script each hour.
2026-11-22 13:52:40 +01:00
xavierandClaude Opus 5.5 f278c14bcb docs: Docker tutorial: data volume with snapshots, adapting an installed profile
- docker-volume-data uses the default pool (present after any lxd init)
  instead of btrfs, so that it installs everywhere; the volume must exist
  before the profile is installed
- Going further: create the volume and schedule its snapshots, launch with
  the profile, manual snapshot and restore
- Adapt an installed profile: copy the volume to another pool, change the
  profile in LXD, see the difference with mise list/diff, then go back with
  install or keep it with import; a copy of the profile for a second instance

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJkPw1qcoCubeKqfffm
2026-11-21 19:59:51 +01:00
xavierandClaude Opus 5.5 d33ee6d84f docs: Cast links in their own paragraph under the GIFs (Gitea rendering)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJkPw1qcoCubeKqfffm
2026-11-21 19:58:06 +01:00
xavierandClaude Opus 5.5 be68264e5c docs: Docker tutorial review: ubuntu:lts, long options, links to the casts
- ubuntu:lts instead of ubuntu:24.04 (26.04 today)
- cloud-init status --wait --long gives the summary, no need to read the log
- long options everywhere in the tutorial and its demos
- a discreet link to the asciinema recording under each GIF (pause, fast
  forward in Gitea's player), in the main README too
- castfix.py only restores the prompt after autocast's own !Clear

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJkPw1qcoCubeKqfffm
2026-11-21 19:49:56 +01:00
xavierandClaude Opus 5.5 372bf5d84b docs: Docker tutorial with recorded demos (demo/docker)
- demo/docker/README.md (fr) and README.en.md: step-by-step tutorial, from
  the clone of the repository to Docker used in an unprivileged LXD instance
- install and usage scenarios recorded with autocast, with their own hidden
  preamble (demo/docker/setup.sh) creating and removing what they need
- demo/castfix.py: puts back the shell prompt autocast drops and squeezes the
  cloud-init progress dots
- Tutorials section in the main READMEs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJkPw1qcoCubeKqfffm
2026-11-21 18:39:35 +01:00
xavierandClaude Opus 5.5 1333664688 feat: Add homedir and Musique volume profiles, fit streamrip to them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:38:06 +01:00
xavierandClaude Opus 5.5 5076154a54 docs: Update raw URLs after the repository moved to xavier/lxd-profiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 16:21:43 +01:00
xavierandClaude Opus 5.5 fb896eb086 docs: French demo README, English version in demo/README.en.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 16:08:05 +01:00
xavierandClaude Opus 5.5 1253ecd07b feat: Legend and terminal-wide descriptions in list
- list: legend with one status per line (symbol, meaning, count)
- list: description column sized to the terminal width (20 to 60
  characters), 50 when the output is not a terminal
- welcome: drop the status emojis, now explained by the legend
- demo: tour re-recorded (taller window for the legend)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 16:00:22 +01:00
xavierandClaude Opus 5.5 80533c18c4 docs: French README, plain lxc usage and demo, colored status emoji
- README in French (README.md) with an English version (README.en.md),
  linked from each other
- Usage split between plain lxc (mise is optional) and mise, with the
  prerequisites of each case
- New demo of plain lxc usage (demo/lxc.yaml), one subsection per demo
- list: 📝 instead of ⚠️ for profiles that differ, rendered in color
  like the other status emojis

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 15:40:12 +01:00
xavierandClaude Opus 5.5 e31a1b9111 feat: Add animated demos recorded with autocast and agg
Scenarios in demo/*.yaml are played by autocast into asciinema
recordings (.cast, playable in Gitea) and rendered as GIFs by agg for the
README. The recording tools and fonts (Inconsolata Nerd Font, Noto Color
Emoji) live in a separate mise environment:

    MISE_ENV=demo mise run demo <tour|install>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 15:16:46 +01:00
xavierandClaude Opus 5.5 3caef59c36 style: Normalize unattended-upgrades profile formatting
Drop the quoted description and the empty devices map, as written by
`mise run import`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 15:14:00 +01:00
xavierandClaude Opus 5.5 c921cfc6db feat: Add app-backrest profile (backrest + restic via cloud-init)
Installs the latest backrest release, run as root by a systemd unit
listening on 0.0.0.0:9898, with its config in /etc/backrest/config.json
and its data in /var/lib/backrest. Backrest downloads and maintains the
restic version it requires (>= 0.19.1, Ubuntu ships 0.18.1) in
/var/lib/backrest/restic, symlinked to /usr/local/bin/restic for CLI use.
Meant for a backup instance mounting volume-*-ro profiles (POC).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 02:28:48 +01:00
xavierandClaude Opus 5.5 37cfecf923 fix: Ignore YAML comments when comparing profiles
Comments in a repository file made an identical profile show as
different in list/diff/install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 01:45:44 +01:00
xavierandClaude Opus 5.5 206290d88b feat: Move gitea and nextcloud data volumes to dedicated profiles
- volume-gitea-data / volume-nextcloud-data: data volume mounted in the
  application instance (daily snapshots are configured on the volume)
- volume-gitea-data-ro / volume-nextcloud-data-ro: same volumes mounted
  read-only under /backup for the backup instance (restic + backrest),
  which must be unprivileged to share the volumes idmap
- app-gitea / app-nextcloud: only install the application, the volume
  now comes from the volume-* profile

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 01:45:44 +01:00
xavier 63333b2c1a feat: Update profile user-xavier 2026-11-21 00:41:17 +01:00
xavierandClaude Opus 5.5 2788a7f886 feat: Add microk8s-config and proxy-stun-turn profiles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 00:27:16 +01:00
xavierandClaude Opus 5.5 f37c01df57 feat: Switch profiles to cgroup v2 and drop raw.lxc from docker profiles
- Use lxc.cgroup2.devices.allow instead of the cgroup v1 key, ignored on
  cgroup v2 hosts (Ubuntu >= 21.10)
- Remove raw.lxc (unconfined apparmor, all devices, no cap drop) from
  docker, dokploy and coolify: privileged + nesting is enough, tested
  with build, published ports, privileged containers, limits and restart
- Add docker-unprivileged profile (nesting + mknod/setxattr syscall
  interception) for new containers
- Sync microk8s with the deployed version (device numbering)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
2026-11-21 00:27:16 +01:00
xavier f99bd9e65a feat: Improve description for some profiles 2026-11-21 00:07:17 +01:00
xavier 1930cc67e0 feat: Improve profile listing by adding a desc and add a task to display profiles 2026-11-21 00:03:28 +01:00
xavier 19b6b16ea8 feat: Update or fix some profiles 2026-11-20 23:41:58 +01:00
xavier eff9cfc92c feat: Use mise tasks to ease list/install/update/diff of LXC profiles between LXC and the repo 2026-11-20 23:40:55 +01:00
xavier d21bb31d95 feat: Add a profile to deploy Coolify 2026-10-11 16:48:57 +02:00
xavier ed50804599 feat: Add a profile to deploy Dokploy 2026-10-11 16:48:46 +02:00
xavier 01b95ebe08 Revert "feat: Add "proxy" profile to share lxd socket from host to a container"
This reverts commit 6feb8ebad2.
2025-10-27 15:05:00 +01:00
xavier 6feb8ebad2 feat: Add "proxy" profile to share lxd socket from host to a container 2025-10-20 18:57:17 +02:00
xavier 232f528aca chore: minor changes in profiles
- reorder keys
- clean useless (dynamic) fields
- rename somes profile to normalize naming
2025-10-11 22:09:43 +02:00
xavier 523626a1e5 feat: Add profile to install streamrip application 2025-10-11 22:09:43 +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
xavierandClaude 2484b28ada fix: Swap btrfs and zfs storage profile filenames
The file contents were inverted:
- btrfs.profile.yaml contained the zfs profile
- zfs.profile.yaml contained the btrfs profile

Fixed by swapping the filenames to match their content.

Fixes #8

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-06 23:27:15 +02:00
xavierandClaude bebb8cdfcf fix: Use ubuntu:lts for consistency in documentation examples
Replace ubuntu:22.04 with ubuntu:lts in test container creation example
to maintain consistency with other examples in the documentation.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-06 23:27:15 +02:00
xavierandClaude 9a239b34b6 feat: Add LXD host socket profile for container management
This profile allows containers to access the host LXD daemon via Unix socket,
enabling centralized LXD management from within containers.

Features:
- Proxy host LXD socket to container at same path
- Automatic LXD client installation via snap
- No additional configuration required
- Practical guide and example script included

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-06 23:27:15 +02:00
xavierandClaude 43d621bf02 fix: Standardize proxy profile filenames to use .profile.yaml extension
Rename all proxy profile files to follow the repository naming convention:
- proxy-docker-tcp.yaml -> proxy-docker-tcp.profile.yaml
- proxy-docker-unix.yaml -> proxy-docker-unix.profile.yaml
- proxy-http.yaml -> proxy-http.profile.yaml
- proxy-https.yaml -> proxy-https.profile.yaml
- proxy-taskwarrior.yaml -> proxy-taskwarrior.profile.yaml

This ensures consistency across all profile categories in the repository.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-06 23:27:15 +02:00
xavier 4bf3a3b6fd feat: Add profile for ollama 2025-10-05 22:58:28 +02:00
xavier 18b1b7e43a feat: Improve profile for user xavier 2025-10-05 22:58:09 +02:00
xavier cb7dd981bf feat: Improve documentation and add example scripts 2025-09-28 17:39:46 +02:00
xavier 0c2596f6a6 feat: Rename script to install profiles 2025-09-28 15:09:54 +02:00
xavier 0f6233590f feat(profiles): Improve docker "proxy" profiles 2025-09-24 18:14:41 +02:00
xavier f30190b0ed feat: Simplify docker profile 2025-07-13 00:07:29 +02:00
xavier ae01546c0a feat: Enhance setup-profiles.bash
Move pre-requisites check in a separate function
2025-07-13 00:06:13 +02:00
xavierandGemini CLI 91a4ef1c1a feat: Enhance setup-profiles.bash
The `setup-profiles.bash` script has been significantly enhanced to:
- Include a prerequisite check for `yq`.
- Extract the LXD profile name directly from the YAML file using `yq`.

The README.md has been updated to reflect the new usage of `setup-profiles.bash`,
which now accepts file paths as arguments for specific profile updates.

Co-authored-by: Gemini CLI <gemini-cli@google.com>
2025-07-04 19:30:52 +02:00
xavierandGemini CLI 6eee6eafee feat: Enhance setup-profiles.bash for selective updates
The `setup-profiles.bash` script has been enhanced to allow for selective updates of LXD profiles.
Users can now specify one or more profile names as arguments to update only those specific profiles.
If no arguments are provided, the script will default to updating all profiles found in the `profiles/` directory,
maintaining the previous behavior.

This change improves flexibility and control when managing LXD profiles.

Co-authored-by: Gemini CLI <gemini-cli@google.com>
2025-07-04 19:07:27 +02:00
xavier e42dd60d83 feat: Add profile for user xavier 2025-06-24 03:26:42 +02:00
xavier 91045fa232 feat: Mise à jour 2024-03-13 23:14:26 +01:00
xavier 6ebedbeca3 feat(profiles): Ajout de profiles pour les proxy 2024-02-17 15:57:31 +00:00
xavier 80dc6af3c6 feat(profiles): Ajout de profiles pour les snapshots 2024-02-17 15:57:07 +00:00
xavier 1af36757a2 feat(profiles): Mise à jour des profiles stockage 2024-02-17 15:56:28 +00:00
xavier 975bff0025 feat: Mise à jour des profiles réseau 2024-02-16 16:21:45 +00:00
xavier 4bab7e9ed4 feat(profiles): Ajout d'un profile pour le volume hébergeant les certificats 2024-02-14 18:40:01 +00:00
xavier 9fdc09fdac feat(profiles): Ajout d'un profile pour le stockage dans zfs 2024-02-14 18:38:05 +00:00
xavier 510dadb00d feat(profiles): Mise à jour du profile pour traefik 2024-02-14 18:37:18 +00:00
xavier 6f7c0ee078 feat(profiles): Mise à jour des profiles pour les interfaces réseau 2024-02-14 18:37:18 +00:00
xavier 0a62df7352 feat: Ajout des profiles 2024-02-10 01:13:40 +00:00
xavier 9be5866a4d first commit 2024-02-10 01:12:23 +00:00