Add filters to targets and environments
M1chka opened this issue · 4 comments
Would it be possible to have a filter added like "architectures" for specific targets and environments in the builder config?
We could add filters for each environment variable. But what's the use case for filters in targets? Could you please paste an example of how you'd do filtering there?
Id like something like this:
targets:
lxc:
config:
- type: all
content: |-
lxc.arch = {{ image.architecture_personality }}
#### Some specific settings that I only want to apply on the armhf device
architectures:
- armhf
- type: all
content: |-
lxc.arch = {{ image.architecture_personality }}
#### Some specific settings that I only want to apply on the amd64 device
architectures:
- amd64
For context:
We got software running within an LXC on newly developed hardware running with am amd64 mcu but we want to make the software backwards compatible on our old hardware running with a arm32 mcu. The communication between the new hardware/64bitmcu and the old hardware/32bitmcu is slightly different but can be properly setup within the LXC conf.
Right now I merge two yaml files together (targets and the rest), but since filters are a thing I thought it could be made easier.
Thanks for that.
We can certainly add those filters.
Thats great!