<div dir="ltr">Hi,<div>I was wondering how conffiles should be handled with snapcraft / snaps in general.</div><div>I understand that for a more "app" style application the configuration is mostly via some kind of UI/ webserver and it can store that "locally" in it's data dir.</div><div><br></div><div>But for the common pattern of a server application with /etc/something.conf - how is that supposed to be working for snaps?</div><div>That scheme is quite common in the server application world, so I expect there already was some thought or discussion, but my searches didn't find something good.</div><div>Neither did my IRC request this afternoon so I thought it might be worth to write to the list.</div><div><br></div><div>So in the .deb world one would have:<br></div><div><ol><li>a package owning the conffile, usually the one with the binary(ies) reading the conffile<br></li><li>maintainer scripts to handle upgrade path with e.g. changed formats<br></li><li>a million guides out there in the web that refer to e.g. /etc/syslog.conf with their explanation</li></ol></div><div>I wonder how that should be handled when snapping such an app:</div><div><ol><li>ok, it can belong to a snap that has the binaries consuming it.<br>It gets a bit weird if there are multiple snaps bundling the same binaries thou (relatively rare I hope as libs don't have that much conf)</li><li>is there an active element in <a href="http://snapcraft.io/docs/core/updates">http://snapcraft.io/docs/core/updates</a> that I missed<br></li><li>a new /etc interface being read-only for the snap? - maybe with interface-parms defining which files should be accessible?<br>Yet how would the snap make the snap the available in /etc oon install?</li></ol>The only snap-centric artifact about it I found was [1]. But that feels broken/outdated as there is no "snappy" command anymore (and snap has no "config" subcommand).<br></div><div><div><div><br></div><div>I'd be really happy to get some useful pointers or - if not already defined and documented - to kick off some discussion about it.</div><div><br></div><div>[1]: <a href="https://developer.ubuntu.com/en/snappy/guides/config/">https://developer.ubuntu.com/en/snappy/guides/config/</a></div><div><br></div><div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div>
</div></div></div></div>