I’m trying to create a simple profile for a mariadb server. I’ve created the following config:
$ lxc profile show mariadb config: user.user-data: | package_update: true packages: - mariadb-server description: Mariadb server profile devices: eth0: name: eth0 network: lxdbr0 type: nic root: path: / pool: default type: disk name: mariadb used_by: - /1.0/instances/mdb1 - /1.0/instances/mdb2 - /1.0/instances/mdb3
I just copied the default profile and added the user-data section.
When I start a new instance:
lxc launch ubuntu:lts mdb3 -p mariadb
Not only is mariadb-server not installed - I cannot even see the package as available until I do an
apt-get update to refresh the repositories. Which I would’ve thought was covered by
package_update: true in the profile…
Where did I go wrong here?
edit - On Ubuntu 18.04 lxd version 4.1 - installed from snap