Browse Source

wip

ca-cert-and-multi-ks
Nicolas Massé 2 years ago
parent
commit
2b62a17eba
  1. 2
      ansible/group_vars/all/config.yaml
  2. 3
      ansible/templates/kiosk.toml.j2
  3. 29
      imagebuilder/kiosk.toml

2
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 blueprint_admin_ssh_public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFW62WJXI1ZCMfNA4w0dMpL0fsldhbEfULNGIUB0nQui nmasse@localhost.localdomain
www_location: /var/www www_location: /var/www
compose_timeout: 300 compose_timeout: 300
kickstart_root_disk: /dev/vda kickstart_root_disk: /dev/disk/by-path/pci-0000:00:12.0-ata-1

3
ansible/templates/kiosk.toml.j2

@ -11,9 +11,6 @@ version = "*"
[[packages]] [[packages]]
name = "cockpit" name = "cockpit"
[[packages]]
name = "htop"
[[packages]] [[packages]]
name = "microshift-manifests" name = "microshift-manifests"
version = "*" version = "*"

29
imagebuilder/kiosk.toml

@ -22,7 +22,7 @@ name = "cockpit-system"
hostname = "kiosk.local" hostname = "kiosk.local"
[customizations.services] [customizations.services]
enabled = ["cockpit.socket", "sshd", "microshift"] enabled = ["cockpit.socket", "sshd", "microshift", "rpm-ostreed", "rpm-ostreed-automatic.timer"]
[customizations.timezone] [customizations.timezone]
timezone = "Europe/Paris" timezone = "Europe/Paris"
@ -36,6 +36,26 @@ keyboard = "fr"
[customizations.firewall] [customizations.firewall]
ports = ["22:tcp", "30000:tcp", "9090:tcp", "6443:tcp"] 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]] [[customizations.user]]
name = "admin" name = "admin"
description = "admin" description = "admin"
@ -44,3 +64,10 @@ key = "__ADMIN_SSH_PUBLIC_KEY__"
home = "/home/admin/" home = "/home/admin/"
shell = "/usr/bin/bash" shell = "/usr/bin/bash"
groups = ["users", "wheel"] groups = ["users", "wheel"]
[[customizations.user]]
name = "kiosk"
description = "kiosk"
password = '__KIOSK_PASSWORD__'
home = "/home/kiosk/"
shell = "/bin/bash"

Loading…
Cancel
Save