PeterJCLaw / srcomp-kiosk

A puppet config for setting up a number of Raspberry Pis as kisok-mode browsers
https://github.com/PeterJCLaw/srcomp/wiki/Component-Overview#srcomp-kiosk
MIT License
0 stars 3 forks source link

Improve the configuration mechanism #10

Open PeterJCLaw opened 2 years ago

PeterJCLaw commented 2 years ago

Currently configuration for the various instances is derived from the pi_macs file -- that's a custom format which gets read by a python script to create a hiera config used by puppet. This isn't great and is very non-obvious. The hiera config -> puppet part isn't bad on its own, but as a whole it's not great.

Alternatives include:

The latter is complicated by the current coupling of the url being shown to the hostname on the machine (which has operational benefits), though we can probably come up with an alternative if we want to go this route. Somehow hosting this information in the compstate might be a reasonable approach, on the grounds that the compstate is already event-specific, however this information doesn't feel very compstate-y.

There might be other approaches here too -- more thought is needed.