Hi,
I’m building my own Ubuntu Core builds, which ships with some snaps by default.
These snaps are pulled from the public snap store and aren’t necessarily maintained by me. One example is ufw.
I’m quite new to this, so I’m wondering what are the best practices to ship default configuration files etc for snaps like these.
I have my own custom gadget snap.
Here are some scenarios:
- I want to set default rules for
ufw
and enable it by default. - Add a custom
mosquitto.conf
file that is created before (image) build for the mosquiitto snap. - Add a
settings.json
and auser.json
to the zwave-js-ui snap and enable it (it’s not enabled as a service by default), including adding a slot/plug connection between theserial-port
andpi:bt-serial
.
My gadget is a modification of the «pi gadget» with not any vital changes from the official one. There are just some in regards to defaults > system > network
in the gadget.yaml and some cmdline.txt
and config.txt
changes.
I’ve also tried to add connections
I’m gadget to solve the serial-port connections, but it doesn’t connect. Not sure if pi:bt-serial
is part of «self» (the gadget snap).
Any guidance, tips and recommendations on how these things can be accomplished are welcome