Nested config

New features which should be implemented in Porteus Kiosk Edition and the kiosk wizard.
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Manny.Ratliff
White ninja
White ninja
Posts: 5
Joined: 24 Sep 2021, 18:59
Distribution: 5.2

Nested config

Post#1 by Manny.Ratliff » 25 Oct 2021, 16:15

What would be the possibility of a master config on the kiosk server that can be called from within another config file?
Example:
I have 3 config files because I need a different printer set as the default for each of the devices pointed at these configs. My only settings that are different are the
#printer_connection=
#printer_model=
#printer_name=

I cannot use the Nested Configuration feature because the PC's get moved or replaced easily and fetching the PC ID each time to update the global config would be more cumbersome than just keeping one config per room and repeating.

So, master config file sits on server called "MSTR-1"

Code: Select all

proxy=X.X.X.X
volume_level=100%
browser=chrome
homepage_append=mac
homepage_check=StudentNav is not available - please submit an IT help ticket
homepage=https://studentnav.sample.com
import_certificates=cert.sample
allow_popup_windows=yes
disable_zoom_controls=yes
#disable_address_bar=yes
right_mouse_click=no
silent_printing=no
printer_size=Letter
rtc_wake=Monday-06:00 Tuesday-06:00 Wednesday-06:00 Thursday-06:00 Friday-06:00
scheduled_action=Monday-12:10 Tuesday-12:10 Wednesday-12:10 Thursday-12:10 Friday-12:10 action:killall firefox chrome; xset dpms force on; sleep 510m; shutdown
dpms_idle=90
wake_on_lan=yes
timezone=America/New_York
root_password=pass
vnc_interactive=yes
vnc_password=sampler
additional_components=09-x11vnc.xzm uefi.zip 08-ssh.xzm 10-printing.xzm
Then my sub configs on the same server would call it for the "global" settings (in this example my config file is called RSW-TEST)

Code: Select all

connection=wired
dhcp=yes
client_id=automatic
kiosk_server=server.sample.com:443
kiosk_config=server://RSW-TEST
[b]global_config=server://MSTR-1[/b]
printer_connection=lpd://0.0.0.0/queue
printer_model=Dell M5200 Foomatic/Postscript
printer_name=RSW-PRN
So now, when I have to make a simple change to any of the parameters listed in the Master config, I am only making that change once, instead of going through all my configs to make the change.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Nested config

Post#2 by fanthom » 25 Oct 2021, 18:13

Manny,

You have opened a "pandora box".

This setup is possible but I'm not going to post instructions publicly.
I dont want users to break their configs. We have nested configurations and this is confusing enough for some admins ..

Single config is simple to maintain.
Lets stick to it.


Please contact support@porteus-kiosk.org and I'll explain how to achieve what you want.


Thanks
Please add [Solved] to your thread title if the solution was found.

Locked