diff --git a/ansible/group_vars/all/config.yaml b/ansible/group_vars/all/config.yaml index 124553d..6ae268f 100644 --- a/ansible/group_vars/all/config.yaml +++ b/ansible/group_vars/all/config.yaml @@ -2,4 +2,4 @@ repo_location: /opt/custom-rpms blueprint_admin_ssh_public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFW62WJXI1ZCMfNA4w0dMpL0fsldhbEfULNGIUB0nQui nmasse@localhost.localdomain www_location: /var/www compose_timeout: 300 -kickstart_root_disk: /dev/vda +kickstart_root_disk: /dev/disk/by-path/pci-0000:00:12.0-ata-1 diff --git a/ansible/templates/kiosk.toml.j2 b/ansible/templates/kiosk.toml.j2 index f862dd8..1992f8f 100644 --- a/ansible/templates/kiosk.toml.j2 +++ b/ansible/templates/kiosk.toml.j2 @@ -11,9 +11,6 @@ version = "*" [[packages]] name = "cockpit" -[[packages]] -name = "htop" - [[packages]] name = "microshift-manifests" version = "*" diff --git a/imagebuilder/kiosk.toml b/imagebuilder/kiosk.toml index 4239c93..7973870 100644 --- a/imagebuilder/kiosk.toml +++ b/imagebuilder/kiosk.toml @@ -22,7 +22,7 @@ name = "cockpit-system" hostname = "kiosk.local" [customizations.services] -enabled = ["cockpit.socket", "sshd", "microshift"] +enabled = ["cockpit.socket", "sshd", "microshift", "rpm-ostreed", "rpm-ostreed-automatic.timer"] [customizations.timezone] timezone = "Europe/Paris" @@ -36,6 +36,26 @@ keyboard = "fr" [customizations.firewall] ports = ["22:tcp", "30000:tcp", "9090:tcp", "6443:tcp"] +## +## Automatic updates +## +## This file is used by the rpm-ostreed service that is triggered by the +## rpm-ostreed-automatic systemd timer: +## +## [Timer] +## OnBootSec=1h # 1 hour after boot +## OnUnitInactiveSec=1d # 1 day after last check +## +## But you can trigger a check manually with: +## +## sudo rpm-ostree upgrade --trigger-automatic-update-policy +## +[[customizations.files]] +path = "/etc/rpm-ostreed.conf" +data = """[Daemon] +AutomaticUpdatePolicy=apply +""" + [[customizations.user]] name = "admin" description = "admin" @@ -44,3 +64,10 @@ key = "__ADMIN_SSH_PUBLIC_KEY__" home = "/home/admin/" shell = "/usr/bin/bash" groups = ["users", "wheel"] + +[[customizations.user]] +name = "kiosk" +description = "kiosk" +password = '__KIOSK_PASSWORD__' +home = "/home/kiosk/" +shell = "/bin/bash"