Comment 36 for bug 2003835

Revision history for this message
Nobuto Murata (nobuto) wrote :

A "hack" is putting cloudinit-userdata into Juju's model-config. Obviously, it's not for production usage since it will miss all security fixes so far. Also, the hack must be removed from the filesystem and model-config once this issue settles.

[focal]
====
cloudinit-userdata: |
  write_files:
    - content: |
        Package: mysql-router
        Pin: release a=focal
        Pin-Priority: 1001
      owner: "root:root"
      path: /etc/apt/preferences.d/mysql-router-hack
      permissions: "0664"
====

[jammy]
====
cloudinit-userdata: |
  write_files:
    - content: |
        Package: mysql-router
        Pin: release a=jammy
        Pin-Priority: 1001
      owner: "root:root"
      path: /etc/apt/preferences.d/mysql-router-hack
      permissions: "0664"
====