Page 1 of 1

Nested config

Posted: 25 Oct 2021, 16:15
by Manny.Ratliff
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.

Nested config

Posted: 25 Oct 2021, 18:13
by fanthom
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