Browse Source

wip

ca-cert-and-multi-ks
Nicolas Massé 2 years ago
parent
commit
b294f79b5d
  1. 4
      ansible/templates/kiosk.ks.j2
  2. 9
      rpms/SPECS/kiosk-config.spec

4
ansible/templates/kiosk.ks.j2

@ -58,6 +58,10 @@ cat > /etc/crio/openshift-pull-secret << 'EOF'
EOF EOF
chmod 600 /etc/crio/openshift-pull-secret chmod 600 /etc/crio/openshift-pull-secret
# User creation in the ostree is now deprecated. Doing it in the Kickstart, then.
groupadd -r kiosk
useradd -r -N -g kiosk -d /home/kiosk -m kiosk
# Configure the firewall with the mandatory rules for MicroShift # Configure the firewall with the mandatory rules for MicroShift
firewall-offline-cmd --zone=trusted --add-source=10.42.0.0/16 firewall-offline-cmd --zone=trusted --add-source=10.42.0.0/16
firewall-offline-cmd --zone=trusted --add-source=169.254.169.1 firewall-offline-cmd --zone=trusted --add-source=169.254.169.1

9
rpms/SPECS/kiosk-config.spec

@ -72,8 +72,13 @@ install -m 0755 -D kiosk-app %{buildroot}/usr/bin/kiosk-app
%attr(0755, root, root) /usr/bin/kiosk-app %attr(0755, root, root) /usr/bin/kiosk-app
%pre %pre
getent group kiosk >/dev/null 2>&1 || groupadd -r kiosk ##
getent passwd kiosk >/dev/null 2>&1 || useradd -r -N -g kiosk -d /home/kiosk -m kiosk ## HEADS UP !!!
##
## The kiosk user needs to be created in the kickstart now.
##
#getent group kiosk >/dev/null 2>&1 || groupadd -r kiosk
#getent passwd kiosk >/dev/null 2>&1 || useradd -r -N -g kiosk -d /home/kiosk -m kiosk
%post %post
%systemd_user_post com.redhat.Kiosk.SampleApp.service %systemd_user_post com.redhat.Kiosk.SampleApp.service

Loading…
Cancel
Save