Screenly / Anthias

The world's most popular open source digital signage project.
https://anthias.screenly.io
Other
2.37k stars 601 forks source link

Set Balena device and/or fleet configs programmatically. #1661

Open nicomiguelino opened 1 year ago

nicomiguelino commented 1 year ago

General

Tasks

Strategy

nicomiguelino commented 1 year ago

@vpetersson, here's a sample command for setting fleet configs programmatically (via Balena CLI):

# balena env add $CONFIG_VARIABLE $VALUE --fleet $FLEET_NAME
balena env add RESIN_HOST_CONFIG_gpu_mem 512 --fleet anthias-pi4
balena env add RESIN_HOST_CONFIG_dtoverlay vc4-fkms-v3d --fleet anthias-pi4

For automation, these commands can be used in a shell script.

I'll be closing this issue now, as this is a one-time setup, esp. for new fleets.

vpetersson commented 1 year ago

@vpetersson, here's a sample command for setting fleet configs programmatically (via Balena CLI):

# balena env add $CONFIG_VARIABLE $VALUE --fleet $FLEET_NAME
balena env add RESIN_HOST_CONFIG_gpu_mem 512 --fleet anthias-pi4
balena env add RESIN_HOST_CONFIG_dtoverlay vc4-fkms-v3d --fleet anthias-pi4

For automation, these commands can be used in a shell script.

I'll be closing this issue now, as this is a one-time setup, esp. for new fleets.

Yes, but these values are different for different devices.

nicomiguelino commented 1 year ago

Thanks for pointing that one out, @vpetersson. But can the values be the same for devices of the same fleet? (I can include docs for setting config values for a specific device).