GNU bug report logs -
#46031
services: cuirass: Add "simple-cuirass-services".
Previous Next
Reported by: Mathieu Othacehe <othacehe <at> gnu.org>
Date: Fri, 22 Jan 2021 08:52:02 UTC
Severity: normal
Done: Mathieu Othacehe <othacehe <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi!
Mathieu Othacehe <othacehe <at> gnu.org> skribis:
>> I wonder if it would make sense to allow users to pass directly a
>> manifest, as in (pseudo syntax):
>>
>> (simple-cuirass-configuration
>> (build (list (build-manifest … (local-file "my-manifest.scm"))))
>> (channels …))
>
> It would be nice but Cuirass doesn't support specification update for
> now. Passing a manifest this way would require to drop the database
> content at each reconfiguration.
Ah yes, that wouldn’t be convenient.
>> What about exposing ‘simple-cuirass-configuration->specs’, and document
>> it such that one can do:
>>
>> (service cuirass-service-type
>> (cuirass-configuration
>> (specifications
>> (simple-cuirass-configuration->specs config))))
>
> I agree it feels nicer, however with this service I'd like to hide the
> dependencies to postgresql-service-type and
> postgresql-role-service-type. That's why "simple-cuirass-services"
> returns three services. Maybe you see another way?
When a service extends a service type, an instance of that service type
is automatically added if it’s missing (provided that service type has a
default value). This happens in ‘instantiate-missing-services’.
So, if postgresql-role-service-type and postgresql-service-type have a
default value, simple-cuirass-service could extend them both (possibly
with a dummy value) and it would just work.
HTH!
Ludo’.
This bug report was last modified 4 years and 91 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.