On Wed, Jul 24, 2019 at 04:18:25PM +0200, Kamil Paral wrote:
On Wed, Jul 24, 2019 at 2:33 PM Josh Boyer
<[1]jwboyer(a)fedoraproject.org>
wrote:
On Wed, Jul 24, 2019 at 8:02 AM Miro HronĨok <[2]mhroncok(a)redhat.com>
wrote:
>
> On 24. 07. 19 10:24, Tom Hughes wrote:
> > That said, having to go round adding a mega ugly config file
> > to every package that looks an awful lot like an internal braindump
> > from some system doesn't really inspire confidence, or make for an
> > easy way of opting in.
>
> This. The gating.yaml file is terrible.
Do either of you have a better suggestion?
If most people would have the same default yaml file copy-pasted into a
thousand places, it could be easily replaced with just:
```
gating: default
```
And allow people to override the default policy (with the current syntax
or hopefully something more readable) only when they really have some
specific needs. This will also help in future when the defaults need to be
changed.
More preset values can be defined subsequently, e.g.:
gating: default/minimal/custom/disabled
etc.
This is an interesting idea, I've opened a ticket on greenwave to track it:
https://pagure.io/greenwave/issue/466
We already have global (ie: distro-wide) policies that we can enforce, so they
would be your "default", but your mechanism still allows for opt-in/opt-out
which the distro-wide policies do not.
Thanks for the idea :)
Pierre