Config interface needs to be better documented

Bug #1587447 reported by Sergey Borovkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Won't Fix
Undecided
Unassigned
snapd (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

Previously we could install config with snap install snap-name config.yaml. This functionality is currently missing.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

The config support is being reimplemented. We will probably dupe this bug somewhere later to track it in one place.

To give you some perspective:
 - snapd hook support (30% done)
 - snapd config storage (not started)
 - snapd config hook
 - snap config API

At the end of the story you will have similar (but better and easier to integrate) configuration support.

Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Jamie Bennett (jamiebennett) wrote :

snap config is now implemented but the options it has are a little limited today. We will continue to enhance this over the coming months.

Michael Vogt (mvo)
Changed in snapd (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
status: Triaged → In Progress
summary: - Config interface is gone
+ Config interface needs to come back
Revision history for this message
Viktor Petersson (vpetersson) wrote : Re: Config interface needs to come back

@Jamie Is this documentation up to date? https://developer.ubuntu.com/en/snappy/guides/config/

Revision history for this message
Michael Vogt (mvo) wrote :

@Viktor: This guide is unfortunately out-of-date, it applies to 15.04 only.

Revision history for this message
Michael Vogt (mvo) wrote :

I'm inclined to mark this as fix-released as we have support for the config interface for snaps now. You can put a meta/hooks/configure hook into your snap and that will run when doing "snap set $snap $option=value" etc. However this is not well documented currently, so maybe we need to leave the bug open because of that?

summary: - Config interface needs to come back
+ Config interface needs to be better documented
Revision history for this message
Michael Vogt (mvo) wrote :

There is a little bit of documentation now at https://github.com/snapcore/snapd/wiki/Configuration

Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I'm inclined to close this bug as WONTFIX.

The reporter seems to be asking for a way to install a single snap while supplying that snap with a configuration that is somehow applied during the installation process. There is no design for this feature in snapd 2.x. It may have existed in snapd 1.x, which was before my time in the project.

I'm happy to accept additional bugs to improve specific aspect of the configuration system but this bug does not seem to talk about that thing in particular.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I've added the snapd task, which has a little bit more eyeballs from the snappy team, and marking this as WONTFIX given my rationale above. Please do feel free to reopen if I misunderstood this bug or to open additional bugs for specific improvements to documentation.

Changed in snapd:
status: New → Won't Fix
Changed in snapd (Ubuntu):
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.